Confluent
CCAAK · Question #47
When a broker goes down, what will the Controller do?
The correct answer is B. Trigger a leader election among the remaining followers to distribute leadership. When a broker goes down, the Controller detects the failure and triggers a leader election for all partitions that had their leader on the failed broker. The leader is chosen from the in-sync replicas (ISRs) of each partition.
Managing Brokers and Clusters
Question
When a broker goes down, what will the Controller do?
Options
- AWait for a follower to take the lead.
- BTrigger a leader election among the remaining followers to distribute leadership.
- CBecome the leader for the topic/partition that needs a leader, pending the broker return in the
- DAutomatically elect the least loaded broker to become the leader for every orphan's partitions.
How the community answered
(27 responses)- A7% (2)
- B78% (21)
- C4% (1)
- D11% (3)
Explanation
When a broker goes down, the Controller detects the failure and triggers a leader election for all partitions that had their leader on the failed broker. The leader is chosen from the in-sync replicas (ISRs) of each partition.
Topics
#controller#leader election#broker failure#partition leadership
Community Discussion
No community discussion yet for this question.