Skip to content

Fleet: five types for pool depth, three job re-checks - #31

Merged
ruehowl merged 6 commits into
mainfrom
claude/nimbus-runners-perf-test-nmetg9
Oct 15, 2026
Merged

ruehowl merged 6 commits into
mainfrom
claude/nimbus-runners-perf-test-nmetg9

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #30. This follows up #29, which narrowed the fleet to m7a/m8a.

What the narrow pool did

orun-cloud's first full verify on the narrowed fleet (sourceplane/orun-cloud#1910, run 38720310195, 128 nimbus jobs) compared with the one before it on seven types (sourceplane/orun-cloud#1908, run 38689988708). Instance type and AZ are read from each job's runner banner:

7 types (#1908) m7a/m8a (#1910)
Instance types m7a 29, m7i-flex 26, m6i 18, m7i 15, m5 14, m6a 13, m5a 13 m7a 128, m8a 0
AZs 1b 45, 1a 41, 1d 24, 1f 18 1b 118, 1a 10
Queue, p50 / p90 / max 82–94 s / 114 s / 287 s 82 s / 244 s / 906 s
Jobs waiting > 2 min / > 4 min 5 / 4 32 / 18

The jobs themselves got faster: −22% runner-minutes, partly from the CI changes in #1910. Waiting for a runner gave much of that back. The longest job (the critical path) waited 4.6 minutes for a runner, and one job had none for 15 minutes (#30).

Change

  • instance_types adds back m7i-flex.large, m7i.large (1.08× m7a's time) and m6a.large (1.16×). m6i, m5 and m5a (1.21–1.61×) stay out. price-capacity-optimized keeps choosing among them by price and depth.
  • job_retry.max_attempts goes from 1 to 3. The module backs off 2× from 120 s, giving re-checks at about +120 s, +240 s and +480 s.
    • Each re-check first asks GitHub whether the job is still queued, so a job that already has a runner costs one API call.
    • The first delay is unchanged, so a booting runner still never gets a duplicate.
  • The README and the baseline design are updated to match.

Verification

  • plan-only on this PR. The apply runs on merge to main.
  • The next orun-cloud full verify will show the instance mix and the queue times. I'll post them here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws


Generated by Claude Code

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
The runners were seven 2 vCPU / 8 GiB types picked by price-capacity-
optimized. Only m7a gives "2 vCPU" as two cores; the Intel types and
m5a/m6a give one core and its hyperthread. On 958 runs of 116
orun-cloud jobs (2026-10-08 to 10-14), the same job took 1.08x as long
on m7i/m7i-flex, 1.16x on m6a, 1.21x on m6i, 1.27x on m5 and 1.61x on
m5a as on m7a, and a third of all jobs landed on m5 or m5a. At current
us-east-1 spot prices the cost per job is the same on m7a as on the old
mix (sourceplane/orun-cloud#1908).

The list is now m7a.large and m8a.large across the same five AZs, with
the on-demand failover unchanged. runners_maximum_count stays at 100:
the spot vCPU quota (L-34B43A08) is 200, so a larger cap needs that
quota raised first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws
On m7a/m8a only, a 128-job orun-cloud verify got m7a in two AZs (118 in
us-east-1b, no m8a) and 32 jobs waited over 2 minutes for a runner, against
5 on the seven-type pool; one job got no runner for 15 minutes. Add back
m7i-flex, m7i (1.08x m7a's time) and m6a (1.16x); m6i, m5 and m5a
(1.21-1.61x) stay out. job_retry gets three attempts instead of one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws
@ruehowl
ruehowl marked this pull request as ready for review October 15, 2026 10:54
@ruehowl
ruehowl merged commit 0d9cfe6 into main Oct 15, 2026
4 checks passed
ruehowl pushed a commit that referenced this pull request Oct 15, 2026
#31 added m7i-flex, m7i and m6a for spot depth. On the next 129-job
orun-cloud verify price-capacity-optimized put no job on m7a or m8a
(m7i-flex 48, m6a 46, m7i 31), and the waits were unchanged: 34 jobs over
2 minutes against 32 on m7a alone. Both runs peaked at 95-96 busy runners
with a second wave ~2.5 minutes later: the waits are runners_maximum_count
(129 jobs, 100 runners), which orun-cloud's lanes take below. The three
job re-checks from #31 stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws
ruehowl added a commit that referenced this pull request Oct 15, 2026
* NR4: the 128-lane burst after the Lambda quota went to 1,500

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

* NR4: one scale-up pass for a whole burst — batches of 10, a 120 s timeout

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

* Fleet on two physical cores: m7a.large and m8a.large

The runners were seven 2 vCPU / 8 GiB types picked by price-capacity-
optimized. Only m7a gives "2 vCPU" as two cores; the Intel types and
m5a/m6a give one core and its hyperthread. On 958 runs of 116
orun-cloud jobs (2026-10-08 to 10-14), the same job took 1.08x as long
on m7i/m7i-flex, 1.16x on m6a, 1.21x on m6i, 1.27x on m5 and 1.61x on
m5a as on m7a, and a third of all jobs landed on m5 or m5a. At current
us-east-1 spot prices the cost per job is the same on m7a as on the old
mix (sourceplane/orun-cloud#1908).

The list is now m7a.large and m8a.large across the same five AZs, with
the on-demand failover unchanged. runners_maximum_count stays at 100:
the spot vCPU quota (L-34B43A08) is 200, so a larger cap needs that
quota raised first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws

* Fleet: five types for pool depth, three job re-checks (#30)

On m7a/m8a only, a 128-job orun-cloud verify got m7a in two AZs (118 in
us-east-1b, no m8a) and 32 jobs waited over 2 minutes for a runner, against
5 on the seven-type pool; one job got no runner for 15 minutes. Add back
m7i-flex, m7i (1.08x m7a's time) and m6a (1.16x); m6i, m5 and m5a
(1.21-1.61x) stay out. job_retry gets three attempts instead of one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws

* Fleet: back to m7a/m8a; the runner waits are the cap, not the pool (#30)

#31 added m7i-flex, m7i and m6a for spot depth. On the next 129-job
orun-cloud verify price-capacity-optimized put no job on m7a or m8a
(m7i-flex 48, m6a 46, m7i 31), and the waits were unchanged: 34 jobs over
2 minutes against 32 on m7a alone. Both runs peaked at 95-96 busy runners
with a second wave ~2.5 minutes later: the waits are runners_maximum_count
(129 jobs, 100 runners), which orun-cloud's lanes take below. The three
job re-checks from #31 stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLimCmjynaJv5BjifMSfws

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

A queued job got no runner for 15 minutes in a 131-job burst; one job retry does not cover it

2 participants