Well... you can set one of the 2 as an observer. That way you can have a quorum of one of 2, but you can't have a quorum of the other of two. Probably not what you want.
You can also set up a third member who refuses to become leader. They basically serve as a tiebreaker. You can lighten the load on the tiebreaker by not allowing clients to connect.
On Tue, Sep 11, 2012 at 7:25 PM, Henry Robinson <[EMAIL PROTECTED]> wrote:
> No - ZK needs a majority of nodes to be a quorum. In a 2-node cluster, the > only majority is of size 2. > > Henry > > On 11 September 2012 19:23, Eric Pederson <[EMAIL PROTECTED]> wrote: > > > Hi all - > > > > Is there any way to force ZK to accept 1 of 2 as being quorum? > > > > Thanks, > > > > -- Eric > > > > > > -- > Henry Robinson > Software Engineer > Cloudera > 415-994-6679 >
Interestingly, we had a server kernel crash a few days ago which meant that we only had two nodes up out of three. Which makes me wonder if three is really a suboptimal cluster size. Perhaps 5 is a better odd number. On Sep 12, 2012 12:24 PM, "Eric Pederson" <[EMAIL PROTECTED]> wrote:
> Hi all - > > Is there any way to force ZK to accept 1 of 2 as being quorum? > > Thanks, > > -- Eric >
NEW: Monitor These Apps!
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext