Consensus: Raft Algorithm TODO

The Raft algorithm can be composed into two sections, namely

  1. Leader Election
  2. Log Replication (accept changes from clients, propagate new log)

How it Works

Node States

State Type Explanation
Follower Passive Participant Only gives regular heartbeats
Candidate Active Participant Issues RequestVote RPCs to get elected to leader
Leader Active Participant Issues AppendEntries RPCs to replicate its log

Standard operation is 1 Leader : N-1 Followers

Terms

Heartbeats and Timeouts

Empty AppendEntries RPCs

Election

This allows…


100-500ms