Repository navigation
#466 follow-up: idle-stop timer 10 min → 2 min - #555
Merged
Merged
Conversation
The 10-min idle tail was unjustified. The bin/obj build cache lives on the EBS root and survives stop/start, so a cold restart costs only the ~20s EC2 resume (measured), not build incrementality — paying up to 10 min of c6id compute to save ~20s on a maybe-follow-up is a bad trade. 2 min also matches the design doc's stated "Stop grace 0-2 min" (Q3); shipping 10 was implementation drift from the spec. The effective value is the systemd Environment in typhon-idle-stop.service; idle-stop.sh's fallback default and the max-uptime backstop comment are updated to match. The running box's deployed unit still reads 10 until re-applied on the next box-up (sed + daemon-reload). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013T5cmQoAMBMR74Txk6HRFX
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.
Shortens the persistent runner's idle self-stop from 10 min → 2 min.
Why
The 10-min idle tail bought almost nothing: the
bin/objbuild cache lives on the EBS root, which survives stop/start, so a cold restart only pays the ~20 s EC2 resume + runner reconnect (measured on the live box) — not build incrementality. Paying up to 10 min of c6id.8xlarge compute (~$0.31) to save ~20 s on a maybe-follow-up is a bad trade. Over an active month that idle tail is realistically $20–60.It also realigns with the design: the design doc's Q3 resolution already says "Stop grace 0–2 min" — shipping
10was implementation drift from the spec.Changes
typhon-idle-stop.service—Environment=IDLE_MINUTES=2(the effective value on the box).idle-stop.sh— fallback default${IDLE_MINUTES:-2}(kept consistent).terraform/variables.tf— corrected the backstop comment ("idle-stop fires at 2 min idle").The 120-min max-uptime EventBridge backstop is unchanged — still the orphan safety net.
The running box's deployed unit still reads
IDLE_MINUTES=10until re-applied. Next time the box is up (e.g. the next gate run), SSH in and:sudo sed -i 's/IDLE_MINUTES=10/IDLE_MINUTES=2/' /etc/systemd/system/typhon-idle-stop.service sudo systemctl daemon-reloadNo restart of the timer needed — the next minute-tick picks up the new value. (Merging this PR only updates the repo; it does not touch the box.)
🤖 Generated with Claude Code