A machine in my cluster hung for six and a half hours on a failing drive. It ran my way in from
outside, so each time it went down, the way in went with it.
Two earlier write-ups of the same hang end with “root cause unknown”. The crash record was in
the firmware’s own log the whole time, and I had not read it.
So December is an advent calendar. One change at a time, each meant to keep the cluster up when
a machine is not. A window is lit for each one that is done.
- 01Running without the fourth machine
- 02The admin page on every node
- 03Not yet
- 04Not yet
- 05Not yet
- 06Not yet
- 07Not yet
- 08Not yet
- 09Not yet
- 10Not yet
- 11Not yet
- 12Not yet
- 13Not yet
- 14Not yet
- 15Not yet
- 16Not yet
- 17Not yet
- 18Not yet
- 19Not yet
- 20Not yet
- 21Not yet
- 22Not yet
- 23Not yet
- 24Not yet
No. 1 · December 5
Running without the fourth machine
The cluster had four machines and needed three. The fourth was the one that kept hanging.
I absorbed its workload into the other three. The router and the home automation moved over.
What I did not need went away: two desktop virtual machines, a Windows machine, a container host
and sixteen idle browsers. Then I cut the memory and compute allocations until three machines
carried everything, with room to spare.
The fourth machine now runs nothing. It is still plugged in and still a member of the cluster.
Taking it out is a later window.
Two things went wrong on the way. Moving one large disk onto the shared storage took the
fullest drive to 89%, four points past the warning line, until I deleted it. And draining the
workers took several public sites down, the longest for six and a half minutes, because the pods
that moved had to queue to pull their images again.
No. 2 · December 5
The admin page on every node
The machine I had just emptied was also the first stop for the page I administer the
hypervisors from. That page needed a new front door.
It now runs across the three remaining nodes. The proxies in front of it went from two copies
to three, one on each node, so any one can go down and two are already running. Behind them the
page is served by one hypervisor, with the other two as hot spares. If the active one stops
answering, the next takes over in about ten seconds.
None of it needs a virtual machine of its own. The load balancer runs inside the cluster, and
its address is announced by MetalLB from whichever node is healthy, so there is no extra box to
keep alive.
One wrong turn: for about ten minutes the page was balanced across all three hypervisors at
once. One at a time with spares is the right shape for a page one person uses.
Not done: a node that dies outright can take up to 40 seconds to be noticed, and I have not
pulled a plug to prove any of it.