Skip to content

fix: name the drain and node restart in admission pauses - #283

Merged
popodidi merged 1 commit into
mainfrom
axe/task-2460--work
Dec 2, 2026
Merged

popodidi merged 1 commit into
mainfrom
axe/task-2460--work

Conversation

@popodidi

@popodidi popodidi commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Task 2460. During the node rolls of 2026-12-01 23:31Z (task 2438) and 2026-12-02 01:04Z (task 2447) the server's "Task admission paused" wake read cpu unknown: warming up (0 of 60 s window). The pause had started with the drain. The wake came at pause_wake_seconds (15 min), right when the old node finished its 900 s drain abort and the new node sent its first sample. watch_pause quotes the current reason, so it showed the new node's warm-up.

Changes

  • Node (dispatch.rs): the drain reason is now node draining for a restart (axe-node.service) since <time>. The unit comes from /proc/self/cgroup.
  • Gate (admission.rs): a node's first CPU window reads node restarting: cpu window warming up (N of 60 s). The status gets restarting: true while that is the only cause. A hold, a drain, staleness or any other signal sets it back to false.
  • Server (watch_pause): a pause caused only by a restart does not start or continue a pause episode, so no bot wake fires.
  • CLI: task show waits with ...; starts automatically once the node has a CPU window.
  • Docs: docs/user/concepts/architecture.md.

Tests

  • startup_warm_up_reads_node_restarting_not_pressure, a_hold_clears_restarting (tests/admission.rs)
  • a_restarting_node_is_no_pause_episode (tests/admission_dispatch.rs). It fails without the server change.
  • The drain reason in tests/admission_dispatch.rs, plus a unit test for drain_reason and unit_of_cgroup.
  • Local: fmt, clippy, cargo test --locked, ts_bindings and doc links pass. The full release gate is also being run.

🤖 Generated with Claude Code

During a node roll the server's pause wake fired at pause_wake_seconds,
right as the new node reported its first sample, and quoted its CPU
warm-up ("cpu unknown: warming up") for a pause the drain had caused.

- The drain reason names the node's systemd unit and drain start.
- A node's startup CPU window reads "node restarting" and sets
  `restarting` while it is the only cause.
- watch_pause ignores restart-only pauses: no episode, no wake.
- task show says the task starts once the node has a CPU window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@popodidi
popodidi merged commit 133360e into main Dec 2, 2026
3 checks passed
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.

1 participant