Repository navigation
Open
Description
A runner's status is stored only as its latest value. runner_status keeps one row per runner and overwrites it when the status changes (#1125), so the admin runner endpoints and bencher system runner view show where a runner stands now, but not how it got there.
That leaves questions an admin cannot answer today:
- When did a runner pause, for how long, and why (an md RAID sync, host maintenance)?
- How often does a runner pause, and is that changing?
- When did a runner's disk health go from
oktowarningorfailing, and back? - Did a pause or a health change line up with a noisy benchmark result?
Proposal
Keep each status change as an append-only history, not just the latest row.
- The server already writes
runner_statusonly when the status changes: availability, the set of pause reason kinds, the coarse health state and findings, or a pause passing 12 hours. Each of those writes is an event, so the history records exactly what the server already decides is news. RAID progress and NVMe readings stay out, as they do today. - Changes are rare: a daily maintenance window, a weekly TRIM, a monthly RAID check, and the occasional health change, so a few rows per runner per day.
- History stays admin-only, like the current status, since health carries disk models and serial numbers.
Open questions
- Storage: a history table beside
runner_status, or history alone with the latest status derived from it. - What a row records: the coarse state only, or the full reasons and health as reported.
- Retention: keep everything, or a window.
- Surface: an admin API route (for example
GET /v0/runners/{runner}/status/history),bencher system runneroutput, a future Console runner page, and whether perf plots should mark when a runner was paused or unhealthy. - Durations: OpenTelemetry already counts pause starts by reason (
runner.pause); history would add how long each pause lasted.
Metadata
Metadata
Assignees
Labels
No labels
Activity