NEW
A consistent, fault-tolerant distributed key-value store used for configuration, coordination, and service discovery.
DESCRIPTION
etcd provides strongly consistent key-value storage backed by the Raft consensus algorithm. It is widely used as Kubernetes’ primary datastore, storing cluster state and configuration. etcd supports watch notifications, leases, and transactions for coordination tasks and service discovery. Its simplicity, gRPC APIs, and security features (TLS, auth) suit cloud-native environments. Proper sizing, backup, and compaction are essential for reliability.
ALTERNATIVE DEFINITIONS
etcd Project
etcd is a distributed reliable key-value store for the most critical data of a distributed system.
Highlights reliability and role for critical distributed system data.
etcd GitHub
etcd is a distributed, reliable key-value store for the most critical data of a distributed system.
Project README reiterating reliability for distributed system data.
Kubernetes
etcd is the backend database for Kubernetes that stores the cluster state and configuration.
Defines etcd’s role as Kubernetes’ primary datastore.
RELATED TERMS
Kubernetes Raft Consensus Service Discovery Configuration Management Distributed Systems Leader Election Key-Value Store High Availability
COMPETING TERMS
ZooKeeper Consul
KNOWLEDGE AREAS
Infrastructure Cloud Data Storage & Operations Real-time & Streaming Data Observability & Telemetry
TARGET AUDIENCE
DevOps Engineer Cloud Architect Software Developer IT Manager Security Architect
EXTERNAL SOURCES
- Wikipedia - Etcd
- etcd Project - Official etcd documentation
- Kubernetes - Kubernetes components overview
- Raft - Consensus algorithm overview
TOP QUESTIONS
What problem does etcd solve?
It provides reliable, strongly consistent storage for configuration and coordination in distributed systems, simplifying leader election and service discovery.
Category: Relevancy
How does etcd ensure consistency?
etcd uses the Raft consensus algorithm to achieve strong consistency across cluster members.
Category: Example
What are common mistakes operating etcd?
Running on slow disks, insufficient memory, or oversized request payloads; neglecting backups and compaction can degrade performance and reliability.
Category: Mistakes
What risks exist when etcd fails?
Kubernetes clusters can become read-only or inoperable. Data loss risks require regular snapshots and disaster recovery planning.
Category: Risks
How do you secure etcd?
Enable mutual TLS, restrict network access, enforce authentication and RBAC, and audit client usage.
Category: Management
What competes with etcd?
ZooKeeper and Consul provide similar coordination and configuration features with different ecosystems.
Category: Alternatives
How is etcd used in Kubernetes?
It stores cluster state, configurations, and resource objects; the API server persists to etcd and watches for changes.
Category: Example
What capacity planning is needed for etcd?
Estimate object counts, write rates, and compaction schedules; deploy SSDs, sufficient memory, and dedicated nodes.
Category: Requirements
What is currently a hot topic around etcd?
Operational hardening, backup tooling, and performance tuning for large Kubernetes clusters are ongoing focus areas.
Category: Topic