Re: Participant selection mechanism when implementing Java leader election using zookeeper.

2019-12-05 Thread Mate Szalay-Beko
Hi Isuru, > "what prevents a slightly late node joining the election". Actually nothing, it is completely normal for nodes to join to the election process later. E.g. consider the case when you just restarted one of your nodes. It will then reconnect to ZooKeeper and create a new ephemeral / seq

Participant selection mechanism when implementing Java leader election using zookeeper.

2019-12-03 Thread Isuru Boyagane
I read about leader election using zookeeper. https://zookeeper.apache.org/doc/current/recipes.html#sc_leaderElection I have a small question ro ask. After a node creared "/election" node every node creates child nodes with sequential and ephemeral flags. In what condition nodes decide to selec