commitIndex
CommitIndex is a term used in distributed systems to denote the index of the highest log entry that is known to be committed across a group of servers. It is most commonly associated with replicated log protocols such as Raft, where each server maintains a log of commands and a state machine that applies those commands in order.
In a typical Raft-style setup, the leader maintains several state variables, including the commitIndex. A log
Followers synchronize with the leader by receiving AppendEntries messages that carry new log entries and the
CommitIndex is typically distinct from the lastApplied index. lastApplied tracks the highest log entry already applied