leader election

The process by which the members of a distributed system choose one of themselves to act as leader.

In more detail

Elections run automatically when the current leader fails, so the system can keep accepting work. Protocols such as Raft make sure only one leader is recognised at a time.

Examples

Kafka elects a new partition leader from the in-sync replicas, and each election raises the leader epoch.
The Kubernetes scheduler and controller manager elect a leader by renewing a Lease object.

Related terms

Taught in

References

Certification courses