<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alo Martin</title>
    <description>The latest articles on DEV Community by Alo Martin (@alomartinp).</description>
    <link>https://dev.to/alomartinp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2196011%2F401ada23-031d-4e77-91bb-3509afcad070.jpg</url>
      <title>DEV Community: Alo Martin</title>
      <link>https://dev.to/alomartinp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alomartinp"/>
    <language>en</language>
    <item>
      <title>Two years of git, ten months of building: a fitness app, me and a fleet of AI agents</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Tue, 24 Nov 2026 06:20:00 +0000</pubDate>
      <link>https://dev.to/mouve/two-years-of-git-ten-months-of-building-a-fitness-app-me-and-a-fleet-of-ai-agents-5ca</link>
      <guid>https://dev.to/mouve/two-years-of-git-ten-months-of-building-a-fitness-app-me-and-a-fleet-of-ai-agents-5ca</guid>
      <description>&lt;p&gt;Mouve is a fitness and nutrition app. I build it with a fleet of AI agents, and its first commit is dated 28 November 2024. This is the story of how it got built and what was hard, written on 20 November 2026.&lt;/p&gt;

&lt;p&gt;Two things first, because the title could mislead. The git history is just under two years long, but only &lt;strong&gt;305 commits&lt;/strong&gt; landed before 2026. Almost all of the building happened in the last ten months. And "me" is a simplification: for part of that history another developer worked on it with me and committed to the repo. The rest is agents, and I will say where they helped and where they did not.&lt;/p&gt;

&lt;p&gt;I am not going to tell you the app is a success. The only revenue number I have published is &lt;strong&gt;EUR 11.98 of monthly recurring revenue&lt;/strong&gt;, from my X thread on 20 November 2026. I do not publish user counts, so there are none here.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What I set out to build, and how that changed
&lt;/h2&gt;

&lt;p&gt;The repository starts as a Next.js project with auth on 28 November 2024. A Prisma commit follows on 2 December 2024, and Drizzle follows on 18 January 2025. After that, the history is thin until October 2025.&lt;/p&gt;

&lt;p&gt;The product description changed more than the stack did. As late as 22 October 2026 our product overview described Mouve as a fitness and nutrition social network. Three days later I dropped that framing. "Fitness with your friends" sounds cringy, and a new user has no friends on the app on day one, so the pitch promises an empty first day.&lt;/p&gt;

&lt;p&gt;What I want instead: a world of fitness to step into. Personal tracking that is close to painless. Learning built into the doing, so the video, the article and the spreadsheet collapse into one place. A world to go into, with outdoor gyms, venues and places. And a game. Friends are an outcome, not the pitch.&lt;/p&gt;

&lt;p&gt;That had concrete effects. A layered feed with For you, Following and Nearby tabs was rejected on 25 October 2026 and switched off in production. Medals are allowed but decorative and private, with no points and no leaderboards. On 13 November 2026 I hid the communities feature behind a flag that is off everywhere, keeping the code and data. It is the clearest example I have of a vision change costing real work: a shipped, working feature was parked because it no longer fit the sentence.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The shape of the history
&lt;/h2&gt;

&lt;p&gt;Counting commits would flatter me. Of 10,609 commits on main, &lt;strong&gt;4,662 (44%)&lt;/strong&gt; come from release automation, the auto-merge bot and an agent account that opens batch pull requests. Merged pull requests are a fairer count, and I took them from the GitHub search API:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Month&lt;/th&gt;
&lt;th&gt;Merged PRs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Nov to Dec 2024&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jan to Sep 2025&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 2025&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 2025&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2025&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jan 2026&lt;/td&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feb 2026&lt;/td&gt;
&lt;td&gt;174&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mar 2026&lt;/td&gt;
&lt;td&gt;79&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apr 2026&lt;/td&gt;
&lt;td&gt;240&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;May 2026&lt;/td&gt;
&lt;td&gt;448&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jun 2026&lt;/td&gt;
&lt;td&gt;204&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jul 2026&lt;/td&gt;
&lt;td&gt;379&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aug 2026&lt;/td&gt;
&lt;td&gt;341&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sep 2026&lt;/td&gt;
&lt;td&gt;702&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 2026&lt;/td&gt;
&lt;td&gt;1,695&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 2026 (to the 20th, partial)&lt;/td&gt;
&lt;td&gt;982&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is about &lt;strong&gt;5,300 merged PRs&lt;/strong&gt;, and about 3,400 of them (63%) are from September on. The curve tells the real story: the project barely existed for most of 2025, then it compounded once agents were doing most of the typing.&lt;/p&gt;

&lt;p&gt;The phases, from the git log and the plan documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;January 2026.&lt;/strong&gt; A big redesign, the first mobile app work (late January) and a food service for user-generated content. At this point the data layer still leaned on Supabase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;March 2026.&lt;/strong&gt; The API moved from a Fastify server to NestJS (5 March). The Kubernetes setup in this repo starts on 16 March.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;April 2026.&lt;/strong&gt; Opaque server-side sessions became the only user credential on 20 April, and a plan to remove Supabase entirely followed on the 21st. It is marked shipped as of 4 August. The first mobile release tag is dated 26 April.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;April and May 2026.&lt;/strong&gt; Multi-cluster work for our office cluster, and an identity provider deployed on 5 May.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;September and October 2026.&lt;/strong&gt; The scanner rebuild, the agent platform, and the volume jump in the table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two rules came out of this phase that I would keep on any project. NestJS owns the database and the web app never queries it, so mobile and web take the same path. And fix the class of a bug, not the instance: if the fix is "also clean up the stale thing on write", the state should not have existed.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Me plus agents
&lt;/h2&gt;

&lt;p&gt;Here is how the work flows.&lt;/p&gt;

&lt;p&gt;Every change is a pull request from a git worktree, never a push to main. Required checks must pass, plus guards for specific failure classes: migrations, brand colours, architecture limits, legal versions. When they pass, a bot merges. A merge goes to a dev environment first and runs end-to-end tests, then the same build goes to production behind a smoke test that reverts itself on failure. Changes to deploy, auth, payments and migrations get an independent review that the author cannot give itself.&lt;/p&gt;

&lt;p&gt;Agents run on a cluster queue. Headless workers claim tasks, run them in their own worktree, open the pull request, and resume after a usage limit resets. Every session writes a handoff, and a shared memory store means a fresh agent starts with what the last one learned. A model router sits in front of the cheaper tiers. Free and self-hosted models take mechanical edits, DeepSeek takes general multi-file work off-peak, and Claude takes browser work, secrets and review. My rule is that no vendor is preferred.&lt;/p&gt;

&lt;p&gt;In one 2.25-day window I measured for an earlier post, &lt;strong&gt;16 of 16&lt;/strong&gt; merged changes to our CI runners were opened by agent accounts. That is the scale: agents are not a helper, they are most of the typing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What agents do well.&lt;/strong&gt; Mechanical and parallel work. Renames, tests, docs, a dozen similar pull requests at once. Reading a log at 3 a.m. and proposing a fix that is correct about half the time and gets reviewed anyway.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where they fail.&lt;/strong&gt; Three examples, two of them from this week.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A wrong diagnosis.&lt;/em&gt; On 19 November a change broke the signed-in home page in our dev environment. An agent decided the end-to-end tests were flaky and raised their timeouts. That merged at 09:47 UTC and did nothing. The real cause, per the fix's own write-up, was a component that depended on a provider only some pages supplied. It was fixed at 21:37, and production was held back for up to &lt;strong&gt;18.5 hours&lt;/strong&gt; in the meantime. I wrote it up in &lt;a href="https://mouve.it/blog/what-our-ci-fixes-measured" rel="noopener noreferrer"&gt;What our CI fixes measured&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A false claim in print.&lt;/em&gt; My first CI post said release builds had moved to their own runners. The runner pool existed, but the setting that pointed jobs at it was never switched on, and no build or test job used it until 18 November. I found it only because I measured. I corrected it in the follow-up, in public, and added a note to the first post. I published it without checking a log.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Collisions.&lt;/em&gt; On 23 October 2026, 6 or 7 of 35 conflicted pull requests were conflicting on the same three places: a legal version string, one table in a data register and one very large privacy page. Each author, human or agent, was appending to a shared line. Telling agents to be careful would not have fixed that. I changed the structure so each PR writes only its own file and a bot owns the shared line.&lt;/p&gt;

&lt;p&gt;The pattern in all three is that agents are confident and fast, so the checks have to be the authority, not the agent's own report. I now ask for a source for every number and every claim, and I say what could not be verified.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The scanner
&lt;/h2&gt;

&lt;p&gt;The food scanner is the hardest part of the product, and the part most likely to embarrass me. You take a photo and the app should tell you what is on the plate and how much.&lt;/p&gt;

&lt;p&gt;The design that holds today: models describe the plate, the food database prices it, and plain code fuses the evidence. On 31 October 2026 I set the bar. Measure against weighed meals, not against other apps. Competitor accuracy claims are unverifiable marketing, and matching them is not the goal.&lt;/p&gt;

&lt;p&gt;What I can show, with dates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A model comparison on weighed plates, 25 September 2026.&lt;/strong&gt; 200 plates from the public Nutrition5k dataset, which are cafeteria plates photographed from above. This is the identify stage only, not the production scanner, and not our own weighed meals. The best models had a calorie error around &lt;strong&gt;39%&lt;/strong&gt; (mean absolute percentage error), and only about a third of plates landed within 20% of the true calories. One Claude model scored worst in that run, at 75%. I pick models on this kind of table and not on vendor, and I say so even when it is awkward.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three wrong scans on 5 October 2026.&lt;/strong&gt; I scanned a homemade sandwich and a can of energy drink. The sandwich came back with no numbers at all. The can came back as a different product, twice. When I pulled the stored traces, there was a finding nobody had suspected: the scans had run on the fallback model because the primary provider had run out of credit, and that was true of all three production photo scans since 4 October. The fix for that part was restoring the credit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A $0 replay.&lt;/strong&gt; Stored model outputs from real scans are replayed through the current code in CI at no cost, in about a minute. It scores everything downstream of the model: resolving, ranking, fusion. It cannot score a prompt change, and the documentation says so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A second design, not yet proven.&lt;/strong&gt; A plan from 6 October proposes gathering cheap exact evidence first (barcode, text reading, catalogue) and calling a model once, grounded in that evidence. Its status in our docs is still planned. A shutter-less live scanner is an experiment behind a flag.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I would tell another team: build the eval before you build the pipeline. I built them in the other order, and the replay and the weighed set exist because three scans embarrassed me on one evening.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Shipping mobile
&lt;/h2&gt;

&lt;p&gt;The app is Expo and React Native. The first mobile release tag is dated 26 April 2026, and by 20 November 2026 there were &lt;strong&gt;190&lt;/strong&gt; mobile release tags, the latest being 1.95.2. iOS builds run on Xcode Cloud when a tag is pushed, Android goes through a workflow, and JavaScript-only changes can go out over the air.&lt;/p&gt;

&lt;p&gt;The slow part is not building. It is review. A snapshot in our release runbook from 14 October 2026 shows the App Store serving 1.33.0 and Google Play serving 1.30.0, while 1.54.0 was in App Review on one side and a draft on the other. I cut builds much faster than stores will accept them.&lt;/p&gt;

