Partition distribution across nodes

classic Classic list List threaded Threaded
2 messages Options
prasadbhalerao1983 prasadbhalerao1983
Reply | Threaded
Open this post in threaded view
|

Partition distribution across nodes

Hi,
How does ignite distribute partition across available nodes?

E.g: if there are 4 nodes and 1024 partitions, then partition P1 goes to Node N1, P2 goes to N2 , P3 goes to N3 and P4 goes to N4 and so on.


What algorithm does ignite use to distribute partitions?


Thanks,
Prasad


dkarachentsev dkarachentsev
Reply | Threaded
Open this post in threaded view
|

Re: Partition distribution across nodes

Hi,

Ignite by default uses Rendezvous hashing algorithm [1] and
RendezvoudAffinityFunction is an implementation that responsible of
partition distribution [2]. This allows significantly reduce traffic on
partiton rebalancing.

[1] https://en.wikipedia.org/wiki/Rendezvous_hashing
[2]
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cache/affinity/rendezvous/RendezvousAffinityFunction.html

Thanks!
-Dmitry



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/