Raft
An agreement method that lets several copies of a database accept writes in the same order and keep working when a member fails.
In more detail
One member is elected leader and copies each write to the others; a write counts once a majority has stored it. If the leader fails, the rest elect a new one. Because a majority is required, two members tolerate no failures and three tolerate one.
Example
etcd, the Kubernetes datastore, replicates with Raft.Related terms
- etcd — The distributed key-value store where Kubernetes keeps all cluster data, including every Secret.
- quorum — The minimum number of members, more than half, that must agree before a replicated system accepts a change.
- leader election — The process by which the members of a distributed system choose one of themselves to act as leader.
Taught in
- HA Control Planes: Quorum, Stacked Or External — Certified Kubernetes Administrator (CKA) Exam Prep
- Control Plane: etcd, API Server, Scheduler, Controllers — Kubernetes: Production-Grade Container Orchestration
- Two Managers Down: The Night The Swarm Froze — Docker Certified Associate (DCA) Exam Prep
- Five Nodes Before Lunch: Building A Swarm — Docker Certified Associate (DCA) Exam Prep
- The Same Shop On Kubernetes: Pods, Services And Storage For The DCA — Docker Certified Associate (DCA) Exam Prep
- Four Questions From The Auditor: Swarm Security, Autolock And Content Trust — Docker Certified Associate (DCA) Exam Prep
- Security Sprint: Eight Questions On Defaults, Trust And Access — Docker Certified Associate (DCA) Exam Prep