&lt;p&gt;The worst failure was my own. My first submission on 23 August 2026 carried the app version, the subscription group and both subscriptions. It was rejected for an unrelated guideline. Cancelling a submission rejects every non-version item on it, so each resubmission quietly went in holding only the version, and nothing said so. Version 1.32.2 went live on 9 September 2026 with both subscriptions unapproved. The store returns nothing for an unapproved product, so the paywall read "Subscriptions unavailable" for every user until 1.33.0.&lt;/p&gt;

&lt;p&gt;A version can be approved with zero purchasable products. I now check that the submission carries the purchases, with guards in CI. The API cannot add a subscription to a submission, so one step stays in the web console. Store releases are automatic after approval, never manual, because a manual step is one more thing to forget.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Privacy and EU paperwork
&lt;/h2&gt;

&lt;p&gt;Mouve is an Estonian company building an app that handles health data and photos of food, so GDPR is not optional. I keep a rule that a feature ships switched on with its privacy and legal paperwork in the same pull request, not weeks later.&lt;/p&gt;

&lt;p&gt;What that means in the repo: six data protection impact assessments (health data, AI processing, social features, the public API, venue screening, location in the world assistant), a record of processing split per activity, a data breach response plan and a breach register, a Play Store data safety page and an erasure document. Erasure is a tombstone: we mark an account erased and keep the minimum needed. That choice defeats database cascades on purpose, which is worth knowing before you write a migration.&lt;/p&gt;

&lt;p&gt;Legal documents have versions, and a consent row stores which version of which document a user agreed to, so we can show exactly what they saw. The 23 October collision in section 3 came from that: every privacy-affecting PR bumped the same version string. Now a PR adds a change note and a bot does the bump once.&lt;/p&gt;

&lt;p&gt;I am not going to claim this makes us compliant. It makes the work visible and testable, and a lawyer should still read it.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Hosting lean
&lt;/h2&gt;

&lt;p&gt;Two separate posts will cover this in detail, one on the hardware and one on running across clouds. Both are coming soon. The short version, from my X thread on 20 November 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Production is &lt;strong&gt;6 Hetzner VMs in Helsinki&lt;/strong&gt;, 18 vCPU and 45 GB, for about &lt;strong&gt;EUR 74&lt;/strong&gt; a month.&lt;/li&gt;
&lt;li&gt;Our office cluster is 7 machines with 160 threads, 369 GB of RAM and about 10 TB of disk. Electricity is in the office rent.&lt;/li&gt;
&lt;li&gt;All running costs come to about &lt;strong&gt;EUR 85&lt;/strong&gt; a month. The same footprint priced at list on AWS is about EUR 2,600 a month, and about EUR 2,450 on Google Cloud. Hardware purchases are not counted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 30-day average use is 27 cores and 169 GB, with an hourly 95th percentile of 105 cores. The cheap part is real. It was not free: our incident records for September and October 2026 cover a worker node going down, a memory stall, a leader election storm in the office cluster and an expired wildcard certificate. Lean hosting means you are the on-call.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. What I would do differently
&lt;/h2&gt;

&lt;p&gt;These are opinions, each tied to something above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Settle the product sentence in week one.&lt;/strong&gt; I carried a "social fitness network" framing for most of a year and then parked a feature when I dropped it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the eval before the pipeline.&lt;/strong&gt; See the scanner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify the store state, not the version.&lt;/strong&gt; An approved build is not a working product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a time log.&lt;/strong&gt; I know how many pull requests agents opened and have no clock for my own hours. My CI follow-up says that is the first thing to fix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the check the authority from day one.&lt;/strong&gt; Both of this week's mistakes would have been caught by asking "which log shows this".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not count commits.&lt;/strong&gt; Bots inflate them, and agents multiply them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I cannot show yet: the production scanner's accuracy on our own weighed meals. I do not have a clean number for that, and I would rather say so.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>webdev</category>
      <category>startup</category>
    </item>
    <item>
      <title>A year of running production on Hetzner and everything else in my office</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:10:00 +0000</pubDate>
      <link>https://dev.to/mouve/a-year-of-running-production-on-hetzner-and-everything-else-in-my-office-59ao</link>
      <guid>https://dev.to/mouve/a-year-of-running-production-on-hetzner-and-everything-else-in-my-office-59ao</guid>
      <description>&lt;p&gt;Mouve is a fitness app that I build with a fleet of AI agents. Production runs on six rented VMs in Helsinki. Everything else runs on seven machines in my office: CI, the agents, the image registry, the dev environment, the GitOps controller and the monitoring. Two Kubernetes clusters, one network mesh, one ArgoCD.&lt;/p&gt;

&lt;p&gt;The whole thing costs about &lt;strong&gt;EUR 85 a month&lt;/strong&gt; to run (running costs only, no hardware purchases; electricity is part of the office rent). This post is not about that number. I covered the hardware and the cost in other posts. This one is about what broke, because joining a rented cluster and a cluster in your own office into one system is mostly a list of ways for the two halves to fail each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it got here
&lt;/h2&gt;

&lt;p&gt;I moved production to Hetzner in December 2025. It started small: the food service on one VPS, deployed over SSH with docker compose. By February the whole app ran on Coolify on that VPS behind a Cloudflare Tunnel, and the web app had left Vercel. In March I moved to Kubernetes, and at the end of April I split the setup into two clusters.&lt;/p&gt;

&lt;h2&gt;
  
  
  What lives where, and why
&lt;/h2&gt;

&lt;p&gt;The rule I set on 3 August 2026: cloud costs money and survives outages, local hardware is free and does not. So production and the infrastructure that must outlive an office power cut go to Hetzner. Agents, CI, dev and everything non-critical go to the office.&lt;/p&gt;

&lt;p&gt;That inverts the usual instinct. The important work goes to the cloud, and not because the cloud is stronger. It is weaker. Production is 3 control planes (2 dedicated vCPU, 8 GB each) and 3 workers (4 shared vCPU, 8 GB each), 18 vCPU and 48 GB of RAM on paper. The office has 160 threads and 369 GB of RAM across 7 machines. Over 30 days the office averaged &lt;strong&gt;27 cores and 169 GB&lt;/strong&gt; in use, with an hourly p95 of &lt;strong&gt;105 cores&lt;/strong&gt;. Local hardware has the compute. The cloud has the uptime.&lt;/p&gt;

&lt;p&gt;It did not start as two clusters. In March it was one 7-node k3s cluster: three Hetzner VPSes and four homelab machines, joined over a mesh. I split it into two clusters between 28 and 30 April 2026: Hetzner control planes provisioned with OpenTofu, an office cluster bootstrapped, multi-cluster GitOps, a Cilium ClusterMesh.&lt;/p&gt;

&lt;h2&gt;
  
  
  The network that joins them
&lt;/h2&gt;

&lt;p&gt;The mesh is Headscale, a self-hosted Tailscale coordination server. My first version ran it as a pod in the office cluster, on 18 March. On 1 April I moved it to a systemd service on a Hetzner node, because the pods needed the mesh to start and the mesh was a pod.&lt;/p&gt;

&lt;p&gt;Two more things about it. The coordination hostname has to stay DNS-only in Cloudflare: Tailscale's control protocol needs an upgrade header that Cloudflare's proxy strips, so registration fails behind the proxy. And in September I found the Headscale database had no backup and lived on one worker.&lt;/p&gt;

&lt;p&gt;Then the layers pile up. Pod traffic is a Cilium VXLAN overlay, which rides the Tailscale WireGuard tunnel, which rides each machine's real uplink. Each layer takes bytes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MTU.&lt;/strong&gt; Tailscale's interface is 1280. VXLAN costs 50 bytes. The theoretical pod MTU is 1230, and the measured floor was &lt;strong&gt;1228&lt;/strong&gt;. Get it wrong and small responses work while anything above a payload threshold hangs until timeout. That is a miserable bug because every health check passes. Both clusters now set 1228 explicitly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The peer pin that rotted (7 June).&lt;/strong&gt; Every internal app hosted on Hetzner returned 504, while apps hosted in the office were fine. That asymmetry was the clue. The Hetzner side of the ClusterMesh had pinned one office node's tailnet IP. Office nodes are immutable, and a reprovisioned node gets a new tailnet address, so the pin went stale. Requests reached the pod. The replies could not get home, which is why it was a 504 and not a 502. The fix was to give each side a list of every peer address, so any single node can be reprovisioned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tunnel in the tunnel (October).&lt;/strong&gt; From 1 October the office etcd lost its leader about &lt;strong&gt;39 times an hour&lt;/strong&gt;. API server p99 went from 46 ms to 2 to 7 seconds, and CI runner listeners crash-looped. The cause: &lt;code&gt;tailscaled&lt;/code&gt; was routing its own WireGuard packets into the Cilium overlay, which itself rides the tailnet. The packets looped and flooded the interface that the etcd peer link uses. In September the same loop had pushed two Hetzner control planes to 93% CPU. The fix is a small policy-routing guard on every node of both clusters. My own docs call it a bandage: it stops the loop, but the design still stacks an overlay on an overlay.&lt;/p&gt;

&lt;h2&gt;
  
  
  One GitOps control plane for two clusters
&lt;/h2&gt;

&lt;p&gt;ArgoCD runs in the office and manages both clusters. That is convenient and it has a cost I will come back to.&lt;/p&gt;

&lt;p&gt;My drift story is a lesson in controls that need a human to notice. I created the app-of-apps on 29 August as a detector only: it declared 16 Applications that had never been applied and reported them OutOfSync. Nobody acted on the signal. By 26 September it listed 12 again, and two had just been found missing and hand-applied. I finished the triage that day and turned on sync. The audit found 106 Application manifests in git and 100 live.&lt;/p&gt;

&lt;p&gt;The harder class is a field added by hand. On 8 September someone pinned a production rollout to one node with &lt;code&gt;kubectl patch&lt;/code&gt;. It survived two weeks of syncs, because a sync never removes a field it does not own, and the Application still read Synced while the cluster ran something git did not say. I now run an out-of-band edit detector, and the rule is that you change git. Two things on production are still applied by hand, and I know which: the Cilium layer and the Typesense StatefulSet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Secrets and certificates
&lt;/h2&gt;

&lt;p&gt;OpenBao, our secrets manager, runs in the production cluster, because secrets must survive an office outage. The office reads it through the ClusterMesh. It auto-unseals with a cloud KMS, which matters for restores: a raft snapshot carries its seal type, so a restore target with the wrong seal type fails.&lt;/p&gt;

&lt;p&gt;On &lt;strong&gt;13 October at 14:38 UTC&lt;/strong&gt; the wildcard certificate served by the office expired, and every internal site there showed a certificate error. The renewed certificate existed in the cloud cluster. The office copy had been written by hand once, and the renewal pipeline mentioned in the manifests was never built. Worse, the office secrets operator reached OpenBao through a hostname that the office itself served with the expired certificate, so it could not fetch the fix. Two faults, either survivable alone.&lt;/p&gt;

