zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isuru Boyagane <isuruboyagane...@cse.mrt.ac.lk>
Subject Participant selection mechanism when implementing Java leader election using zookeeper.
Date Wed, 04 Dec 2019 02:49:08 GMT
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 select all the child nodes and elect
smallest one as the leader. In other words "what prevents a slightly late
node joining the election". Is it a timeout? If so how it is handled in
Zookeeper internally?

Please advise.
Thank you.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message