Logo
Deploy Now

Stars

52,144

Forks

10,461

Watchers

1,265

Developer links

etcd

With over 52,000 GitHub stars and its role as the foundation of every Kubernetes cluster worldwide, etcd is the distributed key-value store that handles the most critical data in modern infrastructure — cluster state, configuration, service discovery, and distributed coordination. Built in Go and graduated from the CNCF, etcd uses the Raft consensus algorithm to maintain a strongly-consistent, highly-available replicated log across a cluster of machines, gracefully handling leader elections during network partitions and tolerating machine failure including the leader node. The gRPC API provides atomic key-value operations including put, get, delete, and transactions with multi-key compare-and-swap semantics, enabling distributed locking, leader election, and configuration management without external coordination. Watch operations stream real-time change notifications for specific keys or key ranges, powering reactive architectures that respond immediately to configuration updates. Version 3.7 introduces RangeStream for streaming large result sets in chunks, keys-only range requests for faster metadata queries, and bootstraps entirely from v3store after eliminating the legacy v2 store dependency. Automatic TLS encryption with optional client certificate authentication secures all cluster communication, while role-based access control restricts key access per user. The embedded bbolt B+ tree storage engine provides consistent reads and writes with configurable compaction policies. Benchmarked at 10,000 writes per second per instance with linearizable reads, etcd supports clusters of 3, 5, or 7 members for fault tolerance. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache 2.0 licensed.

etcd
etcd

Benefits

  • Raft Consensus Strong Consistency
  • Replicated log via Raft ensures linearizable reads and serializable writes with automatic leader election, graceful network partition handling, and tolerance of minority node failures.
  • Kubernetes Cluster State Foundation
  • Primary backing store for every Kubernetes cluster, storing all cluster objects, configurations, secrets, and service discovery data with watch-based real-time change notifications.
  • Atomic Multi-Key Transactions
  • Compare-and-swap transactions support atomic multi-key operations enabling distributed locking, leader election, sequential consistency guarantees, and configuration management without external coordination.
  • gRPC API with Watch Streams
  • Well-defined gRPC interface provides put, get, delete, range queries, and persistent watch streams that deliver real-time change notifications for keys or key prefixes efficiently.

Features

  • Key-Value Storage
  • Flat key-value namespace with prefix-based range queries, revision history, and configurable compaction backed by the bbolt B+ tree storage engine for consistent performance.
  • Watch Notifications
  • Persistent watch streams deliver real-time change events for specific keys or key ranges, enabling reactive configuration updates and service discovery without polling.
  • Automatic TLS Encryption
  • Mutual TLS with automatic certificate rotation secures peer and client communication, with optional client certificate authentication and role-based access control.
  • Distributed Locking
  • Lease-based distributed locks and leader election primitives with configurable TTLs provide coordination primitives for building distributed applications reliably.