&lt;p&gt;The alerts fired for days. Nobody acted, because the alert text said to renew the cert in the cloud cluster, which was already done. The missing piece was automation, not an alarm. The class fix: the cloud cluster pushes every renewal to OpenBao, the office reads through a ClusterMesh service with no certificate in the path, and a new alert fires when the office copy expires earlier than the cloud one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backups, the uncomfortable part
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Production Postgres had &lt;strong&gt;no backups from 1 May to 28 August 2026&lt;/strong&gt;. The earlier pipeline was suspended and never replaced. Since 28 August there is an hourly dump, 30 days of retention, and a restore drill that took under 3 minutes. There is still no point-in-time recovery, so worst case is 59 minutes of lost writes.&lt;/li&gt;
&lt;li&gt;Until 28 August the office cluster ran &lt;strong&gt;37 Longhorn volumes with zero backups&lt;/strong&gt;. That night 32 of them faulted at once. I recovered them by salvage, which was luck and not design. Between 12 and 26 September every volume had a single replica on one consumer SSD, and backups were the only copy.&lt;/li&gt;
&lt;li&gt;On 29 September I moved every bucket except production media off Cloudflare R2, to an S3 gateway in the office. R2 had cost USD 11.66 that September, mostly from Longhorn polling. The price of the move is that my backups now sit on two disks in one host. &lt;strong&gt;There is no off-site copy&lt;/strong&gt;, and the docs say so.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Observability across both
&lt;/h2&gt;

&lt;p&gt;One Prometheus runs in the office and scrapes production. Service discovery goes over the tailnet. The scrapes themselves go pod to pod over the ClusterMesh.&lt;/p&gt;

&lt;p&gt;For months that Prometheus saw only node and pod health for production, with no request rate, latency or error rate. The API had carried a ServiceMonitor since 27 April with no Prometheus on its cluster to read it. A second bug hid in plain sight: the production kube-state-metrics series carried a different job name from the office ones, so every default kube-prometheus-stack alert for failed jobs and crash-looping pods selected a label that matched no production series. They could not fire.&lt;/p&gt;

&lt;p&gt;The same shape hit on 1 October: production had no memory alert at any threshold, because the stock rules pin the job name &lt;code&gt;node-exporter&lt;/code&gt; and the Hetzner nodes were scraped under another name. Before 26 September production had no log retention either: Loki was scaled to zero and the collector shipped to nothing. Production logs now go to a Loki in the production cluster, kept 30 days.&lt;/p&gt;

&lt;h2&gt;
  
  
  The deploy chain, and today's incident
&lt;/h2&gt;

&lt;p&gt;A merge to main builds once, deploys to dev, runs end-to-end tests, then promotes the same image to production, smokes it, and reverts itself if the smoke fails. There were three environments until 4 September, when I removed staging. A web change now has its own lane, with a measured merge to production of 27 to 45 minutes.&lt;/p&gt;

&lt;p&gt;Two ways this chain bit me in November.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;17 November: the artifact quota.&lt;/strong&gt; GitHub Actions artifacts reached 2.89 GB against 2 GB included in our plan. The step that records verified image tags is fail-closed on purpose, so every upload failed and production froze with every gate green. I promoted by hand, one app at a time, and cut artifact retention to 7 days.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;18 to 20 November: the swallowed spec path.&lt;/strong&gt; Production web sat on a build from 18 November 03:51 UTC for about 60 hours. Four promotions in that window were each reverted about seven minutes after they went out. The production landing check ran &lt;code&gt;playwright test --project chromium tests/landing.spec.ts&lt;/code&gt;. In Playwright, &lt;code&gt;--project&lt;/code&gt; takes several values, so it read our spec path as a second project name and stopped with "Project(s) not found". No test ran, the gate returned blocked, and the revert job did exactly what I built it to do. The visible symptom was a 404 on a new page.&lt;/p&gt;

&lt;p&gt;The auto-revert worked. The gate had never been exercised, and a broken test looks the same as a failing one. I fixed the instance on 20 November, then the class: every e2e script now uses &lt;code&gt;--project=NAME&lt;/code&gt;, so any argument a caller appends is a test file or a flag. Production serves the new build now (I checked the page that was missing). Neither fix adds an alert for repeated reverts of the same promotion, and that is the gap I would close next.&lt;/p&gt;

&lt;h2&gt;
  
  
  The incidents, as a list
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;What failed&lt;/th&gt;
&lt;th&gt;The class fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;7 Jun&lt;/td&gt;
&lt;td&gt;Cross-cluster 504s after a node reprovision&lt;/td&gt;
&lt;td&gt;Peer addresses are lists, not one pinned node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17-18 Jul&lt;/td&gt;
&lt;td&gt;An office node died overnight (about 14 hours), taking the registry, dev and CI with it&lt;/td&gt;
&lt;td&gt;Stateless apps no longer pinned to a hostname&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;29 Sep&lt;/td&gt;
&lt;td&gt;Hetzner host fault took a worker. Prod 502&lt;/td&gt;
&lt;td&gt;Registry cache with two replicas, DNS answers name no node, memory N+1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 Oct&lt;/td&gt;
&lt;td&gt;Worker stalled on memory during a search reindex, search down 17 to 24 minutes&lt;/td&gt;
&lt;td&gt;Kubelet reserves and eviction thresholds, a MemAvailable alert&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 Oct&lt;/td&gt;
&lt;td&gt;Etcd election storm from the tunnel loop&lt;/td&gt;
&lt;td&gt;Ip-rule guard on every node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13 Oct&lt;/td&gt;
&lt;td&gt;Office wildcard certificate expired&lt;/td&gt;
&lt;td&gt;Push renewals, no certificate in the secrets path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17-20 Nov&lt;/td&gt;
&lt;td&gt;Artifact quota, then the swallowed spec path&lt;/td&gt;
&lt;td&gt;Fewer artifacts, &lt;code&gt;--project=NAME&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 29 September fault is worth a paragraph. Hetzner reported a fault on the host of one of our two workers at 17:34 UTC. I lost one server and four things broke, because four things treated it as the only one. The two workers used 10.8 GiB together, and one survivor has 7.6. The scheduler saw room that was not there and packed the evicted pods onto it. The image cache had one replica on one volume that could not detach until Hetzner repaired the host. The office DNS pinned the vault hostname to that one node. And Headscale lived there. The first one took production to 502. The third one stopped every secret sync in the office. I added a third worker on 23 October, and a rollout setting that swaps pods in place so a deploy never needs a third pod's headroom.&lt;/p&gt;

&lt;h2&gt;
  
  
  The running cost
&lt;/h2&gt;

&lt;p&gt;The cost is small partly because of a luck I did not plan for. The three control planes are Hetzner CCX13 servers at a grandfathered EUR 15.99 each. Hetzner's June 2026 price rise took that model to EUR 42.99, but exempted servers already running. A rescale, a delete and recreate, or a new order loses the old price for good, so three servers go from EUR 47.97 to EUR 128.97 a month. I keep them, and the foot-gun is a &lt;code&gt;tofu apply&lt;/code&gt; that replaces one. The production side is about EUR 74 a month in total.&lt;/p&gt;

&lt;p&gt;For scale, the same footprint priced on public lists in November came out at about EUR 2,600 a month on AWS and EUR 2,450 on Google Cloud, before commitments. That comparison assumes the office hardware is already bought and the office power is free, which is exactly the part a business should not hand-wave.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep the deploy brain out of the thing that dies.&lt;/strong&gt; ArgoCD, Harbor and the secrets store's consumers sit in the office. One office node outage on 25 September took Harbor and every internal site down, and every production deploy with them. I now have a pull-through cache on the cloud side and front doors that name no node, but the control plane is still in the office.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups and restore drills before data.&lt;/strong&gt; I learned this twice, with Postgres and with Longhorn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make every control fail loudly.&lt;/strong&gt; A detector nobody reads, an alert whose text lists a step already done, a gate that has never run: each had the same shape.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never name a node.&lt;/strong&gt; Hostname pins, IP pins and single-replica volumes caused most of the table above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kubelet reserves on day one.&lt;/strong&gt; The nodes had no memory reserve and no eviction threshold until 2 October.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Draw the layers.&lt;/strong&gt; MTU, the peer pin and the tunnel loop are the same bug: a network built from tunnels carrying tunnels.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  When this setup stops making sense
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;When an office outage must not stop a production deploy. Today it can.&lt;/li&gt;
&lt;li&gt;When the off-site backup stops being an accepted risk. A customer, an auditor or a bad week will end that.&lt;/li&gt;
&lt;li&gt;When more than one person has to run it. Two clusters and a mesh in one head is the real single point of failure.&lt;/li&gt;
&lt;li&gt;When the office p95 of 105 cores means I need burst capacity more than I need free capacity. Renting a burst is cheaper than racking one.&lt;/li&gt;
&lt;li&gt;When power or rent changes. I pay no separate electricity bill, and the EUR 85 depends on that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Until then it is a good trade for me: a small production that stays up, and a large workshop that costs nothing extra to run. I have also paid for it in the incidents above, and the table is the honest bill.&lt;/p&gt;

&lt;p&gt;Earlier post on the office side: &lt;a href="https://mouve.it/blog/what-our-ci-would-cost-on-hosted-runners" rel="noopener noreferrer"&gt;Our CI would cost $1,252 a month on GitHub's runners&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>sre</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Seven secondhand machines run most of our infrastructure. Here is what broke.</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:20:00 +0000</pubDate>
      <link>https://dev.to/mouve/seven-secondhand-machines-run-most-of-our-infrastructure-here-is-what-broke-4pkh</link>
      <guid>https://dev.to/mouve/seven-secondhand-machines-run-most-of-our-infrastructure-here-is-what-broke-4pkh</guid>
      <description>&lt;p&gt;Mouve's production runs on six small virtual machines in Helsinki. Everything else runs in our office in Tallinn, on seven secondhand machines: two HP Z440 workstations, a dual-Xeon workstation board with three GPUs, a Dell PowerEdge T40 tower, a Dell Latitude laptop with the lid closed, and two small desktop PCs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rhfxi6woibxy6ig8d45.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rhfxi6woibxy6ig8d45.jpg" alt="A steel shelving unit in the corner of the office. Two HP Z440 workstations stand on the bottom shelf, a Dell PowerEdge T40 tower and an APC UPS on the shelf above, two rackmount cases higher up, and a small mesh cabinet with mini PCs beside the shelf." width="800" height="600"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The office end of Mouve: the two HP Z440s on the bottom shelf, the Dell T40 and a UPS above them, the rackmount cases higher up, and the small PCs in the mesh cabinet on the right.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Together they are &lt;strong&gt;160 threads, 369 GB of RAM and about 10 TB of disk&lt;/strong&gt;. They run our CI, the dev environment, the agents that write much of our code, the monitoring, the backups and the GPU work. This post is about the hardware: why I chose it, how I reach it when it hangs, and the things that broke. It follows two posts about our costs, &lt;a href="https://dev.to/mouve/our-ci-would-cost-1252-a-month-on-githubs-runners-here-is-what-it-costs-us-54jh"&gt;what our CI would cost on hosted runners&lt;/a&gt; and &lt;a href="https://mouve.it/blog/what-our-ci-fixes-measured" rel="noopener noreferrer"&gt;what our CI fixes measured&lt;/a&gt;, which say the hardware is cheap to run. That is true, and it leaves out how much work goes into making it dependable. I leave out purchase prices here; the comparison I care about is running cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why secondhand workstations
&lt;/h2&gt;

&lt;p&gt;The lease includes electricity. I confirmed that on 2026-09-04, and it changes the usual homelab advice. The standard argument against a dual-socket Xeon is that it burns its purchase price in power. Here a 150 W box costs us the same to run as a 15 W one.&lt;/p&gt;

