How does Apache Ignite synchronize in cluster mode?

667 Views Asked by At

This information eluded me when searching through the documentation. How does Apache Ignite, if used in cluster mode, synchronize between nodes when these nodes become inactive and active again?

Assume the following scenario:

I have 2 nodes. Node A is elected Leader. Everything works until node B crashes. Node A continues to work, more transactions are executed. Before node B comes back up, node A goes down. After that, node B comes back up. What happens in this case? Does node B know it was not the master and has to wait until node A comes back up? Does it throw an exception and fails to start? Does it simply not care?

Is there any information on the docs for such scenarios?

1

There are 1 best solutions below

1
Evgenii Zhuravlev On

There is a rebalance process, which synchronizes data between nodes.

There is no such thing as a Leader in Ignite. All data in the cache divided by partitions and each node have its own subset of primary partitions.

Before node B comes back up, node A goes down

Do you have persistence enabled? If no, then you just lost data, since all nodes in cluster went down.