You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spawn status / spored status always show CPU, network and disk I/O as "unknown (single sample)" #1090
while spored's own log had a measurement every minute:
21:42:33 Not idle: Network traffic 157688 bytes
21:43:33 Not idle: Network traffic 105648 bytes
21:44:33 Not idle: Disk I/O 2883584 bytes
...
Cause: spored status is a separate one-shot process. Since #952 only the daemon's monitor loop samples, and buildStatusReport (cmd/spored/main.go) evaluates its own fresh Agent, so it always has exactly one sample. Its comment says so: "a one-shot has one sample, so the counter readings are 'unknown (single sample)'". It is therefore not an edge case: it is every status screen, on every instance, at every age. The signals that decide idle-stop are never visible to the user, and the line that explains why an instance is not stopping (Not idle: Network traffic 157688 bytes) is only in /var/log/spored.log.
Fix direction: have spored status read the daemon's last evaluation (the snapshot #952 introduced for the metrics endpoint and webhooks) over the existing local push API (127.0.0.1:7777) or a state file, and fall back to the one-shot reading, labelled as such, only when the daemon is not running. Show the daemon's last Not idle: reason and how long the instance has been continuously idle.
Activity
Start every cmd/spored test with no daemon reading, so a host running…
spored status shows the daemon's idle readings instead of a one-shot …
Start every cmd/spored test with no daemon reading, so a host running…
spored status shows the daemon's idle readings instead of a one-shot …
Move the #1090 and #1093 CHANGELOG entries out of released [0.132.1] …
Move the #1090 and #1093 CHANGELOG entries out of released [0.132.1] …
Move the #1090 and #1093 CHANGELOG entries out of released [0.132.1] …
Release v0.132.2: idle-stop works again (#1093), status shows the dae…