&lt;p&gt;So I judge hardware on capacity, heat and noise. The filter for the workstations was a platform with registered ECC memory that is easy to find used (LGA2011-3 sockets, the C610 family of chipsets). A rack server with small fast fans is out because people sit in the office.&lt;/p&gt;

&lt;p&gt;That is a real advantage, and it has limits. Over the last 30 days the whole cluster averaged &lt;strong&gt;27 cores and 169 GB&lt;/strong&gt;, and the hourly 95th percentile was &lt;strong&gt;105 cores&lt;/strong&gt;. The machines are sized for the peaks, which come from CI and agents. On the evening of 2026-11-20, &lt;code&gt;kubectl top nodes&lt;/code&gt; showed about &lt;strong&gt;13.6 cores and 127 GiB&lt;/strong&gt; in use across all seven. Idle capacity costs us nothing, and I won't pretend it is a feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each box does
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Machine&lt;/th&gt;
&lt;th&gt;Threads / RAM&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Two small PCs and a Dell T40&lt;/td&gt;
&lt;td&gt;4 each, 10 to 16 GB&lt;/td&gt;
&lt;td&gt;The three control-plane nodes, which hold etcd.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HP Z440 (first)&lt;/td&gt;
&lt;td&gt;44 / 128 GB&lt;/td&gt;
&lt;td&gt;CI runners, image builds, the registry mirror, the UPS reader. One 2 TB data-centre NVMe.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HP Z440 (second)&lt;/td&gt;
&lt;td&gt;44 / 128 GB&lt;/td&gt;
&lt;td&gt;Dev environment, more CI, an RTX 3060 for model work. Still runs Ubuntu.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dual-Xeon ASUS workstation board&lt;/td&gt;
&lt;td&gt;48 / 64 GB&lt;/td&gt;
&lt;td&gt;Three RTX A2000 GPUs, the S3 store for backups, the agent workers. Still runs Ubuntu.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dell Latitude 5501&lt;/td&gt;
&lt;td&gt;12 / 16 GB&lt;/td&gt;
&lt;td&gt;Overflow for light CI jobs. Joined on 2026-10-24.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The three control planes are deliberately boring. I learned why on 2026-05-20.&lt;/p&gt;

&lt;h2&gt;
  
  
  The consumer SSD that taught us about etcd
&lt;/h2&gt;

&lt;p&gt;Before the current cluster, one control-plane node had a consumer 2.5-inch SATA SSD. SMART said it was healthy. It still made the node flip between Ready and NotReady about &lt;strong&gt;16 times in 100 minutes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The cause was fsync. etcd writes its log and waits for the disk to confirm it. A consumer drive without power-loss protection confirms slowly, and ours took &lt;strong&gt;200 to 500 ms&lt;/strong&gt; per write when it should take under 10. containerd then blocked on the same disk, the kubelet's calls to it timed out, and the node was marked down. From outside it looked like a network flap.&lt;/p&gt;

&lt;p&gt;The rule I took from it is simple: etcd and anything that syncs goes on a drive with power-loss protection. The control planes now boot from Intel data-centre SATA SSDs. One also has a consumer NVMe that arrived with the box. I gave it one job, staged etcd snapshots, because a torn snapshot can be detected and retaken and a torn etcd log cannot.&lt;/p&gt;

&lt;h2&gt;
  
  
  The consumer SSD that did not need to be fast, and was not
&lt;/h2&gt;

&lt;p&gt;The same lesson came back in a different place. On 2026-08-30 I measured one Z440 that felt slow in ways that looked like four different problems. CI containers stuck for minutes unpacking, the kubelet's health check stalled, &lt;code&gt;kubectl exec&lt;/code&gt; hung, and storage replicas faulted.&lt;/p&gt;

&lt;p&gt;All of it traced to one cheap SATA SSD with no DRAM cache that held the OS partition, container layers and every emptyDir. It was &lt;strong&gt;92 to 99% busy at 13 MB/s of writes&lt;/strong&gt; while the 2 TB NVMe next to it sat at 13%. I moved &lt;code&gt;/var&lt;/code&gt; to the NVMe in September, and the 95th-percentile write latency on that path went from &lt;strong&gt;193 ms to 17 ms&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Then on 2026-11-16 I gave the other Z440 a 250 GB consumer SATA SSD (a used drive with 30,548 power-on hours) as its CI cache. On a busy night the runners wrote the whole drive in about 20 to 25 minutes and deleted about as much. Write throughput fell from over 200 MB/s to about 55 MB/s, with latency up from 4 ms to 15 to 25 ms.&lt;/p&gt;

&lt;p&gt;The weekly TRIM had run, and latency was best right after it, then tripled within the hour. My guess is that without regular TRIM the drive had almost no clean blocks to work with. It fits the data, but I haven't proved it. I now trim every 15 minutes with a small CronJob, and I took that node out of the CI pools until it has a share it can drain.&lt;/p&gt;

&lt;h2&gt;
  
  
  The inode table that filled while the disk was 80% free
&lt;/h2&gt;

&lt;p&gt;Bytes were not the only thing that ran out on those CI cache disks. Inodes did too, and they did it first.&lt;/p&gt;

&lt;p&gt;On 2026-10-23 every job on the self-hosted pools started failing with &lt;code&gt;No space left on device&lt;/code&gt;, while &lt;code&gt;df -h&lt;/code&gt; showed 78 to 87% used. &lt;code&gt;df -i&lt;/code&gt; showed &lt;strong&gt;99%&lt;/strong&gt;. Each CI working tree is only about 300 MB, but it is &lt;strong&gt;20,000 to 30,000 inodes&lt;/strong&gt;. Dozens of agent pull requests produced 25 to 95 finished runner pods a minute, and the reclaimer that deletes old trees managed 12 to 20 per minute. The inode count went from 0.5% to 99.9% used in two hours.&lt;/p&gt;

&lt;p&gt;Nothing paged, because our alerts read bytes only and the stock inode alert waits two hours.&lt;/p&gt;

&lt;p&gt;On 2026-11-16 the same thing happened faster on the smaller SSD. It has about 15 million inodes against 39 million on the NVMe, and it went from 73% free to 80,000 inodes free in an hour. I made the reclaimer speed up as the disk fills, shortened the alert windows, and recorded the fix for the real cause: format the disk with more inodes. Measured on that night, our cache used 13 to 14 KB per inode, so ext4's default of one inode per 16 KiB runs out first.&lt;/p&gt;

&lt;p&gt;The class of failure is that a small cache outruns settings that were tuned for a big one. The rule I wrote down: the inflow a node is given must stay below the rate its cache disk can drain.&lt;/p&gt;

&lt;h2&gt;
  
  
  A machine check, and nobody went to the office
&lt;/h2&gt;

&lt;p&gt;At 19:24 UTC on 2026-10-02 the second Z440 stopped. Not a reboot: a freeze. The switch port stayed up at gigabit but received nothing, so neither the host nor its management engine was sending. The cluster marked it NotReady, and it stayed down until 23:00.&lt;/p&gt;

&lt;p&gt;The cause, read off the BIOS screen after the recovery boot, was a &lt;strong&gt;fatal machine check: an uncorrectable memory read error&lt;/strong&gt; on the first CPU's memory controller, DIMM 1 or 2. The error came two minutes into a burst of heavy CPU work that took the processor package from 61 to 80 °C, on a board with no memory fan fitted. The BIOS prints "Memory configuration requires a Memory fan and this fan is not detected" on every boot, and halts until someone presses Enter.&lt;/p&gt;

&lt;p&gt;On 2026-10-25 a full 32 GB memtester pass came back clean, with no corrected or uncorrected errors on any of the four DIMMs after 4 hours 40 minutes at about 40 °C. I put the original error down to heat, because the case fans were not running at the time, and I did not replace the DIMM. I haven't proved that, and I alert on memory errors now.&lt;/p&gt;

&lt;p&gt;The more useful lesson was the 3.5 hours. Postgres had a healthy second replica on the other Z440, but every dev workload carried a hostname pin from an earlier move, so nothing could start anywhere else. I replaced the pins with a role label and added a CI guard that fails on any single-node pin. A failover drill the next morning moved dev's database to the other node with about 45 seconds of downtime. The API image still took 9 minutes 11 seconds to pull there, because that node had never run that tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reaching a frozen machine without a keyboard
&lt;/h2&gt;

&lt;p&gt;Both Z440s have Intel AMT, the management engine that sits below the operating system. It gives us remote power control with the machine fully off, and a serial console over the network. I use plain HTTP calls to it, no vendor tools. The first Z440's AMT was dark when we last checked on 2026-10-03, and we have not verified it since.&lt;/p&gt;

&lt;p&gt;The traps, in the order I hit them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AMT takes its own DHCP lease with the same MAC address as the host, so scanning the host's address for the AMT port shows it closed while it is alive somewhere else.&lt;/li&gt;
&lt;li&gt;The management engine's network stack only starts after a full cold power-off. Warm reboots leave a freshly activated AMT dark. Talos reboots by kexec by default, which skips the firmware entirely, so you must ask for a power cycle when firmware matters.&lt;/li&gt;
&lt;li&gt;On 2026-10-02 the AMT was dark together with the frozen host. Bouncing the router port brought it back within about 20 seconds. That works only for the machine that has a port of its own, which I now know.&lt;/li&gt;
&lt;li&gt;I had written that BIOS text never travels over the serial console. It does, if you set a one-shot boot option before the reset. That let us answer the machine-check and fan screens remotely.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither Z440 has a memory fan fitted, so every cold boot still needs someone, or an agent on the serial line, to press Enter. I have a part number for a shroud with a fan. I have not fitted one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The network loop that broke etcd
&lt;/h2&gt;

&lt;p&gt;For about six weeks the office control plane had two etcd members and no fault tolerance. One of the three machines, a small PC, had died on 2026-09-01 without a cause I could find, and no POST output reached us remotely. On 2026-10-12 I moved its boot SSD into the Dell T40, and the node came back with its identity, rejoined as the same etcd member and caught up from a snapshot.&lt;/p&gt;

&lt;p&gt;Before that, on 2026-10-01, the control plane started losing its leader about &lt;strong&gt;39 times an hour&lt;/strong&gt;. The API server's 99th-percentile latency went from &lt;strong&gt;0.046 s to 2 to 7 s&lt;/strong&gt;. Watches got HTTP 429s. The controller manager restarted 63 times a day per control plane, and CI runner controllers crash-looped, so CI queued.&lt;/p&gt;

&lt;p&gt;I suspected the disks first, because of the earlier incident. They were fine: Intel data-centre SSDs, 0.18 ms average write, no slow step in any trace.&lt;/p&gt;

&lt;p&gt;The cause was the network. Our nodes talk over a mesh VPN, and our CNI, Cilium, carries its VXLAN overlay on top of that mesh. The VPN daemon advertises every local address as a possible endpoint, including the CNI's own. It sent some of its own encrypted packets into the overlay, which wrapped them and sent them back into the VPN. The loop overflowed the tunnel interface's queue and dropped &lt;strong&gt;1,000 to 13,000 packets a second&lt;/strong&gt; in bursts. The etcd peer link uses the same interface. With two voters the leader needs the other to answer within one second, and each burst missed that.&lt;/p&gt;

