← systems library
distributed systems

Leader Election

A lease + quorum keeps exactly one leader; on failure a follower is promoted with a fencing token.

Leader Followers Coordination On failure write replicate + heartbeat replicate + heartbeat renew lease no heartbeat → timeout acquire lease (quorum) promote (fencing token) Clientwrites Leaderholds the lease Follower 1stand-by replica Follower 2stand-by replica Lease + quorumetcd · ZooKeeper Electionrequest votes OWNERSHIP Client Leader Followers Coordination store Leader ElectionA lease + quorum keeps exactly one leader; on failure a follower is promoted with a fencing token.
↓ Download SVG ↓ Download spec

Considerations