Repository navigation
fix(relay-load): reuse an Asia load principal set for shards past the fourth - #27403
Conversation
… fourth Staging auth mints principal sets for shards 0-3, so the second hosted runner's shards 4-7 were refused. Their hosts stay distinct by peer index; each set carries the same host count as the proven 4 x 710 run.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to Load shards beyond the fourth now reuse one of the four staging account sets, and each simulated host keeps a distinct identity. Runs with four or fewer shards behave as before. No merge-blocking risk is identified, although the staging run at 2,840 hosts has not yet been confirmed. Pre-merge checks |
|
Summary
With the load split across two hosted runners (#27402), the second runner's generators are shards 4–7. Staging auth only issues load accounts for shards 0–3, so those four refused to start ("Relay Asia load principal request is invalid", run 38119269024).
Now a shard past the fourth reuses account set
shard % 4. Its simulated hosts are still distinct, because each host's id comes from its own peer index, not from the account. With 8 shards × 355 hosts, each account set carries 710 hosts, the same as the proven 4 × 710 run. Nothing changes for 4 or fewer shards.Why this approach
The limit of four lives in the staging auth service, in another repository. Changing it there is a bigger and slower change for a test-only need. Reusing a set keeps the per-account load at the level already proven.
Test plan
node --teston the smoke-token and load tests (the one failure, relay-load-control-peer, is a missingtweetnaclinstall in my local tree and also happens on main)load-runners=2reaches 2,840 on c4