Cool, thanks . I have a quite big cluster with 100 nodes, so I guess 25600 will be good partition? I am using ignite as database. I am creating a table with 20 million rows,each row has 1450 columns. Is this a good idea?
Thank you! On Sat, Oct 26, 2019 at 9:10 AM Prasad Bhalerao < [email protected]> wrote: > Please check this link... > > > https://apacheignite.readme.io/docs/affinity-collocation#section-affinity-function > > > Example from the ignite doc. > > > // Preparing Apache Ignite node configuration.IgniteConfiguration cfg = new > IgniteConfiguration(); > // Creating a cache configuration.CacheConfiguration cacheCfg = new > CacheConfiguration("myCache"); > // Creating the affinity function with custom > setting.RendezvousAffinityFunction affFunc = new RendezvousAffinityFunction(); > affFunc.setExcludeNeighbors(true); > affFunc.setPartitions(2048); > // Applying the affinity function configuration.cacheCfg.setAffinity(affFunc); > // Setting the cache > configuration.cfg.setCacheConfiguration(cacheCfg); > > > > On Sat 26 Oct, 2019, 7:42 PM Andrey Dolmatov <[email protected] wrote: > >> Try to implement you're own affinity function. If it map any key to >> numbers from 1 to n, you have n partitions >> >> On Sat, Oct 26, 2019, 09:46 codeboyyong <[email protected]> wrote: >> >>> Hi can you please tell me how to config this ? >>> "number of cache partitions" >>> >>> Thank You >>> Yong >>> >>> >>> >>> -- >>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >>> >>
