Skip to content

Fleet on two physical cores: m7a.large and m8a.large - #29

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

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

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

What changes

instance_types goes from seven 2 vCPU / 8 GiB types to two: m7a.large and m8a.large. Everything else is unchanged:

  • the five AZs;
  • price-capacity-optimized;
  • the on-demand failover on InsufficientInstanceCapacity.

The README and the design table follow.

Why

Only AMD's 7th and 8th generations give "2 vCPU" as two physical cores. The Intel types and m5a/m6a give one core and its hyperthread.

On orun-cloud's own jobs, 958 runs of 116 jobs from 2026-10-08 to 10-14, fitted per job and instance type, the same job took this long against m7a:

Type Time vs m7a Spot $/h now Spot cost per job
m7a.large 1.00× 0.048 1.00
m7i-flex.large / m7i.large 1.08× 0.0446 / 0.0449 1.00 / 1.01
m6a.large 1.16× 0.0357 0.86
m6i.large 1.21× 0.0425 1.07
m5.large 1.27× 0.0434 1.15
m5a.large 1.61× 0.0429 1.44

price-capacity-optimized put a third of all jobs on m5 or m5a. The heavy jobs, test suites and tsc sweeps, gain the most from a real second core: 1.5–2× between one and two pinned cores. The full analysis is in sourceplane/orun-cloud#1908.

Not in this PR

runners_maximum_count stays at 100. The spot vCPU quota L-34B43A08 is 200, which is 100 runners. A full verify of 128 jobs queues its last ~28, so the cap can go to 140 once that quota is raised to 280 or more.

Verification

  • This PR's plan job shows the launch-template and fleet changes.
  • After merge, main applies them, and the next orun-cloud jobs' "Instance type" lines should read m7a or m8a.

🤖 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
@ruehowl
ruehowl marked this pull request as ready for review October 15, 2026 10:17
@ruehowl
ruehowl merged commit 0f6a693 into main Oct 15, 2026
4 checks passed
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.

2 participants