How many Kafka controllers are there in a cluster and what is the purpose of a controller?

The controller is one of the Kafka brokers that is also responsible for the task of electing partition leaders (in addition to the usual broker functionality). Is the controller just one broker? There is only 1 controller at a time. Going internally, each broker tries to create an ephemeral node in the zookeeper (/controller). The … Read more