We have three hosts (1, 2, 3) in a kafka cluster. When we restart the cluster, If broker on host 2 restarts first, then most of partitions will use broker 2 as leader. Ideally, we want to see one third topics use broker 1 as leader, other one third topics use broker 2 and the remaining one third use broker 3. So how to evenly distribute the leaders among the 3 brokers in this case?
It seems this tool needs to be run from time to time. When a broker is restarted, the tool must be run to balance the load. My question is why this balancing is not built into the broker. So it will automatically run after a broker restarts and that will make operation easier.