Raft V1.08
Raft v1.08: The Ultimate Guide to Scraping, Sailing, and Surviving the Final Major Update
17. Security considerations
Prepare controlled test environment
- Leader handles client requests by appending command as new log entry, then sending AppendEntries RPCs (heartbeats include no-ops if needed).
- AppendEntries RPC includes prevLogIndex and prevLogTerm; follower checks consistency: the follower must have entry at prevLogIndex with term prevLogTerm or rejects.
- On success, follower appends new entries and updates its log; leader updates nextIndex and matchIndex for follower.
- Commit rule: leader advances commitIndex when a log entry in its term is stored on a majority of servers.
- Followers apply committed entries to their state machines in order.