You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Wang Yang <zj...@gmail.com> on 2012/09/26 07:23:03 UTC

More than one QuorumPeer start leader election

Hi,

I'm reading the source code of zk these days. And first, can I ask
some question about source code in this mail list?

And my question seems foolish:
I find there can be more than one QuorumPeer start leader election. Am
I right? And the Fast Paxos can ensure the election correct under this
situation, is it right?

Thanks!
Lory_yang

Re: More than one QuorumPeer start leader election

Posted by Flavio Junqueira <fp...@yahoo-inc.com>.
Hi Lory_yang, Thanks for asking questions. As I understand your question, you're asking about leader election, which we call FLE (Fast Leader Election). The idea is to select one server out of a pool of available servers. Each server (or peer) will have a QuorumPeer started, so it does allow multiple QuorumPeer instances started. In fact, without a quorum of peers, election won't terminate.

-Flavio

On Sep 26, 2012, at 7:23 AM, Wang Yang wrote:

> Hi,
> 
> I'm reading the source code of zk these days. And first, can I ask
> some question about source code in this mail list?
> 
> And my question seems foolish:
> I find there can be more than one QuorumPeer start leader election. Am
> I right? And the Fast Paxos can ensure the election correct under this
> situation, is it right?
> 
> Thanks!
> Lory_yang