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.
The two checks
Section titled “The two checks”Before a step takes a control plane down, the guard checks:
- One at a time. No other control plane of the same cluster is in the middle of such an operation.
- 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
RebootorAuto. - ClusterDisruption
- The
blockedOnreason of an operation that the guard holds. Nothing happened to the machine yet.
What the guard does not hold
Section titled “What the guard does not hold”- Workers.
- Control planes that are not etcd members: they still join, or they already left.
- A cluster that was never bootstrapped. On day 0 all control planes install at once.
Override
Section titled “Override”In the reference
Section titled “In the reference”- HostOperation controller
- Node lifecycle: the same rules for join and leave