# The etcd learner: adding a member without losing quorum for nothing

> Adding a new node to etcd changes the quorum before the node gets the data, and in that window you can take the cluster down out of nowhere — the learner feature from etcd 3.4 closes exactly that hole.

2026-11-28 · https://kvaps.workshop.aenix.io/en/blog/etcd-learner/


The nastiest part of scaling out an etcd cluster is that the moment a node is added and the moment it is ready do not coincide. You add a voting member to a single-node cluster, and at that very moment the quorum becomes 2 out of 2. Meanwhile the node itself is empty: it has only just started receiving the log. From Raft's point of view the configuration is already the new one; from the data's point of view it is still the old one. If at that moment the new node is unavailable, misconfigured, or just slowly catching up, the old node is left in the minority: one vote out of the two required. The cluster you were scaling out for the sake of reliability becomes, for a few minutes, less reliable than it was.

## What actually happens

Quorum in Raft is counted from the number of voting members of the cluster, not from the number of live ones. A membership change is an ordinary entry in the log: once it is committed, the new configuration takes effect. In a single-node cluster the leader commits on its own, so the entry about the addition goes through instantly. From that moment on, committing any new entry requires two acknowledgments out of two. The new node, meanwhile, has not received a single entry yet. The window between "the configuration has been updated" and "the node has caught up with the log" is exactly the place where clusters get lost when nothing seems wrong. The bigger the log and the worse the network, the wider the window.

## How it works inside

### Learner: a replica without a vote

Starting with etcd 3.4, a node can be added as a learner. It is a full participant in replication: the leader sends it the log, it applies it and catches up with the rest. But it does not count toward the quorum — its vote is not taken into account when the majority is counted. While the learner is catching up, the quorum stays the same, and the cluster works as if nothing is happening. Once the learner has synced up, it is promoted to voting member with the etcdctl member promote command. One important detail: etcd will refuse to promote a learner that has fallen behind. That is not a whim, it is protection — promoting a lagging node to a voting one would put us right back into the same unreadiness-window trap, only without a safety net this time.

### Why you can't just swap the whole configuration at once

The Raft paper has a dedicated section on membership changes, and it explains why the configuration is changed one node at a time or via joint consensus. If you switch the cluster from the old membership to the new one in a single jump, at some point two non-overlapping groups can exist, each considering itself the majority: one by the old rules, the other by the new ones. Two leaders, two different logs — goodbye consistency. That is why changes go one at a time, and that is why the learner is not a hack but a clean way to fit a catching-up node into this model without breaking the "one change at a time" rule.

## What follows from it

First: don't add a voting member directly while it has no data. Only a learner, then wait for the sync, then promote. Second: a refused promote is diagnostics, not an error to work around. The learner has fallen behind — find out why: network, disk, load on the leader. Third: remember the arithmetic. Two voting members means zero fault tolerance: losing either one stops writes. If you are expanding a single node, plan for three voters right away, adding them one at a time through the learner. Fourth: during membership operations the cluster is at its most vulnerable — don't combine them with reboots, upgrades, or network maintenance. In essence, the whole rule boils down to one thing: data first, then the vote.

## How to check it yourself

Add a node as a learner and watch how the cluster behaves: writes should continue without pauses, because the quorum has not changed. Keep an eye on whether the learner is catching up with the leader on the log. Then promote:

```
etcdctl member promote
```

If the command refused, the learner is still behind, and etcd has just saved you from a self-inflicted outage. It is also worth checking the opposite: add a voting member directly in a test cluster and see how quickly writes stall if the new node does not respond. Seeing it once on a test bench is more useful than reading about it ten times.

## Sources

- https://etcd.io/docs/v3.5/learning/design-learner/
- https://raft.github.io/raft.pdf

