perf(runner-controller): poll the queue every 3 s #805

Sammanfogat
supernaut sammanfogade 2 incheckningar från runner/poll-interval in i main 2026-10-18 19:23:40 +00:00
Ägare

Polls the job queue every 3 s instead of 10 s to cut pickup latency. The first-seen restart window keeps its 30 s floor, so a slow restart does not drop queued-job timings.

Before apply, check loop: done in X s in Loki. If a cycle takes more than about 2 s, the loop runs back-to-back and OpenStack API calls roughly triple.

Items 2 and 3 of the issue are not in this PR.

Refs #329

Polls the job queue every 3 s instead of 10 s to cut pickup latency. The first-seen restart window keeps its 30 s floor, so a slow restart does not drop queued-job timings. Before apply, check `loop: done in X s` in Loki. If a cycle takes more than about 2 s, the loop runs back-to-back and OpenStack API calls roughly triple. Items 2 and 3 of the issue are not in this PR. Refs #329
supernaut lade till 2 incheckningar 2026-10-18 19:03:31 +00:00
Cut the poll interval from 10 s to 3 s. A uniformly arriving job
waited a mean of 5 s for the next poll. The reconcile loop finishes
well inside 1 s, so cycles cannot overlap.

Refs #329
fix(runner-controller): keep the 30 s first-seen restart window
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m31s
3da8bb371f
The restart window for persisted first-seen times was 3 * poll_interval.
With the 3 s poll it shrank to 9 s, shorter than a controller restart.
Floor it at 30 s.

Refs #329
supernaut sammanfogade incheckning eddb8fd05a till main 2026-10-18 19:23:40 +00:00
supernaut tog bort grenen runner/poll-interval 2026-10-18 19:23:40 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-18 19:23:41 +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!805
Ingen beskrivning angiven.