Skip to content

Concept

Cluster guard

etcd works only while a majority of its members are up. If you approve three reboots on three control planes at once, the operator still takes down one at a time.

Three approved reboot operations on cp-1, cp-2 and cp-3. The guard lets cp-1 run. cp-2 and cp-3 wait with ClusterDisruption until cp-1 is back and etcd is healthy.reboot cp-1Runningreboot cp-2ClusterDisruptionreboot cp-3ClusterDisruptionCluster guardasks etcd live, before each stepgowaitwait
Three approvals, one at a time. Workers are not held.

Before a step takes a control plane down, the guard checks:

  1. One at a time. No other control plane of the same cluster is in the middle of such an operation.
  2. A healthy quorum. etcd is fully healthy without this node. Each other member answers, has no error, knows a leader and is not a learner. etcd has no alarm. The members that stay are a majority.

The guard counts from the etcd member list, not from the TalosNodes. A member that a wiped node left behind still counts against the majority.

When the first step that takes the node down is its own EtcdLeave, as in a release, the member leaves while the other members answer. The guard then counts the majority from the smaller cluster, so a release can take two control planes down to one. The last member still needs the override.

quorum
A majority of the etcd voting members. Three members tolerate one failure. Two members tolerate none.
learner
A new etcd member that copies data and has no vote yet.
Steps that take a node down
A power cycle, a power off, TalosReboot, TalosShutdown, TalosUpgrade, TalosReset, EtcdLeave, and TalosApplyConfig in mode Reboot or Auto.
ClusterDisruption
The blockedOn reason of an operation that the guard holds. Nothing happened to the machine yet.