Partitions are needed because number of keys is infinite, while number of
partitions is fixed. If topology changes, you need to remap only 1K
partitions (default value) instead of remapping all the keys in cache.

Distribution can indeed be uneven in case collocation is used, but in most
cases this levels off when the data set is fairly large and you have enough
nodes/memory to store it. In example with 10 entries it looks like a big
problem of course, but that's not what you will generally see in real life.

However, you can always implement your own AffinityFunction if you want to
plug in custom mapping strategy.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Custom-AffinityFunction-tp10167p10168.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to