You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(relay-infra): turn on the relay's own Cloud SQL instance in production (step 4 G2) - #29572
This PR turns on the relay's own database server in production. Merging it changes nothing until someone runs the targeted Terraform apply below, and that apply needs Jinwoo's go (step G2).
What Changed
production.tfvars gets three lines:
relay_dedicated_database_enabled = true
edition ENTERPRISE
tier db-custom-4-15360, which is 4 vCPU and 15 GB, HA.
Enterprise Plus, the edition the design asked for, had no capacity in any us-central1 zone or shape when tried in staging on 10-16.
What users see: nothing. A new, empty instance doesn't touch the shared auth database, sign-in, or the relay, until the move tool writes the pointer at G4 and later.
The read-only plan on 10-16 showed 6 to add, 0 to change, 0 to destroy:
the instance;
the orca_relay database;
two users on the new instance;
two random passwords.
Nothing in that set touches orca-cloud-auth-db.
The secrets, IAM, the orca_relay_move login on the shared instance, and the move job's identity come later at G3. That's 21 more adds.
Why
These are the safety notes for running the apply:
A failed create leaves a FAILED instance whose name stays reserved for about a week. Don't delete it without first setting relay_dedicated_database_name to the next name.
Prod has no onorca-cloud-relay-control bucket that I can see. Terraform would try to create it at G3, and the cutover's pointer lives there. Settle that before G3.
Closing this public-repository configuration PR because #31792 (307f0cd) moved production Terraform and deployment operations into the private stablyai/orca-cloud repository.
I reviewed the complete five-line tfvars change and its G2 approval/apply instructions. cloud/infra/terraform/environments/production.tfvars no longer exists in current Orca main, and cloud/README.md explicitly assigns Terraform/backend/operator configuration to the private repository. Rebasing these enablement flags here would recreate retired public configuration rather than change the active production plan. Any remaining dedicated-database provisioning decision, Jinwoo approval, and targeted apply belong in the private operations repo. This closure does not claim the production instance was created or the G2 approval granted; neither is verified by this account.
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
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
This PR turns on the relay's own database server in production. Merging it changes nothing until someone runs the targeted Terraform apply below, and that apply needs Jinwoo's go (step G2).
What Changed
production.tfvarsgets three lines:relay_dedicated_database_enabled = trueENTERPRISEdb-custom-4-15360, which is 4 vCPU and 15 GB, HA.G2 create path
6 to add, 0 to change, 0 to destroy:orca_relaydatabase;orca-cloud-auth-db.orca_relay_movelogin on the shared instance, and the move job's identity come later at G3. That's 21 more adds.Why
These are the safety notes for running the apply:
relay_dedicated_database_nameto the next name.onorca-cloud-relay-controlbucket that I can see. Terraform would try to create it at G3, and the cutover's pointer lives there. Settle that before G3.Testing
terraform planagainst production state with-lock=false -refresh=false, plus a full staging rehearsal (see feat(relay-infra): the relay's own Cloud SQL instance and move-job identity (step 4, staging only) #29564).Review