feat(runner-controller): raise max_total to 20 on prod #564

Sammanfogat
supernaut sammanfogade 1 incheckning från runner-max-total-20 in i main 2026-10-08 06:15:42 +00:00
Ägare

Summary

Raise the ephemeral runner ceiling on prod from 4 to 20 and correct the min_idle comment.

 group_vars/all/vars.yml
   runner_controller_cancel_orphaned_jobs: true
+  runner_controller_max_total: 20

 roles/runner-controller/defaults/main.yml
-  # Bahnhof bills compute PER HOUR ... each job rounds up to ~1 VM-hour
+  # Bahnhof bills pro-rata ...
   runner_controller_min_idle: 0

Bahnhof bills compute pro-rata, not per started hour, so concurrency changes the burst ceiling and not the cost of a job. The 4-VM cap queued jobs on Renovate days: 283 boots on 2026-10-02, 58 in one hour. Worst case at 20 is 10.2 SEK/h, and reap_max_age_seconds (2 h) bounds a runaway at 20 VM-hours.

Evidence

  • Before: max_total: 4 rendered into the controller config; jobs wait on burst days.
    After: config renders max_total: 20. Pre-push hooks pass, including the runner-controller logic tests.

Not yet applied. Apply after merge:

ansible-playbook site.yml --limit bitborg-prod --tags runner-controller

Check compute quota first (20 instances, 40 vCPU, 80 GiB RAM, 400 GB of boot volumes at full fan-out):

OS_CLOUD=bahnhof openstack limits show --absolute -f value -c Name -c Value | grep -E 'Instances|Cores|RAM|Volumes|Gigabytes'

Merge Danger

Door: two-way

Revert the variable and re-apply the tag.

Blast Radius: CI capacity

Runners share one SNAT address. The forgejo_api zone is 300/min per source, so 20 parallel jobs that call /api/v1/* can see 429. Runner protocol and git transport paths are exempt.

## Summary Raise the ephemeral runner ceiling on prod from 4 to 20 and correct the `min_idle` comment. ```diff group_vars/all/vars.yml runner_controller_cancel_orphaned_jobs: true + runner_controller_max_total: 20 roles/runner-controller/defaults/main.yml - # Bahnhof bills compute PER HOUR ... each job rounds up to ~1 VM-hour + # Bahnhof bills pro-rata ... runner_controller_min_idle: 0 ``` Bahnhof bills compute pro-rata, not per started hour, so concurrency changes the burst ceiling and not the cost of a job. The 4-VM cap queued jobs on Renovate days: 283 boots on 2026-10-02, 58 in one hour. Worst case at 20 is 10.2 SEK/h, and `reap_max_age_seconds` (2 h) bounds a runaway at 20 VM-hours. ## Evidence - **Before:** `max_total: 4` rendered into the controller config; jobs wait on burst days. **After:** config renders `max_total: 20`. Pre-push hooks pass, including the runner-controller logic tests. Not yet applied. Apply after merge: ```sh ansible-playbook site.yml --limit bitborg-prod --tags runner-controller ``` Check compute quota first (20 instances, 40 vCPU, 80 GiB RAM, 400 GB of boot volumes at full fan-out): ```sh OS_CLOUD=bahnhof openstack limits show --absolute -f value -c Name -c Value | grep -E 'Instances|Cores|RAM|Volumes|Gigabytes' ``` ## Merge Danger **Door:** two-way Revert the variable and re-apply the tag. **Blast Radius:** CI capacity Runners share one SNAT address. The `forgejo_api` zone is 300/min per source, so 20 parallel jobs that call `/api/v1/*` can see 429. Runner protocol and git transport paths are exempt.
supernaut lade till 1 incheckning 2026-10-08 06:13:28 +00:00
feat(runner-controller): raise max_total to 20 on prod
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m41s
a040126c9e
Bahnhof bills compute pro-rata, so concurrency changes the burst ceiling, not
the cost of a job. The 4-VM cap queued jobs on Renovate days (283 boots on
2026-10-02, 58 in one hour). Worst case at 20 is 10.2 SEK/h. The min_idle
comment described per-hour rounding, which the invoice contradicts.
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-08 06:15:02 +00:00
supernaut sammanfogade incheckning a432be192b till main 2026-10-08 06:15:42 +00:00
supernaut tog bort grenen runner-max-total-20 2026-10-08 06:15:43 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!564
Ingen beskrivning angiven.