etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.
Overview
etcd is a distributed key-value store intended for the most critical data in distributed systems. It emphasizes a straightforward user-facing gRPC API, optional automatic TLS with client certificate authentication, and strong consistency via the Raft consensus algorithm on a replicated log.
Clients read and write keys through HTTP and gRPC tooling, organize keys in hierarchical paths, and watch keys or directories for change notifications. Optional TTLs can expire keys automatically. Production adopters include Kubernetes and other coordination stacks that need reliable leader election and metadata storage.
Operators typically run etcd from prebuilt binaries on Linux, macOS, or Windows, or container images published with releases. A single-node cluster can be started locally for development; multi-member clusters and TLS hardening are documented for production layouts. The etcdctl utility provides a simple CLI for puts, gets, and cluster administration.
Benchmarks cited in project materials report on the order of thousands of writes per second per instance under test conditions, with formal robustness testing used to validate reliability claims.
Key features
- Strongly consistent Raft replication
- gRPC and HTTP key-value API
- Watch keys and directories for changes
- Optional TLS and client certificates
- Key TTL expiration support
- Hierarchical key paths
- etcdctl command-line client
- Prebuilt binaries and Docker images
Use cases
- Kubernetes control plane backing store
- Service discovery and configuration
- Distributed locking and leader election