Repository navigation
fix: name the drain and node restart in admission pauses - #283
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atpause_wake_seconds(15 min), right when the old node finished its 900 s drain abort and the new node sent its first sample.watch_pausequotes the current reason, so it showed the new node's warm-up.Changes
dispatch.rs): the drain reason is nownode draining for a restart (axe-node.service) since <time>. The unit comes from/proc/self/cgroup.admission.rs): a node's first CPU window readsnode restarting: cpu window warming up (N of 60 s). The status getsrestarting: truewhile that is the only cause. A hold, a drain, staleness or any other signal sets it back to false.watch_pause): a pause caused only by a restart does not start or continue a pause episode, so no bot wake fires.task showwaits with...; starts automatically once the node has a CPU window.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.tests/admission_dispatch.rs, plus a unit test fordrain_reasonandunit_of_cgroup.cargo test --locked, ts_bindings and doc links pass. The full release gate is also being run.🤖 Generated with Claude Code