Repository navigation
feat(relay): declare Asia cell c31 at the c30 shape - #24310
Conversation
Claude-Session: ced32ebb-7155-4413-adad-1eccd14c2010
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
|
| connection_hard_cap = 3000 | ||
| connection_unobserved_bound = 60 | ||
| } | ||
| "production-gce-c31" = { |
There was a problem hiding this comment.
C31 blocks existing topology waves
Until C31 has been applied, it has no live template. The topology workflow passes the complete declared cell map to an image check that rejects any non-target cell without a live template. As a result, an operator trying to plan or re-run the still-allowed C30 wave hits an error before a validated plan is produced.
Knowledge Base Used: Cloud relay and notification services
| allCells: [ | ||
| 'production-gce-c27', 'production-gce-c28', 'production-gce-c29', 'production-gce-c30', | ||
| 'production-gce-c31' | ||
| ], |
There was a problem hiding this comment.
Four-cell rollback becomes unavailable
While C31 is declared but not yet registered, the previously accepted rollback of C27–C30 is rejected because the full Asia set now includes C31. Requesting all five cells also fails: rollback checks that each cell exists in the admission selector, and C31 does not yet exist there. Operators must roll back the registered cells in separate waves rather than one atomic operation.
Knowledge Base Used: Cloud relay and notification services
| export const SAME_CAP_MIGRATION_ONLY_CELLS = [ | ||
| 'production-gce-c17', 'production-gce-c18', 'production-gce-c31' | ||
| ] |
There was a problem hiding this comment.
Promoted C31 remains misclassified
This PR permits C31 to be promoted to general admission, but same-cap rolls still treat it as migration-only until a later code change. If an operator then starts a same-cap rollback, the job accepts C31’s live state and isolates the serving cell. It checks for the expected migration-only no-op only after isolation, so the job fails and its cleanup leaves C31 isolated, disrupting its hosts.
Knowledge Base Used: Cloud relay and notification services
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (23)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe production Asia configuration adds C31 in asia-east2-b as a separate topology wave. Admission and canary workflows support C31 registration and promotion, and same-cap and rehome checks include the cell. Tests and documentation reflect the new topology and its operational settings. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to C31 is declared as a separate Asia rollout wave with admission initially disabled and operator-controlled registration and promotion. No actionable merge-blocking issue is established; normal checks and the existing deployment-plan validation remain necessary. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change adds bounded production capacity using existing staged admission, cell-specific canary and recovery controls. No introduced security weakness was established, but live permissions and deployment outcomes remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 17 files. (6 skipped: 6 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

ELI5
Asia relay traffic is served by four machines that are nearly full. This adds a fifth machine of exactly the same size, so new Asia connections have somewhere to go. The machine is declared here; it starts empty and does not take any traffic until an operator registers and promotes it through the existing reviewed workflows.
What Changed
Before: the Asia region has four relay cells (C27, C28, C29, C30). Together they sit at about 99% of their admission ceiling, so the region is close to refusing new Asia hosts.
After: the code declares a fifth Asia cell, C31, at the same shape as C30: same machine type, 3,000-connection cap, 6,000 request units, database pool of 16. It is pinned to the relay image the director serves today. It goes in zone
asia-east2-b, so the five cells spread 2/2/1 across the three zones. Once an operator applies the topology and promotes it, Asia has five cells, one of them empty.Mechanism. Every Asia workflow refuses any cell it has not been told about by name. That is deliberate: it stops a typo or an unreviewed cell from being created, registered, or rolled. So adding a cell means listing it in each of these places:
production.tfvars). This declares the machine itself. C31 also joins the regional rehome source list, so hosts that land on it from the wrong region can be moved back off, just like the other Asia cells.asia-east2-b. The validator still rejects any plan that changes a live cell.Nothing else changes. No other cell, no US resource, and no SQL, DNS, or certificate is touched. The Cloud SQL connection budget test now counts five Asia pools at 16. The fleet still fits, with 55 connections unallocated under the usable ceiling.
Why
Raising the per-cell connection cap on the existing four cells would also add room. But a capacity change restarts the cell, and a restart drains every host on it. With the region at 99%, that drain has nowhere to go. A new cell adds room without disturbing anyone already connected.
Linked Issue
N/A, internal capacity work.
Visual Proof
N/A. This is infrastructure configuration and operator workflows only, with no UI change.
Testing
cloud/dev/scripts/*.test.mjswithnode --test: 796 of 797 pass. The one failure isrelay-load-control-peer.test.mjs, which this PR does not touch. It cannot loadtweetnaclbecause the lane worktree has no installed dependencies.asia-east2-b. Its canary is rejected if the load lands on C30. It rolls as a same-cap migration-only cell and cannot share a wave with general C30. C32 is still rejected everywhere.Review
Agent skill upstream boundary
Notes
Security: no credentials or identities change. Cross-platform, SSH, mobile: not applicable, since this is cloud infrastructure only. Backwards compatibility: every existing cell and wave is still accepted. Only the set of rollback and inspect inputs covering the whole region now includes C31.
Checklist
N/Afor visual proof with reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (cloud scripts are outside these; CI will cover)