Skip to content

Ensure high availability with 2 regions #11012

Answered by scholzj
sylvainmetayer asked this question in Q&A
Discussion options

You must be logged in to vote

In short, you cannot have fully automatic availability and reliability with 2 zones only. This applies to ZooKeeper, KRaft or the Kafka brokers themselves. You might always need some manual interventions in some scenarios.

In the particular scenario you described:

From what I've tried yet, the zookeeper repartition is 2/1 on zone A/B, if I lose the region A, the only zookeeper left cannot take leadership, and if I lose the region B, the 2 zookeeper left can't decide which node should take leadership since it is an odd number.

There should be no issue when you lose the zone with 1 ZooKeeper node. The zone with 2 ZooKeeper nodes will be able to elect the leader and continue to work. But i…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by sylvainmetayer
Comment options

You must be logged in to vote
3 replies
@scholzj
Comment options

@sylvainmetayer
Comment options

@scholzj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants