Skip to content

board: feat: draining server toggle (#411) - #414

Merged
DerDennisOP merged 1 commit into
mainfrom
fix/draining-server-411
Jun 16, 2026
Merged

board: feat: draining server toggle (#411)#414
DerDennisOP merged 1 commit into
mainfrom
fix/draining-server-411

Conversation

@DerDennisOP

Copy link
Copy Markdown
Member

Closes #411.

  • Draining server (superuser, System Health → Enable/Disable Draining, POST /admin/draining): pauses dispatch and parks every in-flight evaluation under WaitingReason::Draining so the instance can be stopped safely; in-memory on the scheduler, so it auto-clears on the next startup (parked evals recovered to Queued).
  • thunks / fn-calls always 0: eval workers now set NIX_SHOW_STATS=1, which enables libnixexpr's gated Counters (GC gauges bypass them, hence heap/alloc worked but counters didn't).
  • Slow Overview KPIs: /board/live now sends a queue-depth snapshot on connect instead of waiting up to worker_sample_interval_secs (15s) for the first broadcast.

Also enable NIX_SHOW_STATS in eval workers so thunks/fn-calls report nonzero, and send a queue-depth snapshot on board-live connect so Overview KPIs populate immediately.
@DerDennisOP
DerDennisOP merged commit 02c44d8 into main Jun 16, 2026
12 checks passed
@DerDennisOP
DerDennisOP deleted the fix/draining-server-411 branch June 16, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Draining Server Instance

1 participant