Day 2
Scale control planes
Go from one odd number of control planes to another: 1, 3 or 5.
Before you start
Section titled “Before you start”- etcd is healthy.
pk-metal statusshowsEtcdRunningin theETCDcolumn. - For a scale up, free machines exist.
The rules
Section titled “The rules”| After the removal | Without acknowledgement |
|---|---|
| No member left | Refused |
| Fewer healthy members than a majority | Refused |
| An even number of members (2, 4) | Refused |
| The member is the leader while others leave | Waits. The leader leaves last. |
| Another control plane joins or leaves | Waits |
A cluster of 4 survives one failure, as a cluster of 3 does. Prefer odd sizes.
-
Show the plan. It lists each machine that the cluster gains or gives back, in order.
Terminal window pk-metal scale prod --control-planes 1 --workers 2 -
Apply the plan. Going from 3 to 1 passes through 2 members, so give a reason.
Terminal window pk-metal scale prod --control-planes 1 --workers 2 --apply --ack-etcd-risk "move to 1 control plane for rack work" -
Approve the operations one at a time. Wait until etcd is healthy before you approve the next.
Terminal window pk-metal approve
Verify
Section titled “Verify”kubectl get taloscluster prod shows the new count in CP.
If it fails
Section titled “If it fails”| What you see | Go to |
|---|---|
Claim blocked on EtcdRiskRefused |
Give --ack-etcd-risk, or choose an odd size. |
Claim blocked on RemovalWaiting |
Wait. Another control plane leaves first. |
| etcd unhealthy | etcd unhealthy or quorum lost |