Follower Candidate Leader Times out, Starts election Times out, Restarts election Wins election Discovers new leader, Steps down Discovers current or new leader, Steps down
RequestVote Used by candidates to ask for votes during an election. Log information included for comparison. ! AppendEntries Used by leaders to tell followers which entries to replicate and commit. Also used as a heartbeat to remain leader. Follower Candidate Vote for me please. Follower Here are some entries for your log. Oh, and btw I’m still the leader. Leader
Term Higher numbers are used to determine leaders and check log entries. The term is incremented each time an election is started. Any command with an old term is ignored. Term 1 Term 2 Term 3 Election Normal Operation Split vote