Repository navigation
docs(deploy): move an installation to another cloud - #130
Merged
Merged
Conversation
Adds a day-2 runbook for moving a running installation to new infrastructure, such as from the Azure VMs layout to Google Cloud VMs: what moves with the database (installation ID, keys, sealed provider credentials, sandbox records) and what must move by hand (the secrets key, the bootstrap token) or cannot move (sandboxes on your own backends). It states the rule the scheduler's reconciler imposes: never run two control planes from copies of the same data, because each deletes as orphans the sandboxes the other created on shared providers. It then gives two ways to end private sandboxes (drain them first through the source control plane, or cut over in one window), the window's steps (stop, pg_dump, pg_restore --no-owner --no-acl, keys, start, check, DNS), rollback before and after the target takes writes, and decommissioning. Documented, not run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jalil <reachjalil@gmail.com>
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.
What
A day-2 runbook, Move an installation to another cloud (
docs/deploy/day-2.md), for moving a running installation to new infrastructure, such as from the Azure VMs layout to the Google Cloud VMs layout (#129):reconcilePool(internal/scheduler/scheduler.go) deletes any backend instance that carries this installation's ID and has no live record. A restored database carries that ID, so two control planes sharing Freestyle or Daytona would delete each other's newer sandboxes. The page turns that into rules for the cutover, for rehearsing (server.replicas: 0) and for rollback.pool drain, notpool use, which also drains external pools), or cut over in one window.pg_dump,pg_restore --no-owner --no-acl, keys, start, checks (asecret:pool that can't open its credential means the key differs), DNS.It also links
gcp-vms.mdto the runbook and adds it to the deploy index.What ran
npm run buildinsite/passed (all internal links, anchors included, are valid).make verifypassed on the same Go code with docs(deploy): the Azure VMs layout on Google Cloud Compute Engine #129. This PR changes only docs and the changelog.What did not run
The procedure itself, end to end, from one cloud to another. Like the rest of
day-2.md, it says it has not been rehearsed on a live installation.🤖 Generated with Claude Code