#System Design#Kafka Introduction Note

http://engineering.linkedin.com/kafka/intra-cluster-replication-apache-kafka


Handling Failures

We rely on Zookeeper for detecting broker failures. Similar to Helix, we use a controller (embedded in one of the brokers) to receive all Zookeeper notifications about the failure and to elect new leaders. If a leader fails, the controller selects one of the replicas in the ISR as the new leader and informs the followers about the new leader.

问题: 

-->搭载controller的broker fail要怎么处理?


回答:

--> 并不是固定一个broker来做这个controller, 而是zookeeper会随机选择一台broker来做controller

你可能感兴趣的:(kafka,System,笔记,design,LinkedIn)