Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

etcd on a VPS

etcd is a distributed, strongly consistent key-value store for configuration, service discovery and leader election, replicated with Raft.

1 GBMinimum memory
Ubuntu 24.04 LTSBase image
2379/tcp, 2380/tcpPorts
Apache-2.0License

About etcd

etcd is a distributed, consistent key-value store for data a system cannot afford to lose: configuration, service discovery, leader election and locks. Every write is replicated through the Raft consensus algorithm, and clients talk to it over gRPC. Best known as the store behind Kubernetes, it is a graduated CNCF project under Apache-2.0.

etcd is very sensitive to disk write latency, so NVMe matters more than raw CPU. Three or five CloudSat servers in one region make a fault-tolerant cluster.

The deployed node runs etcd on Ubuntu 24.04 LTS: clients connect on port 2379, peers on 2380, and etcdctl manages it.

What you get with etcd

  • Strongly consistent reads and writes via Raft
  • Watches that stream key changes
  • Leases with TTLs for ephemeral keys
  • Multi-key transactions
  • Mutual TLS and role-based access control
  • Snapshots with etcdctl snapshot save

etcd use cases

  • Configuration and feature flags shared by many services
  • Leader election and distributed locks
  • A lab cluster for testing failover behavior

After you deploy etcd

  1. Once deployment finishes, SSH in and check the member with etcdctl endpoint health.
  2. Try a write and a read: etcdctl put greeting hello, then etcdctl get greeting.
  3. Before production, enable client and peer TLS, create a root user and run etcdctl auth enable.
  4. Schedule snapshots, and open 2379 and 2380 in the CloudSat firewall only to cluster members and trusted clients.

etcd ports

Open these in your firewall if you use one: 2379/tcp Client API, 2380/tcp Peer traffic.

etcd FAQ

How many members should a cluster have?

An odd number: three tolerate one failure and five tolerate two. Extra members slow writes, because each write needs a quorum.

What hardware does etcd need?

Its docs say typical clusters run well on two to four cores, that 8 GB of memory is usually enough, and that low disk write latency matters most.

Disclaimer. The etcd project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

etcd on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back