Skip to content

"More replicas mean higher availability"

“One node is a single point of failure. Add replicas: the more copies, the more available the system.”

Take a replicated database that needs a majority of nodes (a quorum) to accept writes, as Raft- and Paxos-based systems such as etcd, Consul and many distributed databases do. Each node is independently available 99.9% of the time.

Nodes Must be up Availability Expected downtime per 30 days
1 1 99.9% about 43 minutes
2 2 99.8% about 86 minutes
3 2 99.9997% about 8 seconds
4 3 99.9994% about 16 seconds
5 3 99.999999% under 0.1 second

Two counterexamples in one table:

  • Two nodes are less available than one. A majority of two is two, so either node failing stops writes. You’ve doubled the hardware and doubled the downtime.
  • Four nodes are less available than three. A majority of four is three, so four nodes tolerate one failure, the same as three, while adding one more thing that can fail.

Now add a shared dependency. Put the three-node cluster in one availability zone that’s up 99.95% of the time. The cluster can’t be more available than the zone it sits in: availability drops from 99.9997% to about 99.95%, roughly 22 minutes of downtime a month, despite three replicas. The same happens when all replicas share a configuration push, a software version with the same bug, a certificate that expires on the same day, or a single network path.

Replicas only help when failures are independent and the quorum tolerates them1. A two-node majority needs both nodes, so either failure stops writes. 2. Three replicas that share a zone, a configuration or a bug fail together, so the shared part sets the ceiling.Two nodes: quorum 2 of 2Three nodes: quorum 2 of 3Shared fate Node A99.9% Node B99.9% 99.8% availableworse than one node Node A99.9% Node B99.9% Node C99.9% One zone99.95% One config pushsame bug everywhere About 99.95%capped by the zone12
Replicas only help when failures are independent and the quorum tolerates them Two nodes need both; four need three; three replicas in one zone fail with the zone.
  1. A two-node majority needs both nodes, so either failure stops writes.
  2. Three replicas that share a zone, a configuration or a bug fail together, so the shared part sets the ceiling.

Change the number of nodes and spread them across zones. The chart shows availability for every cluster size from 1 to 7, so the dips at 2 and 4 nodes stay visible. The first scenario reproduces the example above.

Replication raises availability only when two things are true: failures are independent, and the system keeps working when some replicas fail.

  • Quorum arithmetic. A majority-quorum system with n nodes tolerates ⌊(n − 1) / 2⌋ failures. Going from an odd number to the next even number adds a node that can fail without adding a failure it can tolerate.
  • Correlated failure. Availability math that multiplies independent probabilities is only valid if failures are independent. Replicas that share a zone, a power feed, a deployment, a configuration or a dependency fail together, and the shared component sets the ceiling.
  • More parts, more failure modes. Replication adds failover logic, health checks and network partitions, each of which can fail in ways a single node can’t, such as split brain.
  • Replicas fail independently: separate zones or regions, staggered deployments, separate configuration rollouts.
  • The system tolerates replica failures: stateless services behind a load balancer (any one replica can serve), or quorum systems with an odd number of nodes.
  • Failover is tested and automatic, and clients reconnect correctly.

Replicas raise availability only when their failures are independent and the system tolerates losing some of them. For majority-quorum systems, use an odd number of nodes, spread across failure domains, and look for the shared dependency that sets the real ceiling.

Discussion question. A team runs three replicas of every service across three availability zones, and still had a full outage last quarter. List five things all three replicas might share that would make them fail together.

Exercise. A five-node quorum cluster spans three zones: two nodes in zone 1, two in zone 2, one in zone 3. Each zone is up 99.95% of the time; treat the nodes themselves as perfectly reliable. What fails if zone 1 goes down? Is there a single zone whose loss stops the cluster?

Worked answer

The cluster needs 3 of 5 nodes. Losing zone 1 removes 2 nodes, leaving 3: the cluster keeps working. Losing zone 2 also leaves 3. Losing zone 3 leaves 4. No single zone failure stops the cluster, so it survives any one zone outage. It stops only if two zones fail at once. With independent zones at 99.95%, the chance that two or more are down at the same time is about 0.000075%, roughly 2 seconds a month. Put three nodes in zone 1 instead, and losing zone 1 alone stops the cluster: same node count, very different availability.

Glossary: CAP theorem

Written and edited by Abhinav Taduka, enterprise software architect.