You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kafka cluster {{ $labels.%s }} has {{ $value }} partitions where the leader is not the preferred replica.
196
+
197
+
Impact:
198
+
Uneven load distribution across brokers can result in some brokers handling significantly more client requests (produce/consume) than others, leading to hotspots, degraded performance, and potential resource exhaustion on overloaded brokers. This prevents optimal cluster utilization and can impact latency and throughput.
199
+
200
+
Common causes:
201
+
- Broker restarts or failures causing leadership to shift to non-preferred replicas
202
+
- Manual partition reassignments or replica movements
203
+
- Recent broker additions to the cluster
204
+
- Failed automatic preferred replica election
205
+
- Auto leader rebalancing disabled (auto.leader.rebalance.enable=false)
206
+
207
+
Actions:
208
+
1. Verify auto.leader.rebalance.enable is set to true in broker configuration
3. Manually trigger preferred replica election using kafka-preferred-replica-election tool
211
+
4. Monitor broker resource utilization (CPU, network) for imbalance
212
+
5. Review broker logs for leadership election errors
213
+
6. Verify all brokers are healthy and reachable
214
+
215
+
If the imbalance persists for extended periods, consider running manual preferred replica election to redistribute leadership and restore balanced load across the cluster.
0 commit comments