&lt;p&gt;The fix was four routing rules on every node that make the VPN daemon's own packets unreachable for the pod and service ranges. A DaemonSet asserts them every 30 seconds, so a reboot cannot lose them. After they went in at 09:14 UTC on 2026-10-03: zero elections, zero drops. I never found what started it on 2026-10-01. The rules make the trigger irrelevant.&lt;/p&gt;

&lt;p&gt;The existing alert described the symptom, slow etcd requests, and said nothing about why. I added alerts for tunnel packet drops, watch-cache re-initialisation and control-plane restarts, each backtested against the history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving to Talos
&lt;/h2&gt;

&lt;p&gt;I started Kubernetes on k3s in March 2026. At the end of May I planned the move to Talos: reinstall the same physical hardware, one node at a time.&lt;/p&gt;

&lt;p&gt;Talos has no shell and everything goes through an API. The price is that tasks you would do over ssh become small pods, such as the guard pod we use to check routing rules. Today five of the seven nodes run Talos. The two GPU machines still run Ubuntu. The one with the RTX 3060 stays on Ubuntu because iterating on NVIDIA drivers is faster on a stock OS than through Talos system extensions, where every driver bump means rebuilding the image and reflashing the node.&lt;/p&gt;

&lt;p&gt;The best thing it bought us was the 2026-10-12 hardware swap above: the node's identity lived on its boot disk, so a different machine came up as the same etcd member.&lt;/p&gt;

&lt;h2&gt;
  
  
  Storage choices
&lt;/h2&gt;

&lt;p&gt;I ended up with three kinds of storage, and the rule is what the data needs when it is lost.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Longhorn&lt;/strong&gt; for volumes that must survive a node, such as dev Postgres, Prometheus and the identity provider's database. It is on enterprise or at least decent disks, with two replicas where the disks allow. I evicted it from the busiest CI node on 2026-09-12 and left that node's 2 TB NVMe to CI and the OS. Longhorn runs with disks only on nodes we label for it, so a new node holds no replicas by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local disks&lt;/strong&gt; for caches. A CI cache can be lost, so it gets whatever is fastest and is deleted constantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An S3-compatible store on two mirrored spinning disks&lt;/strong&gt; for backups and archives. It replaced Cloudflare R2 for everything except production photos on 2026-09-29, after R2 cost &lt;strong&gt;$11.66 in September&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last choice has a cost I accepted knowingly. The backups and the things they protect now share a building. A fire, a theft, or a bad write that the mirror copies would take both. The cheap fix is a copy on another site, and I have not done it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would buy differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise drives for anything that syncs or churns.&lt;/strong&gt; Every disk problem above was a consumer drive being asked to do a data-centre job. A data-centre SATA SSD is the cheapest fix we have found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three control planes from the first week.&lt;/strong&gt; I ran with two for six weeks and had no margin when the network failed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A memory fan on both Z440s.&lt;/strong&gt; It removes the one remaining manual step on every cold boot, and it may remove the heat I blame for the machine check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Corrected-error counters from day one.&lt;/strong&gt; The kernel saw a storm of corrected errors on the memory controller before the fatal one, and nothing in my monitoring did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPS monitoring on every UPS.&lt;/strong&gt; On 2026-10-29 one went into continuous-tone overload carrying two workstations and nothing alerted, because the monitor for the other had lost its connection. The dual-Xeon box has no UPS today.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inodes sized at format time.&lt;/strong&gt; Cheap to do then, a full reformat later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is glamorous. All of Mouve's infrastructure costs about EUR 85 a month to run, of which about EUR 74 is the Hetzner VMs for production, and the office electricity is in the rent. What the office cluster costs me is attention: the nights when a freeze, a full table or a loop teaches me something a hosted service would have hidden.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>kubernetes</category>
      <category>homelab</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>What our CI fixes measured: shorter queues, one claim of ours that was wrong, and a 16-hour block</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:47:39 +0000</pubDate>
      <link>https://dev.to/mouve/what-our-ci-fixes-measured-shorter-queues-one-claim-of-ours-that-was-wrong-and-a-16-hour-block-3nei</link>
      <guid>https://dev.to/mouve/what-our-ci-fixes-measured-shorter-queues-one-claim-of-ours-that-was-wrong-and-a-16-hour-block-3nei</guid>
      <description>&lt;p&gt;A reader on dev.to answered our CI cost post with one comment: runner comparisons are most useful when they include queue time, cache hit rate, maintenance labour and failure recovery, not just billed minutes.&lt;/p&gt;

&lt;p&gt;We replied that labour and cache hit rate were the two we hadn't put numbers on, and that we would share the results either way. This is that post. We measured the same four things, plus merge to production and the billed-minutes equivalent, on the 30 days of the first post and on 18 to 20 November.&lt;/p&gt;

&lt;p&gt;The short version, with the numbers in bold:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Queue time.&lt;/strong&gt; Node jobs (lint, type-check, tests) waited &lt;strong&gt;11.3 minutes&lt;/strong&gt; at the 90th percentile before and &lt;strong&gt;1.7 minutes&lt;/strong&gt; after, at the same load. Image builds and end-to-end tests got worse, &lt;strong&gt;3.0 to 16.9 minutes&lt;/strong&gt;, because of a mistake in our first post (section 2).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge to production.&lt;/strong&gt; The median did not move: &lt;strong&gt;49.8 to 51.1 minutes&lt;/strong&gt; for user-facing merges. In quiet hours after the last change, 15 merges took &lt;strong&gt;9 to 18 minutes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache hit rate.&lt;/strong&gt; Up a few points, &lt;strong&gt;70.5% to 77.6%&lt;/strong&gt; for Docker build steps, within the noise of the sample.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintenance labour.&lt;/strong&gt; Runner and CI changes went from 1.3 a day to &lt;strong&gt;7.1 a day&lt;/strong&gt;, all written by agents. We have no clock for our own hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failure recovery.&lt;/strong&gt; Not better. The biggest loss was a &lt;strong&gt;16-hour&lt;/strong&gt; block caused by a web bug, not by a runner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosted-price equivalent.&lt;/strong&gt; About &lt;strong&gt;$1,255&lt;/strong&gt; a month against &lt;strong&gt;$1,456&lt;/strong&gt;. The intervals overlap, so we call it unchanged.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The window is short, and we say below where that limits what you can conclude.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What we compared, and why it is thin
&lt;/h2&gt;

&lt;p&gt;We ran the same measurement script over three windows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Before:&lt;/strong&gt; the first post's 30 days, 17 October 23:00 to 16 November 23:00 UTC. 153,427 jobs and 4,013 runner hours on a sample-based estimate. The first post quoted the low ends of those intervals, 135,000 jobs and 3,543 hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After:&lt;/strong&gt; 18 November 00:00 to 20 November 06:00 UTC, Wednesday to Friday morning. 6,060 workflow runs, with the jobs of 1,116 read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settled:&lt;/strong&gt; from 18 November 22:00 UTC, once the last two changes were in. 1.33 days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Three things limit it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is not two full working days with every change in.&lt;/strong&gt; Two changes landed on the evening of the 18th: release builds really moved to their own runners at 20:20 UTC, and images started building when they merge at 21:20. Thursday 19 November is the only working day with everything in place, and it was the quietest: about 17 merges a day in the settled window against 51 before, 37 runner hours a day against 134, and for most of it Deploy Dev was blocked (section 7).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Load differs.&lt;/strong&gt; Where it matched, we say so. Where it didn't, we say that instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The samples are small.&lt;/strong&gt; The after window has 116 merges, 44 image builds in the logs and 3 red main-branch episodes. Where that is too few for a verdict, we give the number and stop.&lt;/p&gt;

&lt;p&gt;What changed in between, in order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;17 November:&lt;/strong&gt; end-to-end tests limited to what a change can reach, a hotfix lane, and a new runner pool for release builds. That pool did nothing yet. See section 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;18 November, 00:24 to 03:16 UTC:&lt;/strong&gt; more runners for Node jobs. Warm runners went from 4 to 8, the runner limit from 26 to 38, and one machine rejoined the pool after its disk fix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;18 November, 04:05 and 06:10 UTC:&lt;/strong&gt; blog posts and the web app deploy without waiting in the shared deploy queue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;18 November, 07:03 UTC:&lt;/strong&gt; build cache mounts for the package store and the Next build cache.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;18 November, 20:20 UTC:&lt;/strong&gt; release builds and end-to-end tests on their own runners, for real this time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;18 November, 21:20 UTC:&lt;/strong&gt; images built when their code merges, not inside the serial deploy lane.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. We told you something wrong
&lt;/h2&gt;

&lt;p&gt;The first post said that overnight into 17 November the image builds and end-to-end tests on the release path had moved to their own runners, so a busy pull-request evening could no longer hold a release.&lt;sup id="fnref1"&gt;1&lt;/sup&gt; That was false when we published it.&lt;/p&gt;

&lt;p&gt;The runner pool existed. A setting that points the jobs at it was never switched on, so those jobs kept queueing behind pull-request CI. Only the deploy steps (migrations, tag bumps, smoke tests) had their own runners, and had since October. In our dev.to reply we also said that giving deploy jobs their own runners had fixed the queue. It hadn't yet.&lt;/p&gt;

&lt;p&gt;We found it while measuring: no build or end-to-end job ran on the new pool in either window until 18 November. A change at 20:20 UTC that evening made the new pool the default. We are adding a correction to the first post as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Queue time
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rsm46vw9895rin1z6eg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rsm46vw9895rin1z6eg.png" alt="Bar chart, measured: how long a job waited for a runner, 90th percentile, before and after. All jobs 10.0 minutes before, 2.1 after. Node jobs 11.3 before, 1.7 after, at the same load of about 165 jobs an hour. Image builds and end-to-end tests 3.0 before, 16.9 after. Deploy path 32 seconds before, 18 after." width="799" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Measured, from job timestamps on a sample of runs, scaled to all of them. Wait is the time from a job being created to a runner starting it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Node jobs improved, and the load was the same.&lt;/strong&gt; The 90th percentile wait fell from &lt;strong&gt;11.3 to 1.7 minutes&lt;/strong&gt;, with 164 jobs an hour before and 166 after. The 99th percentile fell from 38 to 4 minutes. The median barely moved, 16 to 13 seconds, so most jobs were never slow. The long tail was.&lt;/p&gt;

&lt;p&gt;The busiest day agrees. On 18 November the Node-job pool took about 316 jobs an hour from 03:30 to 22:00 UTC, nearly twice the before average, and its 90th percentile was 2.2 minutes.&lt;/p&gt;

&lt;p&gt;What this doesn't tell us is which change did it. We added runners in three steps within three hours, so we can't separate them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Image builds and end-to-end tests got worse.&lt;/strong&gt; Their 90th percentile wait rose from &lt;strong&gt;3.0 to 16.9 minutes&lt;/strong&gt;, and to 22.9 minutes on the busy 18th, from 03:30 to 22:00 UTC. That is section 2 in numbers: these jobs were still waiting behind everything else. After the fix their old pool is nearly empty, and the new one picks up at a 90th percentile of 1.6 minutes in the settled window. That is not fast either. The new pool has four runners, builds and test shards compete for them, and the alert that watches its pickup fired nine times in the after window.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The deploy path is steady:&lt;/strong&gt; 32 to 18 seconds. Jobs of the deploy-to-dev workflow as a whole waited longer at the 90th percentile, 28 seconds to 2.4 minutes, because their builds and tests were the jobs in the paragraph above.&lt;/p&gt;

