Skip to content
Jacob NolletteCloud & software engineer

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.

  1. 01Running without the fourth machine
  2. 02The admin page on every node
  3. 03Not yet
  4. 04Not yet
  5. 05Not yet
  6. 06Not yet
  7. 07Not yet
  8. 08Not yet
  9. 09Not yet
  10. 10Not yet
  11. 11Not yet
  12. 12Not yet
  13. 13Not yet
  14. 14Not yet
  15. 15Not yet
  16. 16Not yet
  17. 17Not yet
  18. 18Not yet
  19. 19Not yet
  20. 20Not yet
  21. 21Not yet
  22. 22Not yet
  23. 23Not yet
  24. 24Not yet
2 of 24 lit. One window for each change. A lit one is done and links to what happened.

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.