Repository navigation
NR4: one scale-up pass for a whole burst — batches of 10, a 120 s timeout - #26
Merged
Merged
Conversation
The quota stopped lanes being lost: 128 of 128 got a runner, against 105 of 128 at the old quota of 10. The burst still arrives in waves: the first scale-up pass launched 61, the rest came with the job_retry re-check about four minutes in and over the next 13 minutes, with the fleet never past 68 busy runners. Records the measurements, what to look for in the scale-up logs, and the lanes workaround. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws
…eout A 128-lane burst got 41–61 runners at once and the rest over 17 minutes, with the fleet never past 68 busy runners (#27). The scale-up lambda works through its batch one message at a time — the queued check, CreateFleet, then a GitHub JIT config and an SSM write per runner — and at the fleet's batch of 20 it outran the module's 30 s timeout. A timed-out batch has already launched its instances but configured only some: the rest never register, yet count against runners_maximum_count until scale-down reaps them after runner_boot_time, and the batch's messages come back to a full cap. A JIT failure inside a batch that finishes is cleaned up (terminate, retry); a timeout is not. The batch goes back to the module's 10 and the timeout to 120 s (the build queue's visibility timeout follows it). job_retry stays at 120 s: a re-check shorter than a runner's ~70 s boot finds the job still queued and launches a second runner for it, so the stopgap the status file suggested is withdrawn. Fixes #27. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws
ruehowl
marked this pull request as ready for review
October 14, 2026 10:19
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.
Fixes #27.
The problem. With the Lambda concurrency at 1,500, every lane of a burst gets a runner, but in waves. A 128-lane full verify on sourceplane/orun-cloud#1869:
The cause (module v7.11.0 source,
scale-up.ts,github-runner.ts,runner-config.ts):runners_maximum_countuntil scale-down reaps them afterrunner_boot_time(4 min). The batch's messages come back after the 30 s visibility timeout to a cap full of unconfigured instances.The change (
infra/fleet/terraform/runners.tf):lambda_event_source_mapping_batch_size20 → 10, the module's default.runners_scale_up_lambda_timeout30 → 120 s; the build queue's visibility timeout follows it.job_retrystays at 120 s. A re-check shorter than a runner's ~70 s boot finds the job still queued and launches a second runner, so the stopgap the status file suggested earlier is withdrawn.IMPLEMENTATION-STATUS.mdrecords the measurements, the cause and the fix.Verification.
plan, with no wave four minutes later.🤖 Generated with Claude Code
https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws