selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

etcd logo

Self-host etcd

v3.7.3

Distributed reliable key-value store for critical data

ReleaseOpen SourceApache-2.0
Updated2 weeks ago
LanguageGo
Setup difficultyModerate
Stars
52 685
Ports
2379 (client communication), 2380 (peer communication)
Docker
gcr.io/etcd-development/etcd
Install with Kubernetes

What 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.

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

etcd

Go Report Card Coverage Tests codeql-analysis Docs Godoc Releases LICENSE OpenSSF Scorecard

Note: The main branch may be in an unstable or even broken state during development. For stable versions, see releases.

etcd logo

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

How to install etcd

Install etcd with Kubernetes

Run etcd clusters as a Kubernetes StatefulSet

See https://etcd.io/docs/v3.7/op-guide/kubernetes/

etcd releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

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

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…