&lt;p&gt;Our target is a 90th percentile of 15 seconds in working hours. We met it only in the settled window: &lt;strong&gt;13 seconds&lt;/strong&gt; across all jobs, at 73 jobs an hour, well under half the before load. That shows the floor. It doesn't show what a busy day does now.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Merge to production
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvm3zpo2mfjm4zx142qw6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvm3zpo2mfjm4zx142qw6.png" alt="Bar chart, measured: minutes from merge to live in production. Median, all merges 40.1 before and 41.6 after. Median, user-facing merges 49.8 before and 51.1 after. 90th percentile, all merges 421 minutes, 7.0 hours, before and 192, 3.2 hours, after. 90th percentile, user-facing merges 482, 8.0 hours, before and 179, 3.0 hours, after." width="799" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Measured, every merge counted with no sampling: 1,520 before, 116 after. User-facing means a merge that changes the app or its packages.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The median did not move: &lt;strong&gt;40.1 to 41.6 minutes&lt;/strong&gt; for all merges and &lt;strong&gt;49.8 to 51.1&lt;/strong&gt; for user-facing ones. The 90th percentile fell, from 8.0 to 3.0 hours for user-facing merges. Part of that is a better tail and part is that 2.25 days contain fewer bad days than 30.&lt;/p&gt;

&lt;p&gt;Why no change in the median? Until the evening of the 18th, nothing we had changed touched the serial lane where our API and the other services build their images. The web app and the blog had left it that morning. The 67 merges before 20:11 UTC had a median of 49 minutes. Then 25 merges landed in an hour and three quarters, and they waited 9 to 67 minutes, median 44.&lt;/p&gt;

&lt;p&gt;After the build-on-merge change and once the queue had drained, 15 merges between 22:12 UTC on the 18th and the morning of the 20th, outside the incident below, went live in &lt;strong&gt;9 to 18 minutes&lt;/strong&gt;, median 10.5. That is the result we were working toward. It is 15 merges at night and at low load, 12 of them docs, CI or infrastructure. We don't know yet what a burst of 25 does now.&lt;/p&gt;

&lt;p&gt;Production sat more than three hours behind main, the point where our alert fires, in 16 periods in the before window and in 2 in the after window: 3.9 hours on the morning of the 18th and the 18.5 hours in section 7.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Cache hit rate
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg60nxmsydb5uznryndir.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg60nxmsydb5uznryndir.png" alt="Bar chart, measured on a sample of job logs: cache hit rate, before and after. Docker build steps 70.5 percent before, interval 67 to 74, and 77.6 after, interval 70 to 85. Turborepo tasks 73.0 before, interval 68 to 78, and 78.0 after, interval 74 to 82. pnpm packages 99.5 before and 100 after." width="800" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Measured, read from the logs of a sample of jobs. The whiskers are 90% intervals; where they overlap, the difference is within noise.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Docker build steps served from cache went from &lt;strong&gt;70.5% to 77.6%&lt;/strong&gt;, Turborepo tasks from &lt;strong&gt;73.0% to 78.0%&lt;/strong&gt;, and packages found in the runner's pnpm store from 99.5% to 100%. The pnpm number is saturated: there is nothing left to improve.&lt;/p&gt;

&lt;p&gt;The Docker intervals overlap heavily, 67 to 74 before and 70 to 85 after on only 44 builds, so we call it unchanged within noise. The Turborepo intervals just touch. We changed the build cache mounts at 07:03 UTC on the 18th, which should help, and this sample can't show it yet. The settled window reads 75.5% (65 to 85, 14 builds) and 74.7% (70 to 79).&lt;/p&gt;

&lt;p&gt;Two numbers we couldn't measure. The only pull-through registry cache we run serves production, not CI, and it keeps no history. The server side of the Turborepo cache keeps logs that are incomplete for past days. The job logs above are the only source we trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Maintenance labour
&lt;/h2&gt;

&lt;p&gt;Table 1. Counts are measured from git and GitHub. The hours line is an estimate.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before, 30 days&lt;/th&gt;
&lt;th&gt;After, 2.25 days&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Merged PRs that changed runner or CI infrastructure&lt;/td&gt;
&lt;td&gt;38 (1.3 a day)&lt;/td&gt;
&lt;td&gt;16 (7.1 a day)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Opened by an agent account&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Opened under a human login&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Titled fix or revert&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines changed&lt;/td&gt;
&lt;td&gt;19,284&lt;/td&gt;
&lt;td&gt;11,045&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human reviews or comments on them&lt;/td&gt;
&lt;td&gt;3 comments, 0 reviews&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Founder hours visible in GitHub, estimate&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;0.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Agents sometimes open PRs under the founder's own login, so the 23 "human" PRs before include agent work. If every one had been written by hand, the ceiling is between 6 and 46 hours, 17 at the middle assumption. That is an upper bound, not a likely value.&lt;/p&gt;

&lt;p&gt;What the table says: the work did not shrink. We changed the runner setup more than five times as often per day in the after window, because we were fixing it, and 7 of the 16 changes were fixes. What it doesn't say is how much of a person's time that took. Reading an incident, choosing which fix to ask for and answering a comment are in no timestamp. We didn't keep a time log, and that is the first thing to fix before the next measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Failure recovery
&lt;/h2&gt;

&lt;p&gt;Table 2. Measured. Main-branch CI is the push-triggered CI workflow on main.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before, 30 days&lt;/th&gt;
&lt;th&gt;After, 2.25 days&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Main-branch CI red, episodes&lt;/td&gt;
&lt;td&gt;25 (0.83 a day)&lt;/td&gt;
&lt;td&gt;3 (1.33 a day)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Main-branch CI red, total time&lt;/td&gt;
&lt;td&gt;24.7 h (0.82 h a day)&lt;/td&gt;
&lt;td&gt;2.1 h (0.94 h a day)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Episode length, median and 90th percentile&lt;/td&gt;
&lt;td&gt;33 min and 2.2 h&lt;/td&gt;
&lt;td&gt;29 min and 72 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Periods more than 3 h behind main&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Longest&lt;/td&gt;
&lt;td&gt;45 h&lt;/td&gt;
&lt;td&gt;18.5 h&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Main-branch CI was red no less per day, on 3 episodes. The runner-side alerts that fill the first post are quieter: "a runner pod stuck pending" fired 31 times in the 4 days of alert history we hold for the before window, and not at all in the after window. The alert on the new release pool's pickup fired 9 times. The alert history only starts on 12 November, so these are not the same length of time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The 16-hour block.&lt;/strong&gt; At 01:13 UTC on 19 November a merge went in that carried a change which, once deployed to our dev environment, made the signed-in home page return an error. The next merges changed only docs and infrastructure, and those skip the end-to-end tests, so nothing caught it for almost five hours. The run that started at 05:58 was the first to include them. It failed at 09:28, and promotion to production stopped.&lt;/p&gt;

&lt;p&gt;That is the gate doing its job: the broken build never reached production. It also held eight merges back for between 0.4 and 18.5 hours.&lt;/p&gt;

&lt;p&gt;Our first diagnosis was wrong. An agent decided the tests were flaky and raised their timeouts. That was merged at 09:47 and did nothing. The real cause, according to the fix's own write-up, was a change that made one component depend on a provider that only some pages supplied. It was fixed at 21:37, and the run that started at 00:07 UTC on the 20th passed. Production caught up by 00:28.&lt;/p&gt;

&lt;p&gt;Recovery from that took 16.3 hours, against 19 to 77 minutes for the same deploy alerts in the 4 days of before history. The alert fires 2.2 hours after a failure begins, by design. The lesson from the first diagnosis is ours, not the runners': a failing gate should be treated as a possible real bug before it is treated as a flaky test.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. The billed-minutes equivalent
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqlgxosnqmw5qlnjara5l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqlgxosnqmw5qlnjara5l.png" alt="Bar chart, estimate: what the same CI would cost on hosted runners per 30 days, before and after. GitHub exact seconds $1,456 before, interval 1,350 to 1,564, and $1,255 after, interval 1,131 to 1,409. GitHub as billed $1,990 before and $1,825 after. Blacksmith $970 before and $837 after." width="800" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Estimate: measured job minutes multiplied by the list prices of the first post, after each provider's allowance. The after window is scaled from 2.25 days to 30.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Same method as the first post. At exact seconds the same CI would cost &lt;strong&gt;$1,255&lt;/strong&gt; a month on GitHub's hosted runners in the after window and &lt;strong&gt;$1,456&lt;/strong&gt; in the before window, &lt;strong&gt;$1,825&lt;/strong&gt; and &lt;strong&gt;$1,990&lt;/strong&gt; as GitHub bills it, &lt;strong&gt;$837&lt;/strong&gt; and &lt;strong&gt;$970&lt;/strong&gt; on Blacksmith.&lt;sup id="fnref2"&gt;2&lt;/sup&gt;&lt;sup id="fnref3"&gt;3&lt;/sup&gt; The intervals overlap, 1,131 to 1,409 and 1,350 to 1,564, so we don't call it a change. Runner hours were 115 a day against 134.&lt;/p&gt;

&lt;p&gt;Two cautions. The first post's $1,252 and $1,732 were the low ends of its intervals. This post's estimator is slightly different, and its point estimates for the same 30 days are $1,456 and $1,990, which is why this chart starts higher. The after figure of $1,255 matches the first post's $1,252 by coincidence. And the after window is a Wednesday to Friday morning where the load fell: it doesn't show that CI got cheaper to run. What we pay in new bills is still $0.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. What we take from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Queue time:&lt;/strong&gt; better for Node jobs at the same load. Worse for builds and tests until 20:20 UTC on the 18th, and not yet proven under a busy day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache hit rate:&lt;/strong&gt; up a little, inside the noise for Docker builds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintenance labour:&lt;/strong&gt; more changes, no human action visible in GitHub, and no record of our own hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failure recovery:&lt;/strong&gt; not better. The costliest failure was application code, caught by the gate, and our first guess about it was wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge to production:&lt;/strong&gt; the median is unchanged. A quiet hour now takes about 10 minutes. A burst took about 45.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We'll measure again on a normal busy week, 23 to 27 November, with the same script and the same rules, and add the numbers to this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Measure your own queue time
&lt;/h2&gt;

&lt;p&gt;Queue time is the variable most worth knowing and the one a billing page can't show. This snippet counts how long jobs waited for a runner, in a window. It makes one API call per run, so keep the window under 1,000 runs or split it. On our repository an hour of CI took about 45 seconds to count.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Seconds from a job being created to a runner starting it. Needs gh (logged in) and jq.&lt;/span&gt;
&lt;span class="c"&gt;# One API call per run: keep the window under 1,000 runs, or split it.&lt;/span&gt;
&lt;span class="nv"&gt;REPO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-org/your-repo
&lt;span class="nv"&gt;FROM&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2026-11-19T21:00:00Z
&lt;span class="nv"&gt;TO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2026-11-19T22:00:00Z

gh api --paginate &lt;span class="s2"&gt;"repos/$REPO/actions/runs?created=$FROM..$TO&amp;amp;per_page=100"&lt;/span&gt; \
  --jq &lt;span class="s1"&gt;'.workflow_runs[] | select(.conclusion != "skipped") | .id'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r run&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  gh api --paginate &lt;span class="s2"&gt;"repos/$REPO/actions/runs/$run/jobs?filter=latest&amp;amp;per_page=100"&lt;/span&gt; \
    --jq &lt;span class="s1"&gt;'.jobs[] | select(.started_at and .runner_name != null and .runner_name != "")
          | ((.started_at | fromdate) - (.created_at | fromdate))'&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
