Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Leg 1 debrief: A cluster I built myself

21 November 2026

PlannedFlown
Landed20 November21 November
Evenings47
Issues8 at takeoff11 closed, 3 of them headwind

What the leg delivered

Leg 1 set out to build a highly available cluster, break it on purpose and put the stores on it. It did all three. Five VMs from #10 run on my home server, and caches on the host from #75 and #82 cut building them from 18 minutes to 6. I bootstrapped three control planes behind a virtual IP by hand in #11, then turned the same steps into one command in #105.

The drills prove it holds. Losing one control plane in #12 cost nothing, and losing two stopped writes exactly as quorum says it should. The etcd restore in #13 took reads down for 19 minutes the first time and 93 seconds following the runbook. Redpanda in #14 kept all 100,000 acknowledged records through a Pod delete. ClickHouse in #15 took 10,000 frames twice and kept 10,000. ADR 2 and ADR 3 record why I chose kubeadm and Redpanda in #16, and the checkpoint in #17 closed the leg.

How it went

The first call set the rest. My laptop had 6 GB free against a 10.5 GB budget, so the cluster moved to my home server within the hour. Building the control plane by hand first, then scripting it, meant every line of the script was a step I’d already run and understood. The plan’s order held.

Two calls shaped the leg. The ClickHouse key moved from MAVLink’s seq to Redpanda’s partition and offset, because seq wraps at 255 and would have deleted real frames. And when the bash passed 600 lines, I filed the move to standard platform tools as #130, with a trigger, rather than polish code it will replace.

What could have gone better

The budget was wrong, not the work. Four evenings assumed more hours than an evening holds after a full working day. Exercise, cooking, dishes and some rest leave a few hours at most, and three of the seven evenings were weekend days, so the slack went too. Three headwind issues weren’t in the plan either: the host caches and the one-command bootstrap. They paid for themselves within the leg.

The due day went on the wrong work. On 20 November I opened nine security issues and closed four of them instead of sitting the checkpoint. The other five closed the next day before it did, and the leg landed a day late. From now on, work outside a leg waits until that leg has landed. Security keeps its own milestone, but it never takes a leg’s last evening.

The tools cost evenings of their own. A snap refresh downgraded Multipass overnight and broke the suspended VMs, so refreshes are now held. multipass exec truncated an etcd snapshot to 2.2 of 15 MB, so the runbook copies with multipass transfer and checks every hash. And a pull request closed #11 while every box on it was still unticked, so I now check which issues a pull request will close before it merges.

Nor did I budget for the machine I have. My home server is a 2012 two-core i5 on a link of about 1.1 MB/s. ClickHouse 26.8 needs AVX2, and I found out after almost five minutes spent pulling an image that couldn’t run. From here I check an image’s CPU baseline before pulling it, and I size work for this box, not an ideal one.

Into the next leg

The plan now follows the pace I flew, with room to read. Leg 1 took 1.75 times its budget, and the legs ahead lean on datasheets, reference manuals and protocol specs. So every remaining budget doubles, flown every evening. Leg 2 gets six evenings and lands on 27 November, Leg 3 eight by 5 December and Leg 4 eight by 13 December, nine days after the old landing. The milestones moved in #176.

Update, 21 November: every leg now has reading days and a reading list of its own, and Leg 4 lands on 24 December. #185 has the new dates.

Leg 2 builds the firmware. Its biggest risk is MAVLink over UART with DMA in #6. If DMA eats the evenings, it moves to Stretch and the fallback is interrupt-driven writes, as long as the UART budget in #6 shows they keep up with the frame rate.

data-1 has 2.5 of its 4 GiB claimed before the pipeline and Grafana arrive in Leg 3, and the fallback is another gigabyte from the host. #130 is the debt I chose, and it starts once Leg 4 lands. The project stays on 0.x until then, when the Results table holds real numbers.