Raft is a protocol for state-machine replication among servers, each a follower, a candidate or a leader. Time is divided into election terms, numbered ; every message carries its sender’s election term, and a server that sees a larger one adopts it and becomes a follower. In a leader election, a follower that has heard from no leader for a random timeout starts a new election term, votes for itself and asks the others for their votes; each server votes at most once per election term, only for a candidate whose log is at least as up to date as its own (larger last election term, or the same and at least as long), and a candidate with votes from a majority becomes leader. The replicated log is each server’s sequence of entries, each a command with the election term in which a leader created it. The leader appends client commands to its log and sends each follower the entries it lacks, with the index and election term of the entry just before them; a follower accepts only if its own log has that entry, and replaces any conflicting entries. The commit index is the largest index known to be committed: the leader commits an entry of its own election term once a majority store it, and with it every entry before it. The log matching property states that if two logs have an entry with the same index and election term, they are identical up to that index.
Computer Science · Glosario
¿Qué es Raft, election term, leader election, replicated log, log matching property, commit index?
También llamado: Raft · election term · leader election · replicated log · commit index · log matching property