sort -n &lt;span class="o"&gt;|&lt;/span&gt;
awk &lt;span class="s1"&gt;'{ v[NR] = $1 }
     END { if (!NR) exit
           printf "%d jobs, p50 %d s, p90 %d s, p99 %d s, max %d s\n", NR,
             v[int((NR - 1) * 0.50) + 1], v[int((NR - 1) * 0.90) + 1],
             v[int((NR - 1) * 0.99) + 1], v[NR] }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it for a quiet hour and a busy hour. The gap between them is your answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measurement notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windows.&lt;/strong&gt; Before: 17 October 23:00 to 16 November 23:00 UTC. After: 18 November 00:00 to 20 November 06:00 UTC. Settled: 18 November 22:00 to 20 November 06:00 UTC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs.&lt;/strong&gt; Every run in each window was listed. Jobs were read for a random sample per workflow: 6% in the before window (at least 40 runs a workflow) and 15% in the after window. Skipped runs start no job and are not sampled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Queue time.&lt;/strong&gt; &lt;code&gt;started_at&lt;/code&gt; minus &lt;code&gt;created_at&lt;/code&gt; of each job's first attempt, for jobs a runner took, weighted by the inverse sampling fraction. Jobs still queued when a window ended are left out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge to production.&lt;/strong&gt; From the PR's squash commit time on main to the finish of the first successful production deploy that includes it. Every merge, no sampling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache.&lt;/strong&gt; Counted from the logs of 291 and 44 sampled image builds, 134 and 137 Turborepo runs and 228 and 231 installs. 90% intervals from 1,000 bootstrap resamples.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Labour.&lt;/strong&gt; A bot account is an account whose type is Bot. Hours are an estimate from reviews and comments only, at 5, 10 or 20 minutes a review and 1, 3 or 6 a comment; the ceiling adds 15, 45 or 120 minutes for every PR under a human login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recovery.&lt;/strong&gt; Main-branch red episodes come from GitHub run data. Alert history comes from our monitoring, which holds it from 12 November, so the before window has 4 days of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Money.&lt;/strong&gt; Same method and list prices as the first post, checked on 16 and 17 November and not rechecked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not measured.&lt;/strong&gt; How fast a hosted runner would run our jobs, a person's time, and whether any person noticed an alert before it fired.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Notes and sources
&lt;/h2&gt;




&lt;ol&gt;

&lt;li id="fn1"&gt;
&lt;p&gt;Mouve, &lt;a href="https://mouve.it/blog/what-our-ci-would-cost-on-hosted-runners" rel="noopener noreferrer"&gt;Our CI would cost $1,252 a month on GitHub's runners. Here is what it costs us&lt;/a&gt;, section 5, 18 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn2"&gt;
&lt;p&gt;GitHub Docs, &lt;a href="https://docs.github.com/en/billing/reference/actions-runner-pricing" rel="noopener noreferrer"&gt;Actions runner pricing&lt;/a&gt;: Linux x64 at $0.006 a minute for 2 cores and $0.012 for 4, and the rule that each job rounds up to a whole minute. Checked 16 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn3"&gt;
&lt;p&gt;Blacksmith, &lt;a href="https://www.blacksmith.sh/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;: x64 at $0.004 a minute for 2 vCPU and $0.008 for 4, with 3,000 free 2-vCPU minutes a month. Checked 16 and 17 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;

</description>
      <category>devops</category>
      <category>githubactions</category>
      <category>cicd</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Our CI would cost $1,252 a month on GitHub's runners. Here is what it costs us</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Wed, 18 Nov 2026 03:05:52 +0000</pubDate>
      <link>https://dev.to/mouve/our-ci-would-cost-1252-a-month-on-githubs-runners-here-is-what-it-costs-us-54jh</link>
      <guid>https://dev.to/mouve/our-ci-would-cost-1252-a-month-on-githubs-runners-here-is-what-it-costs-us-54jh</guid>
      <description>&lt;p&gt;This post started as a tweet. We wanted to post a photo of one of the old HP workstations in our Tallinn office with a line like "cut our $1,200 a month CI down to near zero on this box".&lt;/p&gt;

&lt;p&gt;Before posting it we checked, and three parts of that line were wrong. We never paid a $1,200 bill, so nothing was cut. It isn't one box. And "near zero" leaves out everything that doesn't arrive as an invoice.&lt;/p&gt;

&lt;p&gt;So we measured it properly. In the 30 days to 16 November 2026, our GitHub Actions CI ran at least &lt;strong&gt;135,000 jobs&lt;/strong&gt; and &lt;strong&gt;3,543 runner hours&lt;/strong&gt;. On GitHub's hosted runners that is at least &lt;strong&gt;$1,252 a month&lt;/strong&gt;, or &lt;strong&gt;$1,732&lt;/strong&gt; the way GitHub actually bills. On Blacksmith it is at least &lt;strong&gt;$834&lt;/strong&gt;. On our own machines it is &lt;strong&gt;$0 in new bills&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That is cost avoided, not money saved. The rest of this post is how we got the numbers, what they leave out, and what running it ourselves has cost in other ways. If you only want your own number, the script and an agent prompt are in section 7.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Count every job a runner held
&lt;/h2&gt;

&lt;p&gt;Much of our CI traffic comes from AI agents, not people. In those 30 days the repository created 49,028 workflow runs and merged 1,520 pull requests. Several of the busiest workflows exist for the agents: the CI fix loop ran 6,733 times, CI failure triage 6,150 times and the merge batcher 4,306 times. The main CI workflow ran 4,352 times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List every run, sample the jobs.&lt;/strong&gt; GitHub's API lists every run cheaply. Listing the jobs of all 25,339 runs that started would have taken about 5 hours of an API rate limit other tools share, so we fetched the jobs of 3,525 runs and scaled up per workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Count only time a runner held.&lt;/strong&gt; Some jobs sat in a queue until a 24-hour timeout and never ran. Counting them would have added over 100,000 minutes that used no machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quote the low end.&lt;/strong&gt; The sample gives a 90% interval. The point estimate is 3,801 hours; every money figure in this post uses the low end, 3,543.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1l0lp4e44qogq474ed5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1l0lp4e44qogq474ed5.png" alt="Bar chart, measured: runner hours by kind of job over 30 days. Node jobs 2,964 hours, Docker image builds 683, Android builds 71, deploy path 70, GitHub-hosted docs builds 14. Total 3,801 hours, 90% interval 3,543 to 4,120." width="799" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Measured, from a sample of runs scaled to all of them. The whiskers are the 90% interval. Full method in the measurement notes below.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;What this does not tell you: how long the same jobs would take on someone else's machine. We measured job time on our hardware. A hosted 2-core runner could be faster or slower, and we didn't test it.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Price it the way the vendor bills
&lt;/h2&gt;

&lt;p&gt;We priced each kind of job at the smallest hosted machine that fits its 90th-percentile CPU and memory. That is a 2-core runner for almost everything and 4 cores for Android builds.&lt;sup id="fnref1"&gt;1&lt;/sup&gt; This undercounts our heaviest jobs on purpose, so the hosted figure stays low.&lt;/p&gt;

&lt;p&gt;Then the rounding. GitHub rounds every job up to a whole minute.&lt;sup id="fnref1"&gt;1&lt;/sup&gt; Most of our jobs are short, so the rule alone moves the bill:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub, exact seconds → GitHub, as billed: $1,252 → &lt;strong&gt;$1,732&lt;/strong&gt; a month.&lt;/li&gt;
&lt;li&gt;GitHub, as billed → Blacksmith, exact seconds: $1,732 → &lt;strong&gt;$834&lt;/strong&gt; a month.&lt;sup id="fnref2"&gt;2&lt;/sup&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What the first pair means: if your jobs are short, the rounding rule matters as much as the per-minute price. What it doesn't mean: Blacksmith doesn't publish a rounding rule, so we priced it on exact seconds. If it rounds too, its figure goes up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2ajmee9r4d7oghffqs2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2ajmee9r4d7oghffqs2.png" alt="Bar chart, estimate: monthly cost of the same CI. GitHub-hosted as billed $1,732, GitHub-hosted exact seconds $1,252, Blacksmith $834, us if GitHub's postponed self-hosted fee arrives $456, us if we paid the power $116, us in new bills $0." width="800" height="412"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Estimate: our measured minutes multiplied by list prices checked on 16 and 17 November 2026, after each provider's free allowance.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If we sized runners to the limits our own pods are allowed, not to what jobs actually use, GitHub would be $2,963 and Blacksmith $2,040. We don't lead with those because they assume machines our jobs mostly don't need.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Write down what it costs us on paper
&lt;/h2&gt;

&lt;p&gt;Table 1. Estimate. Our side of the comparison, per month.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Per month&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub's charge for self-hosted runners&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;Free under GitHub's billing rules today&lt;sup id="fnref3"&gt;3&lt;/sup&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud machines for CI&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;None. Every runner is an office machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electricity&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;The office lease includes it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electricity, if we paid it&lt;/td&gt;
&lt;td&gt;at most $116 (€106)&lt;/td&gt;
&lt;td&gt;All four machines at CI-peak draw, around the clock, €0.20/kWh&lt;sup id="fnref4"&gt;4&lt;/sup&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub's self-hosted fee, if it arrives&lt;/td&gt;
&lt;td&gt;about $456&lt;/td&gt;
&lt;td&gt;$0.002 a minute, announced for March 2026, then postponed&lt;sup id="fnref5"&gt;5&lt;/sup&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hardware&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;The Z440s were a former employer's e-waste; the rest we already had&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The power line is an upper bound. The machines also run other work, so CI's real share is lower. The fee line is the one to watch: GitHub announced it, postponed it and set no new date.&lt;sup id="fnref5"&gt;5&lt;/sup&gt; If it comes, self-hosting stops being free, though at our volume it would still be about a third of the cheapest hosted figure.&lt;/p&gt;

&lt;p&gt;Most of the work runs on two HP Z440 workstations, a model from 2014. A dual-Xeon box and a spare laptop did the rest. We already owned all four. The Z440s cost us nothing: a former employer was about to throw them away.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzndd79gn1j5ugnkhwqtx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzndd79gn1j5ugnkhwqtx.png" alt="Bar chart, measured: share of sampled job time by machine, 12 to 16 November 2026. First HP Z440 42.3%, second HP Z440 30.0%, dual-Xeon box 21.6%, spare laptop 6.1%." width="800" height="335"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Measured over the last four days only, because that is all the machine history we keep. It supports "mostly two old Z440s", not a 30-day split.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Count the costs that never send an invoice
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Our time.&lt;/strong&gt; In the 30 days, 30 merged pull requests changed the runner setup: capacity, cache disks, which machine takes which jobs, version pins. Agents wrote most of them. A person still reviewed each one and owns the result. We didn't put a price on those hours, and anyone comparing should.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A consumer SSD that couldn't keep up.&lt;/strong&gt; One of the Z440s got a consumer 250 GB SATA SSD as its CI cache. On a busy night the runners wrote the whole drive in about 20 to 25 minutes and deleted about as much. Without regular TRIM the drive had almost no clean blocks left, writes fell to about 55 MB/s, and the cache ran out of inodes before it ran out of space. We took that machine out of the busiest pools the same night.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deploys stuck behind pull requests.&lt;/strong&gt; GitHub hands jobs to runners by label and has no priority. On a heavy evening our deploy builds waited for a free runner like every PR check. On 16 November one image build waited 49 minutes, and 12 merges waited for production, the oldest for over two hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The night CI got slower.&lt;/strong&gt; That same evening we landed changes meant to speed up deploys. Each stage we touched got faster: a deploy to our dev environment without an image build went from 33 minutes to 8 to 13, and the production step from 7 minutes to 4.6. End to end, the evening was worse. The median PR check run took 22 minutes, against 16 in the same hours on the seven evenings before, and nothing reached production for more than an hour and a half.&lt;/p&gt;

