Repository navigation
feat(relay): declare Asia cell c30 at the c27 shape - #22375
Merged
Merged
Conversation
Adds production-gce-c30 in asia-east2-a at the reviewed Asia shape (6,000 request units, 3,000/60 connection limits, 16-connection pool, disabled) and the rehome trust the other Asia cells carry. Every Asia enumeration now knows C30. The topology, admission, and director tools treat it as its own reviewed wave so its plan and registration never touch the live launch cells. C30 promotion requires C27 general and fresh staging evidence. The topology and director validators now pin the committed production pool of 16 instead of the stale 10, which had made the topology workflow reject the committed launch cells.
The shared URL map pulls every cell into the C30 topology plan, so the workflow now plans each non-target cell at the image its live template serves, and the validator names any change to a cell outside the wave. C30 promotion runs the same five-minute production canary and automatic rollback C27 used, with the load report proving the canary control was placed on C30, instead of relying on staging evidence. C30 leaves the shadow gate's fleet pool list until it serves, rollback rejects mixed partial sets, and a budget test pins the mixed-Asia-pool refusal.
C30 promotion requires the director and C30 to report one digest, so C30 takes the director's sha256:4158d8a2 (read 2026-09-22). C27-C29 keep their committed lines; every Asia check compares only the cells named in a run.
terraform console evaluates every output against state, and the Relay deployments output indexes each cell's MIG, so it fails with Invalid index while C30 is declared but not created. Read the map from a no-refresh, unlocked plan over the same targets instead, and refuse empty overlay input.
… promotion relay_gce_cell_deployments indexed each cell's MIG, backend, and template, so once C30 is declared but not applied every production terraform console reader printed a warning to stdout and broke its jq parse. Wrap those six lookups in try(..., null). Same-cap listed C30 as general, so a rollback dispatch on a migration-only C30 would restore it with activate and skip its canary. List it with the migration-only cells until the promotion follow-up moves it.
Jinwoo-H
marked this pull request as ready for review
September 23, 2026 03:41
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — first review of PR #22375 at b5db1a64fe (5 commits, base ebed0964). Declares a disabled production-gce-c30 at the C27 shape and threads it additively through the Asia topology, admission, same-cap, rehome-trust, and canary-evidence tooling. I read the complete diff and traced the topology plan-scoping, admission promotion gating, and C30 canary binding paths end to end; the new tests pass (node --test dev/scripts/*.test.mjs → 799 pass; the single failure is a pre-existing missing @orca-cloud/relay-contract build, not this PR).
- Declared cell —
production.tfvarsaddsproduction-gce-c30(asia-east2-a,e2-standard-4, 30 GB, 6000 requests, pool 16, director-pinned image, disabled) and lists it as a rehome source;outputs.tfwraps the six per-cell lookups intry()so console and plans tolerate a declared-but-uncreated cell. - Topology scoping — the new
relay-live-cell-image-overlay.mjsplans each non-target cell at the image its state template actually serves, andvalidate-relay-asia-topology-plan.mjsrejects any mutating change to a cell outside the wave. The launch trio and C30 are separate reviewed waves; a declared-but-uncreated non-target cell fails the overlay closed. - Admission waves —
operate-relay-asia-admission.mjsaccepts registration/promotion/rollback only as reviewed waves, requires C27–C29 general before promoting C30, and C30 takes no input evidence because its own canary is the proof with automatic rollback. - Canary proof —
load-relay-controls.mjsrecords the cells each control connected to, andrelay-asia-rollout-evidence.mjsnow binds the canary to its own cell's runtime metrics plus an exact placement-origin check. - Same-cap / rehome / budget — C30 joins the migration-only same-cap list and rehome-trust allow-list, the Asia pool pin moves to per-environment (16 production / 10 staging), and the connection budget stays within the usable ceiling (419/490).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This was referenced Sep 23, 2026
fix(cloud): compare the Asia topology budget gate against the measured 500-connection default
#22386
Merged
Jinwoo-H
added a commit
that referenced
this pull request
Sep 23, 2026
…omoted (#22439) C30 was promoted to general on 2026-09-23 (selector generation 286). The same-cap wave now rolls it as a general cell instead of handing it back isolated, and the shadow gate reads its pool beside C27-C29. Follow-up to #22375. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
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.

ELI5
Hong Kong has three relay servers (c27, c28, c29) for users in Asia, and they are close to full. This PR writes down a fourth one, c30, built exactly like the other three. It also teaches every script and workflow that lists the Asia servers about c30. Merging it creates nothing. Every production step comes later, as its own separately approved dispatch.
What Changed
Before: operators could not add a fourth Asia cell. Every Asia tool only accepted exactly C27, C28, and C29. The topology workflow would also have rejected the committed C27-C29 entries themselves. Its validators still expected the old database pool of 10, while the committed cells have run at 16 since #21163.
After:
production-gce-c30is declared, disabled, and every Asia tool accepts it as its own additive step. The C30 steps never change, register, or re-promote the live launch cells. C30 is promoted the same way C27 was: a five-minute production load test on C30 itself, with an automatic return to migration-only if it fails.The new cell entry copies c27 field for field. It uses
asia-east2,e2-standard-4, the same 30 GB boot disk and boot image, 6,000 request units, and a pool of 16 with the same comment. It pins the relay image the production director serves,initially_enabled = false, and 3,000/60 connection limits. C30 is also added to the regional rehome source list, like the other Asia cells. That setting is per cell and changes no other cell's template. C27-C29 keep their committed image lines, which this PR does not touch.Live digests, read on 2026-09-22 from production. Re-read both before the topology plan. If the director has moved, repin C30 again first.
sha256:4158d8a2e18e9caec439d257f0c1e45d92ffea8c0262f057b2f08c76a134bcf0sha256:17ac913b96bb55b9d2d3302ff178556e3e6e5fbc1d9a98283d0f6f345807d575sha256:5aedbca5c86de24c8b4d4bf7e3b444b76c712f281ede916cb9d90f70cad1e563C30 is pinned to the director digest because promotion requires the director and C30 to report the same digest. Every Asia check compares only the cells named in that run, so C30 on the director digest and C27-C29 on theirs pass side by side. Tests cover this for the topology input, the director cell list, and promotion. The topology plan does not use the committed C27-C29 images. It reads their served images from Terraform state at run time.
Zone:
asia-east2-a. No doc or resource says how to pick an Asia zone. Production cells rotate a, b, c by ordinal: c25 is c, c26 is a, and c27/c28/c29 are a/b/c. Continuing that rotation gives c30 zone a. It shares a zone with c27, which is unavoidable with four cells in three zones.How the topology plan stays limited to C30. The workflow targets C30's template, VM group, and backend, plus the shared routing map. The routing map points at every cell's backend, and Terraform plans everything a target depends on. So every live cell's backend, VM group, and template enters the plan. The committed image in tfvars trails what the same-cap rollouts actually deployed, so without help the plan would replace every live cell. The workflow now reads each non-target cell's deployed image out of its template in Terraform state. It plans that cell at the deployed image, which leaves it unchanged. The state read keeps only template startup scripts, so no secret value reaches disk or logs. The plan validator now names any change to a cell outside the wave and rejects it, including replacements and deletes.
How C30's canary proves C30. Placement sends a new host to the least-loaded general cell in its preferred region. An empty C30 beside three nearly full cells therefore receives the canary's control, because each run uses a fresh random host identity with no prior assignment. The load report now records every cell origin its controls connected to. C30's evidence must show exactly
https://c30.relay.onorca.dev, must read C30's own runtime metrics, and is bound to the selector generation the promotion produced. C27's evidence now carries the same placement check.Each enumeration site and the decision for it:
production.tfvarscell map and rehome source listvalidate-relay-asia-topology-plan.mjsandprepare-relay-asia-topology-input.mjscloud-deploy-relay-asia-topology.ymlproduction:production-gce-c30case. The plan and the post-apply readback both use the deployed-image overlay described above.relay-live-cell-image-overlay.mjs(new)prepare-relay-asia-director-cells.mjsoperate-relay-asia-admission.mjscloud-operate-relay-asia-admission.ymlrelay-asia-rollout-evidence.mjsandload-relay-controls.mjscloud-deploy-relay-production-same-cap-job.ymlcase listc30to the 3,000-cap / asia-east2 / pool 16 branch, so C30 can be rolled later like its siblings.relay-production-same-cap-wave.mjsprobe-relay-rehome-trust.mjsallow-listrelay-same-cap-shadow-gate-verdict.mjsfleet pool listoutputs.tfrelay_gce_cell_deploymentsterraform consolecall printed a warning into its output. That broke the director deploy, same-cap and capacity jobs until C30's topology apply. Now C30 reads with null VM group, backend and template fields until then.production-gce-c30as an example of an unknown cellproduction-gce-c31, and C30 was added to the matching accepted lists.relay-opsenvironment-config.test.tsincident-monitor.tsrelay-cloud-sql-connection-budget.test.mjscloud/docs/relay-workflows.md,cloud/infra/terraform/README.mdWhy
Why add one cell instead of raising the cap on the existing cells. How fast a cell can take back reconnecting hosts is a per-cell limit, so a bigger cap does not help a reconnect storm. The cap is also built into each cell's VM template. Raising it means rebuilding every Asia cell, which drains its hosts during the rebuild. A new cell at the already-reviewed shape reuses every existing proof. It adds 3,000 connections and 6,000 request units without touching a live cell.
Why C30 is its own wave instead of a new four-cell set. A four-cell plan would ask Terraform to create or re-review all four cells. With one wave per addition, C30's plan creates only C30's resources and one routing update, and every live cell must read as unchanged.
Why plan live cells at their deployed image instead of first correcting the committed images. A correction would be a separate reviewed change that has to track every same-cap rollout. The overlay reads the deployed truth at plan time, the same way the same-cap job already writes its target image into a runtime variable file. Any other drift still fails the plan, so the overlay cannot hide a real change.
Why C30 gets its own production canary instead of staging evidence. Staging evidence proves the image on a staging cell, not C30 under production traffic. C28 and C29 were promoted only after a production canary on C27, and C27 had an automatic rollback. C30 now gets the same bar: a real production load that lands on C30, C30's own metrics, generation binding, and an automatic return to migration-only on failure. It costs about six minutes.
Connection budget
The budget script is
node cloud/dev/scripts/relay-cloud-sql-connection-budget.mjs. The result stays within budget.What comes after merge
Nothing below runs from this PR. Each step is a separate production dispatch that needs its own explicit approval.
Deploy Relay Asia Topology, modeplan, production,cell-ids=production-gce-c30,imageset to the full C30 image in the file. This plan has not been run, because the live plan needs production credentials. Read itsPlan:line and the step summary before any apply. It should show three additions for C30 and one change to the shared routing map, and it lists every cell whose committed image differed from its deployed one. If any other cell changes, the validator fails the plan, and that cell must be rolled first.apply, withAPPLY_RELAY_ASIA_TOPOLOGY.Operate Relay Asia Admission, modeinspect, to read the live generation. Then moderegister,cell-ids=production-gce-c30, withREGISTER_ASIA_MIGRATION_ONLY. C30 becomes migration-only.configure,cell-ids=production-gce-c30, withCONFIGURE_ASIA_DIRECTOR, while regional rehome stays paused. This deploys a director whose cell list includes C30.promote,cell-ids=production-gce-c30, withPROMOTE_ASIA_GENERALand no evidence run. It promotes C30, runs the five-minute canary on it, and returns C30 to migration-only if the canary or its evidence fails.Side effect on sealed evidence: this PR edits files that the evidence-provenance check pins. Those are the same-cap job, the same-cap wave list, and the rehome trust probe. Sealed same-cap canary authority or monitor evidence from before the merge will no longer match. Merge between same-cap batches, and plan a fresh monitor dry-run before resuming regional rehome.
Linked Issue
None.
Visual Proof
N/A. This PR has no UI. It changes Terraform inputs, operator scripts, and workflows.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
node --test dev/scripts/*.test.mjsfromcloud/: 820 passed, 0 failed.pnpm --filter ./apps/relay-ops test: 12 files, 134 tests passed.pnpm typecheckandpnpm lintincloud/: clean.terraform fmt -check -recursiveincloud/infra/terraform: clean.actionlinton the three edited workflows reports only the existing unknown runner-label warning.The root
check:code-quality:changedgate skipscloud/by design, so it checked nothing here.The overlay tests render the real startup-script template, so a template change that moves the image lines fails them.
The workflow's state filter and the overlay command were run together on a synthetic state file that included a secret resource. The output held only template scripts, and only the drifted cell's image changed.
The workflow reads the committed cell list from a quick plan that skips refresh and takes no state lock, not from
terraform console. Without theoutputs.tfchange, console fails withInvalid indexwhile C30 is declared but not yet created, because it evaluates every output against current state. The lead found that failure against production state. A throwaway Terraform 1.15.8 config showed the same console failure, while the targeted plan succeeded and gave the cell list exactly as written.New tests cover live cells pulled into the C30 plan, which pass unchanged and fail on update, delete, or replacement. They also cover the C30 canary evidence and its placement check, the canary and rollback steps running for C30, the rollback wave sets, the rule that C30 promotion needs all launch cells general, and the mixed Asia pool refusal.
Not verified: a live C30 topology plan, which needs production credentials. The live digests above were read on 2026-09-22 and are not re-checked by this PR.
AI Disclosure
Written with Claude, an AI assistant, working from an operator's instructions. A separate AI review of the first revision found the plan scope and promotion gaps that the second commit fixes. A person reviews every production step before it is dispatched.
Review
The first revision was reviewed and returned as merge after fixes. This revision addresses these review findings:
The second review also returned merge after fixes. This revision addresses:
tryand clean output with it.terraform validatepasses.C30 is now pinned to the director's live digest.
Please look hardest at two policies:
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Nothing here affects desktop, mobile, SSH, or other platforms. Old and new clients are unaffected because no wire format changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)