Leader Election Rate and Time Ms

The Leader Election Rate & Time Ms metric group contains metrics regarding leader elections. These metrics are related to ZooKeeper and unavailable for Kafka clusters running with KRaft mode. The metrics available are:

  • Leader Election
  • Unclean Leader Elections

Note: Metrics discussed on this page display results as produced by Kafka. Instaclustr’s monitoring system does not aggregate these results.

Leader Election

The Leader Election metric shows the mean rate, count, maximum rate, and one minute rate (per second rate, averaged over the past minute) of leader elections. Leader elections occur when the current leader of a partition becomes unavailable. Any available in-sync replicas for the partition are eligible to become the new leader. As the new leader must be an in-sync replica, elections should not cause any problems apart from a small delay in responding to requests to that partition while the new leader is being chosen.

Unclean Leader Elections

The Unclean Leader Elections metric shows the number of failures to elect a suitable leader per second. The graphs show the Count, Mean Rate and One Minute Average, of the per second rate. Unclean leader elections are caused when there are no available in-sync replicas for a partition (either due to network issues, lag causing the broker to fall behind, or brokers going down completely), so an out of sync replica is the only option for the leader. When an out of sync replica is elected leader, all data not replicated from the previous leader is lost forever.


By Instaclustr Support
Need Support?
Experiencing difficulties on the website or console?
Already have an account?
Need help with your cluster?
Contact Support
Why sign up?
To experience the ease of creating and managing clusters via the Instaclustr Console
Spin up a cluster in minutes