Self-host etcd
v3.7.3Distributed reliable key-value store for critical data
- Stars
- 52 685
- Ports
- 2379 (client communication), 2380 (peer communication)
gcr.io/etcd-development/etcdWhat is etcd?
This software provides a strongly consistent, distributed key-value store designed for the most critical data in distributed systems. It employs the Raft consensus algorithm to maintain a highly-available replicated log across cluster members. Core capabilities include a gRPC API, automatic TLS with optional client certificate authentication, and performance benchmarked at 10,000 writes per second. Deployment options include pre-built binaries for Linux, macOS, and Windows, Docker containers from gcr.io/etcd-development/etcd or quay.io/coreos/etcd, and Kubernetes StatefulSets. The service listens on port 2379 for client traffic and 2380 for peer communication. Minimum hardware requirements call for SSD storage, at least 2GB RAM (with 8GB as a suggested maximum), and dual-core processors. As a CNCF graduated project, it serves as the backing store for Kubernetes, CoreDNS, Rook, and other cloud-native systems.
etcd alternatives
?The programmable open source core ledger for fintechCompare? with etcd
DockerRegistrySelf-hosted, open-source (Apache-2.0) container registry implementing the OCI Distribution spec: private image/artifact storage with cloud backends, auth and TLS.CompareDockerRegistry with etcd
nethermind-ethereumSelf-hosted Ethereum execution client on .NET featuring rapid snap sync, plugin architecture, and configurable history storage. Compatible with Linux, Windows, and macOS.Comparenethermind-ethereum with etcd
consulSelf-hosted Consul is a service networking tool for service discovery, service mesh with mTLS, API gateway and health checks across multi-datacenter infrastructure.Compareconsul with etcd
Versity S3 GatewayVersityGW is an open-source, Apache-2.0 S3 object-storage gateway in Go: it turns POSIX filesystems, ScoutFS or Azure Blob into an S3 API, with IAM, WebUI and Helm.CompareVersity S3 Gateway with etcd
gtsdbGTSDB is a self-hosted, open-source time-series database in Go using WAL-first architecture for sub-millisecond reads and 233x faster writes than InfluxDB.Comparegtsdb with etcd
kiteSelf-hosted, open-source Kubernetes workspace for multi-cluster management: RBAC, LDAP/OAuth login, Prometheus monitoring, Helm, audit logs, and an AI assistant.Comparekite with etcd
automqSelf-hosted, open-source Apache Kafka fork with stateless brokers that store logs on S3 or MinIO and rebalance partitions in seconds.Compareautomq with etcd
Should you self-host etcd?
etcd scores 85/100 on selfhost.directory (how scoring works) and ranks #1 of 38 in Databases. It has 52 685 GitHub stars, +350 in the last 30 days.
It shipped 12 stable releases in the past year. The latest, v3.7.3, came out on 22 October 2026.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Redis (85/100, 77 334 stars). etcd scores higher overall. See etcd vs Redis side by side.
Features
- Distributed consensus (Raft)
- gRPC API
- Key-value storage
- Multi-version Concurrency Control
- Role-Based Access Control (RBAC)
- Snapshots and backups
- TLS/SSL authentication
- TTL Support
- Watch for Changes
etcd README
Note: The main branch may be in an unstable or even broken state during development. For stable versions, see releases.
etcd is a distributed reliable key-value store for the most critical data of a distributed system, with a focus on being:
- Simple: well-defined, user-facing API (gRPC)
- Secure: automatic TLS with optional client cert authentication
- Fast: benchmarked 10,000 writes/sec
- Reliable: properly distributed using Raft
FAQ
What does 'mvcc: database space exceeded' mean?
The multi-version concurrency control history has exhausted storage space. Compact history, defragment endpoints, and disarm the alarm to recover.
Should I add a member before removing an unhealthy member?
No, remove the unhealthy member first, then add the replacement. Adding first increases quorum and risks permanent quorum loss if the new member fails to join.
How to backup an etcd cluster?
Use etcdctl snapshot command to create backups.
Why an odd number of cluster members?
An odd-size cluster tolerates the same number of failures as an even-size cluster but with fewer nodes. Adding a member to an odd-sized cluster increases quorum requirements without improving fault tolerance.
More in Databases
ferretdbOpen-source, self-hosted MongoDB alternative: a proxy that turns MongoDB 5.0+ queries into SQL on PostgreSQL with the DocumentDB extension.
FirebirdSQLFirebird is a self-hosted, open-source relational database with ANSI SQL compliance, excellent concurrency, and high performance on Linux, Windows, macOS, and Android.
firebolt-coreA free, self-hosted analytical database with PostgreSQL SQL, Iceberg support, and distributed query execution scaling from laptop to enterprise clusters.
GelOpen-source graph-relational database that builds on Postgres with EdgeQL, migrations, branching, built-in auth and AI; self-hosted via Docker or the gel-server binary.
GizmoSQLSelf-hosted SQL server on DuckDB/SQLite with Arrow Flight SQL, TLS, JWT auth. Core is Apache 2.0; Enterprise adds SSO, metrics, permissions.
GoatDBGoatDB is an open-source embedded document database for human-agent collaboration with offline-first sync, structural merge, and cryptographic commit signing.
greptimedbSelf-hosted and open-source: one Rust columnar telemetry store keeps metrics, logs and traces in a single engine with SQL or PromQL queries over object storage.
GristA self-hosted, open-source relational spreadsheet with database-style columns, Python formulas, row-level access rules, forms and drag-and-drop dashboards.
gtsdbGTSDB is a self-hosted, open-source time-series database in Go using WAL-first architecture for sub-millisecond reads and 233x faster writes than InfluxDB.
gunOpen-source P2P graph database with realtime sync and offline-first storage; run a self-hosted relay peer via Docker or npm in browsers, Node.js and mobile apps.
helixdbA Rust-based graph database that unifies vector similarity and keyword search on object storage for AI memory workloads.
influxdbOpen-source, single-node time series database you self-host for real-time metrics and events, querying Parquet-backed data with SQL or InfluxQL.
0 comments