Leader election

Follower → candidate on election timeout. Vote requests. Majority wins. New term starts. Split votes → new election.

Advertisement

Log replication

Leader appends entries + replicates. Commits when majority acknowledged. Followers apply committed entries.

Advertisement

Safety

Election restriction: candidate must have all committed entries. Ensures no committed entry lost.