KIP-166 — Add a tool to make amounts of replicas and leaders on brokers balanced
Discussion AdminBroker
Proposes a `kafka-replica-balancer.sh` tool that rebalances the distribution of partition replicas and preferred leaders evenly across all brokers. After broker additions, decommissions, or rolling restarts, replicas become imbalanced (some brokers hold more leaders than others), degrading throughput; the existing `kafka-preferred-replica-election.sh` only elects preferred leaders without rebalancing replica assignment.
Details
| Author | Ma Tianchi |
| Status | Discussion |
| JIRA | KAFKA-5319 |
| Wiki | View on Apache Wiki |
| Created | 2017-06-01 |
| Last Modified | 2017-06-22 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.