Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is a split brain , when one zookeeper server fail from total 3 zookeepers

We have 3 zookeepers servers, and 6 Kafka machines. What could be when one zookeeper server fail, and we have now only two zookeeper servers, what is the chance to get "split brain"?

As I understand when we get a split brain, then the two zookeepers that still alive actually not working as should be.

like image 719
Judy Avatar asked Dec 28 '25 19:12

Judy


1 Answers

In ZooKeeper, an even number of peers is supported, but it is normally not used because an even sized ensemble requires, proportionally, more peers to form a quorum than an odd sized ensemble requires. For example, an ensemble with 4 peers requires 3 to form a quorum, while an ensemble with 5 also requires 3 to form a quorum. Thus, an ensemble of 5 allows 2 peers to fail and still maintain quorum, and thus is more fault tolerant than the ensemble of 4, which allows only 1 down peer.

So in your case with 3 ensemble, it will support only 1 node failure, as with remaining 2 , it can't form a quorum

like image 117
Liju John Avatar answered Dec 31 '25 07:12

Liju John



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!