Skip to content

docs(deploy): move an installation to another cloud - #130

Merged
reachjalil merged 1 commit into
pre-releasefrom
docs/move-installation-between-clouds
Nov 20, 2026
Merged

reachjalil merged 1 commit into
pre-releasefrom
docs/move-installation-between-clouds

Conversation

@reachjalil

Copy link
Copy Markdown
Member

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):

  • What moves with the database and what does not. The installation ID, keys (hashes), policies, pools, sandbox records and sealed provider credentials move with it. The secrets key and the bootstrap token move by hand, byte for byte. Sandboxes on your own backends cannot move.
  • Never run two control planes from copies of the same data. 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.
  • Two ways to end private sandboxes: drain them first by registering the target's OpenSandbox servers as pools on the source (using pool drain, not pool use, which also drains external pools), or cut over in one window.
  • The window: stop, pg_dump, pg_restore --no-owner --no-acl, keys, start, checks (a secret: pool that can't open its credential means the key differs), DNS.
  • Rollback before and after the target takes writes, and decommissioning.

It also links gcp-vms.md to the runbook and adds it to the deploy index.

What ran

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

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>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passed at dfd66cb.

@reachjalil
reachjalil merged commit ae600ff into pre-release Nov 20, 2026
22 checks passed
@reachjalil
reachjalil deleted the docs/move-installation-between-clouds branch November 20, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant