feat(nodes): live-updating fleet views; stop showing stale load for offline nodes #90

Merged
gmackie merged 2 commits from feat/nodes-live-updates into main 2026-07-12 18:38:51 +00:00
Owner

Addresses today's report: nodes page not live-updating, offline nodes showing weeks-old load as current, and the dashboard strip rendering fetch errors as "no nodes registered". 15s visibility-aware polling on both views.

🤖 Generated with Claude Code

Addresses today's report: nodes page not live-updating, offline nodes showing weeks-old load as current, and the dashboard strip rendering fetch errors as "no nodes registered". 15s visibility-aware polling on both views. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): report real CPU utilization, not load average
All checks were successful
CI / ci (pull_request) Successful in 5m25s
a3c8d121a8
CPUPercent was load1/NumCPU*100 — load average counts D-state (I/O wait)
and queued tasks, so I/O-heavy nodes (CI runner, docker, postgres) pegged
at '100% CPU' while their cores sat 90%+ idle (verified live: UI said 100%
on three nodes, top said 91-98% idle). Now computes busy/total deltas from
/proc/stat between heartbeats (short two-point sample on first collection),
with loadavg kept only as a last-resort fallback. Counter resets and
zero-delta intervals are rejected instead of producing nonsense.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
feat(nodes): live-updating fleet views; stop showing stale load for offline nodes
All checks were successful
CI / ci (pull_request) Successful in 6m17s
14dc82b5d2
- Nodes table and dashboard fleet strip now poll node.list every 15s while
  the tab is visible, keeping the last good snapshot on errors.
- The fleet strip no longer renders a fetch error as 'no nodes registered'
  (that masked a real error as an empty fleet); it says 'status unavailable'
  instead.
- Offline nodes stop showing their last CPU/MEM/DISK sample as if current —
  the sample is as old as the last heartbeat (labnuc's was 5 weeks). Load
  columns dash out and the row dims; static specs still show.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gmackie deleted branch feat/nodes-live-updates 2026-07-12 18:38:51 +00:00
Sign in to join this conversation.
No description provided.