Skip to content

#466 follow-up: idle-stop timer 10 min → 2 min - #555

Merged
nockawa merged 1 commit into
mainfrom
fix/ci-idle-timer-2min
Jul 21, 2026
Merged

nockawa merged 1 commit into
mainfrom
fix/ci-idle-timer-2min

Conversation

@nockawa

@nockawa nockawa commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Shortens the persistent runner's idle self-stop from 10 min → 2 min.

Why

The 10-min idle tail bought almost nothing: the bin/obj build 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 10 was 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.

⚠️ Two-layer change — the live box needs a manual apply

The running box's deployed unit still reads IDLE_MINUTES=10 until 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-reload

No 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

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
@nockawa
nockawa merged commit 2664a6e into main Jul 21, 2026
12 checks passed
@nockawa
nockawa deleted the fix/ci-idle-timer-2min branch July 21, 2026 20:01
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