Short answer: use etcd for coordination you can operate
Use etcd for small, ordered coordination data when your team can manage quorum and recovery; choose another database for full SQL queries or large application datasets. The etcd team's workload comparison makes that distinction explicitly. Our November 10 source run at commit d622ec5 built successfully in 72 seconds and recorded 2 passing test results in 14 seconds. The operating decision extends beyond those command outcomes to the state your application depends on.
Kubernetes persists cluster state into etcd and watches configuration changes, according to the etcd integration documentation. Kubernetes' operator guide explains the consequence of losing the backing store's majority: scheduled pods may continue running while the cluster loses the ability to schedule new ones. Existing application traffic and control-plane availability therefore answer different health questions. Recovery belongs in the choice of database, alongside its API.
What people use etcd for
Kubernetes uses etcd to persist cluster state and watch configuration changes. The etcd team's use cases also describe Locksmith coordinating operating-system updates through a distributed semaphore, which limits how many machines proceed together. These uses share a requirement for agreement about small amounts of critical state. The reported deployments below show how that requirement extends into client load and the decision to share infrastructure.
| Who used it | What they did | Outcome or consequence |
|---|---|---|
| Kubernetes API server | Persisted cluster state and watched changes | The integration documentation describes monitoring state and rolling out critical configuration changes. |
| Container Linux by CoreOS, through Locksmith | Coordinated updates with a distributed semaphore | The historical use case limits simultaneous reboots to a subset of the cluster. |
| Sh4d1 in issue #11884 | Connected approximately 1,000 Kubernetes API servers to a five-member cluster | Issue #11884 reports intermittent latency and failed health checks. |
| dariotranchitella, discussing Kamaji | Promoted sharing etcd through separate key prefixes | The Kubernetes scaling discussion describes avoiding another deployment for small clusters. |
The sharing examples pose a concrete architecture choice: several Kubernetes clusters can place their keys in the same etcd deployment. Different prefixes separate names, while the etcd architecture description says the data still belongs to one replication group. That connects the saved deployment to a shared storage service, shared client load and a shared outage. A prefix changes where a key appears in the keyspace; it does not create another replication group.
What happened when we ran it
Our November 10 run at d622ec5 recorded successful installation, build and test commands. We measured 141 seconds for installation, 72 seconds for the build and 14 seconds for the recorded tests, with 2 passed and 0 failed of 2 in our sandbox harness. The configured environment had 3 CPUs, 8 GB RAM and image golang:1.24-bookworm. Installation recorded 562 dependencies.
| Recorded step | Result | What the number covers |
|---|---|---|
| Install | Succeeded in 141 seconds | 562 dependencies recorded |
| Build | Succeeded in 72 seconds | The harness build step |
| Tests | Succeeded in 14 seconds | go test: 2 passed, 0 failed of 2 |
| Sandbox | 3 CPUs, 8 GB RAM | Configured image golang:1.24-bookworm |
The same repository scan recorded 1,494 files, approximately 226,391 source lines and 15.2 MB checked out. It found 11 CI workflow files, a Dockerfile and a tests directory. These figures describe the checkout and command run on November 10. Keeping them together makes the provenance clear when comparing that source run with the later client-library recipe, which used a different checkout and obtained its client module separately.
The November 21 client-library run used checkout f872eb465ed3 in a fresh unprivileged golang:1.24-bookworm container with 2 CPUs, 4 GB RAM, no published ports and no secrets. Its clone step took 2 seconds. The module installation fetched go.etcd.io/etcd/client/v3 v3.7.4 in 27.5 seconds, using go get go.etcd.io/etcd/client/v3@latest in a new module.
The recipe recorded 745.3 MB on disk for the module cache and 76 packages besides go.etcd.io/etcd/client/v3. Its snippet step then failed because the README had no Go code block to run. The separate finding record names the same missing snippet, and teardown succeeded. The README's executable examples are shell commands for starting a server and putting and getting a key.
Where people get stuck: membership, storage and old clients
The FAQ prescribes compacting history, defragmenting every endpoint and disarming the alarm for mvcc: database space exceeded. Multi-version concurrency control, or MVCC, retains keyspace history. The official FAQ explains that accumulated history can exhaust storage and trigger a quota alarm that blocks writes. Membership has a separate rule: peer-address changes must pass through cluster agreement rather than merely changing startup flags.
| Symptom | What the named source says | Useful response and resolution status |
|---|---|---|
mvcc: database space exceeded |
A storage-quota alarm blocks writes | The FAQ prescribes compaction, endpoint defragmentation and alarm disarming. |
| Peer URLs stay unchanged after editing startup flags | Membership addresses are committed cluster configuration | The FAQ directs operators to etcdctl member update. |
Older client needs google.golang.org/grpc/naming |
The discussion concerns grpc-go v1.30 and an older client interface | ptabor suggested a v1.29.1 pin in issue #12124. |
| Older client fails after grpc-go v1.27 API changes | Balancer and resolver interfaces changed | Participants suggested a temporary v1.26.0 pin in issue #11563. |
| Reads differ after a microservice upgrade | The reporter associated the behavior with upgrading etcd-micro | Maintainers requested matching versions and endpoint information in issue #13503. |
The dependency workarounds concern specific older client combinations. In issue #11563, the reproduction uses etcd v3.3.18 with grpc-go v1.27.0 and reports undefined resolver and balancer types. In issue #12124, the discussion reaches public function signatures that depend on the deprecated naming package. Those details explain why the suggested pins belong with their original dependency combinations rather than serving as general installation advice.
A shared cluster hurts when client load shares its bottlenecks
Sh4d1 reported intermittent latency and health failures in etcd 3.4.7 in issue #11884. The discussion covers approximately 1,000 Kubernetes API servers connected to one cluster. Maintainers asked about elections, expensive range requests, server load and connection count, then suggested trace logging and extensive gRPC metrics. A range request reads a span of keys, so the investigation included the work clients requested as well as storage behavior.
Kubernetes resource routing and etcd's replication model address different layers. In the scaling discussion, hennexl describes --etcd-servers-override for storing events, pods or services in different etcd instances, and --etcd-prefix for sharing an instance among small clusters. The etcd architecture documentation describes one replication group without native data sharding. Routing resource types to separate databases does not alter the replication model inside each database.
A backup becomes useful when an isolated restore works
A Kubernetes recovery author reported emergency bbolt repair followed by a snapshot and an isolated restoration test. In ibrahim_djadir's recovery account, structural database checks failed after damaged storage had already disrupted the control plane. Low-level inspection and page-level repair made further recovery possible. The author then created a snapshot, tested restoration separately and established a clean recovery baseline instead of continuing to depend on the patched original.
The account treats repair as an emergency recovery technique and warns that a manually repaired database is not trustworthy merely because it starts. Its recovery recommendations include storing snapshots outside the control plane's storage failure domain, regularly restoring them, and documenting version compatibility, public-key infrastructure and cluster identity. These are useful acceptance questions for a recovery procedure: where the backup survives, which environment can restore it and whether Kubernetes management works afterward.
Security requires controlling who can reach the database
Kubernetes warns that access to etcd is equivalent to root permission in the cluster. Its operator documentation recommends restricting access to the nodes that need it and describes TLS certificates for peer and client communication. That connects the database's network boundary directly to control-plane authority. The API server's own access rules do not replace controls around the backing store.
The README lists TLS with optional client-certificate authentication and links security guidance. Its local example uses port 2379 for clients and 2380 for peer communication. Storage also affects availability: the FAQ explains that a leader stalled on disk persistence is effectively unavailable because it cannot commit new proposals, even while it can process network messages. Certificates, reachable addresses and disk persistence each have an operational role.
Development activity has dated evidence
GitHub's release response lists v3.7.4 as published on November 19, 2026. The repository metadata records a push on November 20, while the latest-release response identifies the release tag and publication timestamp. Those dates describe release and repository activity. The release version, November 10 server checkout and November 21 client-recipe checkout are three separately identified artifacts in this review.
The kubernetesio account also announced v3.7.4, v3.6.17 and v3.5.36. The README directs users toward releases because main may be unstable or broken during development. That provides a concrete starting point for source evaluation: distinguish a release artifact from a checkout of development code, then use the release and upgrade guidance relevant to the deployment. The November 21 module fetch selected v3.7.4 through the Go proxy.
etcd vs ZooKeeper, Consul, Redis and SQL databases
The etcd team's comparison recommends etcd for metadata and coordination, and NewSQL for larger datasets or full SQL queries. Its comparison page also separates a consistent key-value substrate from Consul's integrated service-discovery framework. The table below retains those workload distinctions and identifies the author of each comparison. IBM supplies the Redis comparison; the etcd team supplies the architectural comparisons with ZooKeeper, Consul and NewSQL.
| Comparison | Reason to consider the alternative | Reason to consider etcd |
|---|---|---|
| etcd vs ZooKeeper | An existing ZooKeeper system fits your coordination clients and tooling | The etcd team's comparison emphasizes MVCC, historical watches and gRPC integration. |
| etcd vs Consul | Integrated discovery, health checking and DNS lead the requirement | The etcd team's comparison positions etcd as a consistent key-value substrate. |
| etcd vs Redis | Caching and richer data structures lead the requirement | IBM's explanation positions etcd around distributed configuration consistency. |
| etcd vs NewSQL | Full SQL queries or more than a few GB of data lead the requirement | The etcd team's comparison recommends etcd for metadata ordering and coordination. |
The Consul comparison's detailed limitations explicitly concern Consul 1.0. The ZooKeeper table lists membership reconfiguration after 3.5.0, despite broader language elsewhere on the same page. These version labels belong beside the architectural distinctions. For a Kubernetes operator, the immediate requirement is also the interface expected by the distribution: choosing a database for application data and choosing a backing store for an existing control plane are different decisions.
Outdated claims, corrected
The official FAQ distinguishes consensus requests from serialized reads that any member can serve. That distinction narrows IBM's statement that every read returns the latest write. The FAQ's request-routing explanation also makes the leader's role explicit. Read mode belongs in any freshness claim. Separately, issue #20418 reports a member whose revision stopped progressing while it continued accepting reads and writes during process-pause fault testing.
IBM's categorical membership distinction also needs correction: the etcd comparison table lists ZooKeeper membership reconfiguration after 3.5.0. Its network-partition description needs the FAQ's quorum condition: etcd operates while a member majority can be established. Michael Mekuleyi's article, "Designing a fault-tolerant etcd cluster," makes an unconditional stale-state promise; the process-pause report in #20418 gives a concrete reason to avoid that wording.
The homepage's filesystem-directory description needs an API-version qualification. The v3.4 interaction guide describes prefix and half-open range operations, including a range that excludes its upper endpoint. The backup video's general API-v2-default statement also needs a version label: the same guide says etcdctl 3.4 defaults to v3, while 3.3 and earlier default to v2. Those are client-version facts, rather than a general rule that every installation needs its API default changed.
Historical durability reports deserve release-specific answers
Issue #14370 reports an acknowledged write disappearing after restart in a modified single-member reproduction. The reporter's sequence changes the code to trigger exit, receives OK for a put, restarts the server and gets no value from a prefix read. Maintainers discuss persistence and acknowledgement. The modified reproduction is central to describing this incident accurately, rather than turning it into a claim about every single-member installation.
Issue #20418 concerns apparent linearizability failures during process pauses. Linearizability means operations behave as though they occurred in an order consistent with their real-time sequence. The issue discussion investigates a member that continued accepting requests without revision progress and calls for instrumentation of Raft read-index code. Together, these reports identify concrete failure questions about persistence and read ordering that a source-build result does not answer.
FAQ
etcd is a distributed key-value store designed for small amounts of coordination data, according to the official FAQ. The questions below cover its name, first setup, network ports and operating procedures. They also distinguish live membership changes from disaster recovery, because replacing a member while a majority still operates is a different situation from rebuilding a failed control plane.
What is etcd, what does its name mean, and how is it pronounced?
The project FAQ says etcd means "distributed etc directory" and gives the pronunciation /ˈɛtsiːdiː/. The etcd history page connects the name to the Unix /etc configuration directory and distributed systems. The FAQ describes the software as a consistent distributed key-value store used as a separate coordination service, designed for small amounts of data that fit entirely in memory.
Where is the etcd GitHub repository, and how do I start using it?
The repository is etcd-io/etcd, whose README starts a single-member server and then puts and gets a key with etcdctl. It lists prebuilt release binaries and warns that main may be unstable or broken. It also documents a local three-member example using goreman. These are distinct entry paths: the single-member example introduces client requests, while the local cluster example introduces multiple members.
Which ports does etcd use for clients and peer communication?
The README lists port 2379 for client requests and 2380 for peer communication. Its TCP-port documentation separates those roles, while the FAQ distinguishes local listening addresses from advertised addresses used by remote clients and members. Advertised addresses must be reachable from other machines. The FAQ explicitly says localhost and 0.0.0.0 are unsuitable advertised addresses for a production setup.
How do you test an etcd disaster-recovery procedure beyond successfully creating snapshots?
The recovery author tested snapshot restoration in an isolated environment and established a clean recovery baseline. The recovery account recommends regular restoration exercises and backups outside the control plane's storage failure domain. It also names version compatibility, public-key infrastructure and cluster identity as documentation requirements. That gives a recovery exercise concrete outcomes beyond successfully creating a snapshot file: restored state and a usable control plane.
How do secrets and persistent volumes survive rebuilding a Kubernetes cluster?
A participant described Terraform and Flux for rebuilding, then named External Secrets Operator and S3 CSI when asked about secrets and volumes. That recovery discussion treats those components as parts of a particular design. Kubernetes' operator guide describes an etcd snapshot as containing Kubernetes state and critical information. Recreating that state and reconnecting application storage are separate jobs in a rebuild procedure.
How do you recover an RKE2 cluster when all three etcd server IP addresses change?
The RKE2 question describes three simultaneous peer-IP changes and asks about quorum loss and snapshot-based recovery. The interview discussion poses that scenario rather than demonstrating its repair. The official FAQ explains the relevant distinction: ordinary membership changes require majority agreement. Its live-member update procedure therefore answers a different operating state from a cluster whose members have permanently lost their majority.
Why do edited peer URL flags fail to update the addresses shown by etcdctl member list?
The FAQ directs operators to etcdctl member update to change a member's peer URLs. The membership explanation says initial advertised peer URLs apply at first boot; later changes must pass through quorum. Editing listen or initial-advertise flags after startup does not rewrite the committed advertised addresses. This prevents individual members from independently adopting conflicting membership configurations.
Should I remove an unhealthy etcd member before adding its replacement?
Yes: the FAQ says to remove the unhealthy member before adding its replacement. Its three-member example shows why: adding a fourth voter raises the required majority from two to three. If the new member fails to join while another is already down, the remaining two members cannot commit a reversal. Removing the failed member first keeps the required majority at two through replacement.
Why does etcd require quorum, and how many member failures can a cluster tolerate?
Three members tolerate one failure, and five tolerate two, according to the FAQ's failure-tolerance table. A quorum is the majority needed to agree on state changes. The FAQ shows that adding a fourth member to three does not increase the failure allowance. It also explains that cross-region deployment separates failure domains while increasing consensus latency and the bandwidth needed to replicate data among members.
Why does etcd slow down at scale, and can Kubernetes separate resource types across etcd clusters?
Hennexl describes routing resource types to separate etcd instances with --etcd-servers-override in the Kubernetes scaling discussion. That is Kubernetes-level routing. The etcd architecture page describes a single replication group without native data sharding. The FAQ separately explains that adding members increases replication work and reduces write performance, so membership size is not a general throughput remedy.
How can I debug intermittent etcd latency when disk metrics appear normal?
Maintainers in issue #11884 asked about range requests, elections, server load and connection count, then suggested trace logging and extensive gRPC metrics. The historical latency discussion therefore offers several concrete investigation paths beyond a disk graph. The FAQ also identifies disk contention, CPU starvation and expensive requests as possible contributors to slow operations, with different metrics and symptoms for each.
What we have not tested yet
The November 10 harness reports 2 passing results, without an exhaustive inventory of individual test cases or complete suite coverage. Our run did not measure request throughput, latency, leader failover, quorum loss, corrupted-database repair, snapshot restoration, cross-region operation or Kubernetes resource routing. The configured golang:1.24-bookworm image label also does not identify the actual runtime Go or operating-system version; that would require the raw toolchain logs.
The November 21 recipe installed the client module and stopped at the missing Go snippet; it did not execute a client workload against a live server. Its proxy-selected v3.7.4 module differs from the checked-out server commit. The 745.3 MB figure measures module-cache storage, rather than a deployed server's footprint. Its recipe measurements and the November 10 harness measurements remain separate, and no corrected client program was executed for this revision.
The historical discussions in #14370 and #20418 do not demonstrate an affected-to-fixed release boundary. This review neither certifies a current release as affected nor identifies a released repair. The old grpc-go workarounds and microservice inconsistency report also lack a demonstrated current-release conclusion here. We have not reproduced those incidents, and the latency investigation in #11884 does not supply a confirmed final repair for every symptom it reports.
ZooKeeper, Consul, Redis, PostgreSQL, SQLite and DynamoDB were not run alongside etcd, so the comparison table provides workload distinctions rather than measured performance rankings. The RKE2 discussion lacks a complete tested recovery walkthrough for simultaneous peer-IP changes after quorum loss. Security configuration, secret reconnection and persistent-volume recovery require deployment-specific assessment beyond these repository checks. Search hypotheses and discussion activity provide no measured worldwide search volumes, rankings or adoption figures.


