zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <fpjunque...@yahoo.com.INVALID>
Subject Re: Strange behaviour in Leader election
Date Tue, 28 Oct 2014 09:38:48 GMT
Exactly, when you start the third server, you have a majority, which causes the leader election
to complete.The election algorithm doesn't really force it to be the third server, it is just
a matter of timing.

     On Tuesday, October 28, 2014 3:06 AM, "bit1129@163.com" <bit1129@163.com> wrote:

 When you start the five servers one by one, and the server 3 is the 3rd server that you start
, then you will have the server 3 as the leader always, this is what the zookeeper election
algorithm does.

From: Ibrahim
Date: 2014-10-28 04:04
To: zookeeper-user
Subject: Strange behaviour in Leader election
Strange behaviour in Leader election
I have 5 ZooKeeper servers. When I start running the Zookeeper, there is
always one particular machine elected as leader and the other is follower.
For example, assume we have machine 1,2,3,4, and 5. When I start the
Zookeeper, it always elects machine number 3 as leader. Note that before I
start Zookeeper I delete all DataDir and log  files (information history). 
I expect each new run I see different machine elect as leader. But this does
not happen.
What criteria does election algorithm use to elect a machine to become a
Thank you
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Strange-behaviour-in-Leader-election-tp7580475.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

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