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/ >> >