&lt;p&gt;It would be easy to blame the changes. The same evening ran about twice the usual load, 323 CI jobs an hour against 154 on the evenings we compared it with. One evening of 15 PR runs can't separate the two. What we can say is that the queue, not the tests, ate the time.&lt;/p&gt;

&lt;p&gt;On hosted runners none of this would have been ours to fix. That is part of what the hosted price pays for.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. Fix the queue before the machines
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Update, 20 November.&lt;/strong&gt; The first bullet below is wrong. The image builds and end-to-end tests on the release path did not move to their own runners overnight into 17 November. The new pool existed, but a setting that points those jobs at it was never switched on, so they kept queueing behind pull-request CI. Only the deploy steps (migrations, tag bumps, smoke tests) had their own runners, since October. It was fixed at 20:20 UTC on 18 November. The measured effect is in our follow-up, &lt;a href="https://dev.to/mouve/what-our-ci-fixes-measured-shorter-queues-one-claim-of-ours-that-was-wrong-and-a-16-hour-block-3nei"&gt;What our CI fixes measured&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What we changed, in the order it mattered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deploy jobs got their own runners.&lt;/strong&gt; We had already done it for migrations and smoke tests in October. Overnight into 17 November the image builds and end-to-end tests on the release path followed, so a busy PR evening can no longer hold a release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The cache SSD is trimmed every 15 minutes&lt;/strong&gt;, and the cleanup job now reads how full its disk is and deletes sooner when it fills. A reformat with twice the inodes is the next step for that drive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fewer end-to-end tests per deploy.&lt;/strong&gt; A deploy now runs the critical tests plus the ones its change can reach, and the full suite runs after promotion.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What we don't know yet is the end-to-end effect. The next measurement needs a full working day after these changes, and we'll publish it when it is in.&lt;/p&gt;
&lt;h2&gt;
  
  
  6. Know when not to do this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your minutes fit in the free allowance.&lt;/strong&gt; GitHub includes $12 a month on Free and $18 on Pro and Team.&lt;sup id="fnref3"&gt;3&lt;/sup&gt; Most small teams are here, and there is nothing to save.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You would have to buy hardware or pay for power.&lt;/strong&gt; Our sums work because the machines and the electricity were already paid for. A new server bought for CI has to beat a hosted bill that, for many teams, is a few dollars a month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nobody wants to run it.&lt;/strong&gt; Runners fail in ways hosted CI hides: full disks, slow drives, stuck queues, a machine that dies during a release. Someone has to notice, at night if it blocks a deploy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your repository is public.&lt;/strong&gt; GitHub's own guidance is that self-hosted runners should almost never be used with public repositories, because anyone can open a pull request that runs code on your machine.&lt;sup id="fnref6"&gt;6&lt;/sup&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  7. Do the sum for your own repository
&lt;/h2&gt;

&lt;p&gt;This counts job minutes for one repository over a window, both exact and rounded up per job the way GitHub bills. It makes one API call per run, so keep the window under 1,000 runs or split it. On our repository, half an hour of CI took about a minute to count.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Job minutes for one repo over a time window. Needs gh (logged in) and jq.&lt;/span&gt;
&lt;span class="c"&gt;# One API call per run: keep the window under 1,000 runs, or split it.&lt;/span&gt;
&lt;span class="nv"&gt;REPO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-org/your-repo
&lt;span class="nv"&gt;FROM&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2026-11-01T00:00:00Z
&lt;span class="nv"&gt;TO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2026-11-08T00:00:00Z

gh api --paginate &lt;span class="s2"&gt;"repos/$REPO/actions/runs?created=$FROM..$TO&amp;amp;status=completed&amp;amp;per_page=100"&lt;/span&gt; \
  --jq &lt;span class="s1"&gt;'.workflow_runs[] | select(.conclusion != "skipped") | .id'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r run&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  gh api --paginate &lt;span class="s2"&gt;"repos/$REPO/actions/runs/$run/jobs?filter=all&amp;amp;per_page=100"&lt;/span&gt; \
    --jq &lt;span class="s1"&gt;'.jobs[] | select((.runner_name // "") != "" and .started_at and .completed_at)
          | (.completed_at | fromdate) - (.started_at | fromdate) | select(. &amp;gt; 0)'&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
awk &lt;span class="s1"&gt;'{ s += $1; b += int(($1 + 59) / 60); n++ }
     END { printf "%d jobs, %.0f job minutes, %d minutes if each job is rounded up\n", n, s / 60, b }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Multiply the rounded-up minutes by the per-minute price of the smallest runner that fits, take off your plan's allowance, and you have a floor.&lt;/p&gt;

&lt;p&gt;For a busier repository, or a whole month, give the job to your coding agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Estimate what our GitHub Actions CI would cost on hosted runners.
Read-only: change nothing.

1. For REPO and the last 30 days, list every workflow run through the
   GitHub API. Split the window so no query passes 1,000 results.
   Leave out runs that ended "skipped".
2. Fetch the jobs of a random sample of runs per workflow: 10%, at
   least 40 each, all runs of small workflows. Job time = completed_at
   minus started_at. Drop jobs with no runner_name. Keep a second total
   with each job rounded up to a whole minute.
3. Scale each workflow's sample to all its runs and bootstrap a 90%
   interval.
4. Price the low end at the smallest hosted size that fits the
   90th-percentile job, from the provider's current pricing page, and
   subtract the included allowance. Show exact-second and rounded-up
   figures separately.
5. Give me one table with the source of every number, and a list of
   what you could not measure.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then write down the hours and the incidents next to the number, and decide with both in front of you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measurement notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Window.&lt;/strong&gt; The 30 days from 17 October 23:00 to 16 November 23:00 UTC. It includes heavy agent traffic and one day with 3,426 runs. A quieter month would cost less on hosted runners.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs.&lt;/strong&gt; All 49,028 runs were listed in 3-hour windows so no query hit the API's 1,000-result cap. 23,678 ended skipped and started no job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sample.&lt;/strong&gt; Jobs of 3,525 runs: 10% of each workflow, at least 40 runs, every run for small workflows (122 of 148 workflows were fetched in full).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Estimator.&lt;/strong&gt; Per workflow, job seconds per run wall-second in the sample, scaled to the wall time of all its runs. 90% intervals from 1,000 bootstrap resamples.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Job time.&lt;/strong&gt; &lt;code&gt;completed_at&lt;/code&gt; minus &lt;code&gt;started_at&lt;/code&gt;, every attempt counted. Jobs no runner picked up are excluded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Money.&lt;/strong&gt; Always the low end of the interval, rounded down, after the larger of GitHub's plan allowances ($18) and Blacksmith's 3,000 free minutes ($12).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sizes.&lt;/strong&gt; The smallest hosted size that holds the 90th-percentile job's peak CPU and memory, measured over four days.&lt;sup id="fnref7"&gt;7&lt;/sup&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machines.&lt;/strong&gt; Each job's runner matched to its machine through our metrics, which keep only four days of history. 93% of sampled job time in those days matched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power.&lt;/strong&gt; 735 W for the four machines, estimated from CI-peak draw (one CPU reading measured, the rest estimated), × 720 hours × an assumed €0.20/kWh.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The slower night.&lt;/strong&gt; Same clock hours, 20:35 to 23:31 UTC, on 16 November against 9 to 15 November. The after-window is under three hours and has 15 PR runs, too few to conclude anything on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not counted.&lt;/strong&gt; Runner wait time on either side, and how fast a hosted machine runs our jobs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Notes and sources
&lt;/h2&gt;




&lt;ol&gt;

&lt;li id="fn1"&gt;
&lt;p&gt;GitHub Docs, &lt;a href="https://docs.github.com/en/billing/reference/actions-runner-pricing" rel="noopener noreferrer"&gt;Actions runner pricing&lt;/a&gt;: Linux x64 at $0.006 a minute for 2 cores and $0.012 for 4, and the rule that each job rounds up to a whole minute. Checked 16 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn2"&gt;
&lt;p&gt;Blacksmith, &lt;a href="https://www.blacksmith.sh/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;: x64 at $0.004 a minute for 2 vCPU and $0.008 for 4, with 3,000 free 2-vCPU minutes a month. Checked 16 and 17 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn3"&gt;
&lt;p&gt;GitHub Docs, &lt;a href="https://docs.github.com/en/billing/concepts/product-billing/github-actions" rel="noopener noreferrer"&gt;GitHub Actions billing&lt;/a&gt;: included usage of $12 (Free) and $18 (Pro, Team), and self-hosted runners listed as free. Checked 16 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn4"&gt;
&lt;p&gt;European Central Bank &lt;a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/eurofxref-graph-usd.en.html" rel="noopener noreferrer"&gt;reference rate&lt;/a&gt;, 16 November 2026: 1.1014 US dollars per euro.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn5"&gt;
&lt;p&gt;GitHub, &lt;a href="https://github.com/resources/insights/2026-pricing-changes-for-github-actions" rel="noopener noreferrer"&gt;2026 pricing changes for GitHub Actions&lt;/a&gt; and the &lt;a href="https://github.blog/changelog/2025-12-16-coming-soon-simpler-pricing-and-a-better-experience-for-github-actions/" rel="noopener noreferrer"&gt;changelog of 16 December 2025&lt;/a&gt;: the $0.002 a minute self-hosted fee and its postponement. Checked 16 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn6"&gt;
&lt;p&gt;GitHub Docs, &lt;a href="https://docs.github.com/en/actions/reference/security/secure-use" rel="noopener noreferrer"&gt;Secure use reference&lt;/a&gt;, on self-hosted runners and public repositories. Checked 17 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn7"&gt;
&lt;p&gt;GitHub Docs, &lt;a href="https://docs.github.com/en/actions/reference/runners/github-hosted-runners" rel="noopener noreferrer"&gt;GitHub-hosted runners&lt;/a&gt; and &lt;a href="https://docs.github.com/en/actions/reference/runners/larger-runners" rel="noopener noreferrer"&gt;larger runners&lt;/a&gt;: 2 CPU and 8 GB standard, 4-core 16 GB larger. Checked 16 November 2026.&amp;nbsp;↩&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;

</description>
      <category>devops</category>
      <category>githubactions</category>
      <category>cicd</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Hello world</title>
      <dc:creator>Alo Martin</dc:creator>
      <pubDate>Tue, 03 Nov 2026 11:11:07 +0000</pubDate>
      <link>https://dev.to/alomartinp/hello-world-4p9l</link>
      <guid>https://dev.to/alomartinp/hello-world-4p9l</guid>
      <description>&lt;p&gt;Hi dev.to community!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
