fix(runner-controller): a finished VM counts as idle capacity until it shuts off #566
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#566
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
_compute_capacitycounts a VM whose one job has finished as idle capacity.forgejo-runner one-jobexits and the VM powers off, but it stays ACTIVE until Nova reports SHUTOFF. In that window the job has left "running", so the controller sees an idle VM, boots nothing, and a queued job waits for the next reap.Evidence from the controller journal, all below the cap:
active=2 (queued=2 + running=0) → create=0until SHUTOFF at 19:43:55, pickup 120 s.active=3 (queued=1 + running=2) → create=0, pickup 190 s.active=4 (queued=3 + running=0) → create=0.Raising
max_total(#564) does not fix this.Fix
Count a VM as idle only while its Forgejo runner registration is live and not busy. A registration that is gone means the VM is spent, whatever Nova says.
supernaut refererade till detta ärende2026-10-08 15:08:23 +00:00