Technology · Ebook
etcd: The Consistent Brain of Distributed Systems
by Shriira Press
etcd is the distributed, strongly-consistent key-value store that distributed systems trust with their most critical data — and the database behind Kubernetes. This free book teaches it from first principles: the consensus problem and the Raft algorithm that gives etcd its consistency, its architecture and MVCC data model, the API of keys, watches, leases, and transactions and the coordination primitives built on them, how etcd powers Kubernetes and why its health is the cluster's health, clustering and quorum, performance tuning (where disk latency rules), backup and disaster recovery, security, and operating etcd in production. Ten focused chapters with real commands and clear diagrams that demystify the reliable source of truth at the heart of Kubernetes and many other systems — and show how to run and protect it.
Contents
- 1Preface
- 2Chapter 1 — What etcd Is
- 3Chapter 2 — Consensus and the Raft Algorithm
- 4Chapter 3 — Architecture and Data Model
- 5Chapter 4 — The API: Keys, Watches, Leases, and Transactions
- 6Chapter 5 — etcd and Kubernetes
- 7Chapter 6 — Clustering and Membership
- 8Chapter 7 — Performance and Tuning
- 9Chapter 8 — Backup and Disaster Recovery
- 10Chapter 9 — Security
- 11Chapter 10 — Operating etcd and Putting It Together
