Repository navigation
ci(relay-staging): split the staging load across two hosted runners - #27402
Conversation
One hosted runner tops out near 2,048 connections to one cell (4 shards each stalled at 512 with control_open_timeout), short of the 2,840 the Asia flip-back test needs.
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to The new two-runner Asia hosted mode can fail half its generators before they create load, leaving the requested staging run incomplete. Reconcile token and workload shard indexing before merging. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
01fcda41-202f-4d7f-89c5-20522d414621
📒 Files selected for processing (1)
.github/workflows/cloud-prove-relay-asia-staging.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
| --shard-count "$((LOAD_SHARDS * LOAD_RUNNERS))" \ | ||
| --shard-index "$((LOAD_RUNNER_INDEX * LOAD_SHARDS + shard))" \ | ||
| "${args[@]}" \ | ||
| > "${load_dir}/shard-${shard}.jsonl" & |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
set -eu
printf '%s\n' '--- workflow invocation ---'
nl -ba .github/workflows/cloud-prove-relay-asia-staging.yml | sed -n '450,485p'
printf '%s\n' '--- generator option parsing and token flow ---'
nl -ba cloud/dev/scripts/relay-load-profile.mjs | sed -n '55,90p;145,210p;255,285p'
printf '%s\n' '--- token request validation ---'
nl -ba cloud/dev/scripts/github-smoke-token.mjs | sed -n '20,70p'
printf '%s\n' '--- related option/usages ---'
rg -n -F --glob '*.mjs' --glob '*.yml' -- '--relay-asia-load-principals' cloud .github
rg -n -F --glob '*.mjs' --glob '*.yml' -- 'relayAsiaLoad' cloud .githubRepository: stablyai/orca
Length of output: 15589
🏁 Script executed:
set -eu
nl -ba cloud/dev/scripts/load-relay-controls.mjs | sed -n '145,205p;375,405p'Repository: stablyai/orca
Length of output: 4247
Keep workload shard indexes separate from token shard indexes.
With load-runners=2 and load-shards=4, runner 1 receives indexes 4 through 7. load-relay-controls.mjs forwards each index in the relayAsiaLoad token request, but github-smoke-token.mjs rejects values above 3. Token acquisition runs before control-peer creation, so all four runner-1 generators can fail.
Keep the global workload indexes 4 through 7. Update the relay-load token contract or use a supported token-index mapping that stays within 0 through 3 without merging workload or principal allocations. Do not replace the workflow index with the local loop index or apply modulo without a contract that guarantees distinct principal allocation.
Summary
The staging load workflow can now run the same generator on two GitHub-hosted runners at once (
load-runners=2). Each runner runsload-shardsgenerators, and the shard numbering continues across the two machines, so the hosts and principals don't overlap.Why
The step-5 Asia test needs about 2,840 hosts on the Asia cell. One hosted runner stopped at 2,048: each of its 4 generator processes stalled at exactly 512 open connections, and every connection after that timed out while opening (run 38117848394,
control_open_timeout× 1,071 per shard). That looks like a per-machine outbound limit to a single destination, not a relay limit. Two machines get past it without changing the generator.load-runners=2is refused for the self-hosted Asia runner, because a second job there would just wait for the first. Withfail-fast: false, one runner failing doesn't stop the other runner's half of the load.Test plan
load-region=asia-east2-hosted,load-runners=2,load-shards=4, 355 controls per shard reaches 2,840 on c4