Migrate from the console
The console’s Migration page runs every migration step for you. The cluster’s agent does the work inside your cluster, with its own service account, so nothing runs in your shell and no credentials leave your project. The console decides whether a step may run, shows what happened, and records it.
Owners, admins and operators run steps. Viewers see everything.
1. Set up once per cluster
Section titled “1. Set up once per cluster”The setup checklist shows:
- The cluster is healthy and the agent is connected and runs migration steps.
- Access in each Pub/Sub project. The commands that create the agent’s migration role (
lowtideMigration_<cluster>) and grant it, and that grant the gateway Pub/Sub Publisher for the mirror. Run them as someone who can change IAM in the project. Check access tests every permission, as the agent and as the gateway, and names anything missing. The Terraform module can grant the same withpubsub_migration_projectsandpubsub_mirror_projects(Permissions). - Assess each project. Run assessment runs it through the agent, or upload a
report.jsonyou made yourself (Assess a project). - Clients read the endpoint from configuration. Snippets for each language with the cluster’s endpoint.
A grant can take a minute or two to reach every Google service. If a check fails right after you granted access, wait a minute and check again.
The agent runs no steps if migration steps are turned off in the chart (agent.migration.enabled: false) or if it always hashes names (never_readable_names). The checklist says so.
2. Plan
Section titled “2. Plan”The Plan and Waves tabs list every topic from the assessments with its group (ready, stays on Pub/Sub, blocked), its Pub/Sub cost and its wave. Totals show how much Pub/Sub cost has moved, is moving, remains and stays.
Start a single topic, or a whole wave at once.
3. Move each topic
Section titled “3. Move each topic”Each topic has a page with its steps. For each step you see what it does, a button that runs it, the checks that must pass first, and how to undo it.
| Step | What the agent does | Unlocks when |
|---|---|---|
| Create the topic and its subscriptions in lowtide | Creates the topic, every subscription attached in Pub/Sub (push, BigQuery and Cloud Storage as pull) and the dead-letter topics, with the same names and settings. | Access is in place in the project. |
| Turn the mirror on | Checks that every subscription attached in Pub/Sub exists in lowtide, sets the mirror label, and waits until the mirror runs. Fails if it parks. | Resources are created. |
| Move the publishers | Nothing: you move them, then select Record now (or enter the time) when the last one moved. The console shows the live rate still published straight to Pub/Sub, and asks you to confirm if it is not zero. | The mirror runs. |
| Hand over each subscription | A preview shows the starting point and how many messages will arrive twice. You confirm, and the agent seeks the lowtide subscription and copies push or export settings. Ordered subscriptions ask you to confirm their Pub/Sub consumers are stopped. | Publishers are recorded as moved. The preview is at most 15 minutes old. |
| Finish each subscription | Checks that lowtide has consumers that keep up, sets the Pub/Sub subscription to never expire, and detaches it. | The subscription is handed over. |
| Turn the mirror off | Removes the label. | Every subscription is detached in Pub/Sub. |
Hand over subscriptions explains the starting point and the order to start and stop consumers.
Until a subscription is finished, each step has an undo with its own checks: delete the resources again (only while nothing was published to them), turn the mirror off before publishers moved, clear the publishers’ record, undo a hand-over (only before finish). See Roll back.
Pause a topic at any time. Queued forward steps are cancelled and new ones are refused. The mirror keeps running and nothing is lost. Undo steps still run. Resume when you are ready.
Each topic shows live data from the agent, refreshed after every step and about once a minute:
- the mirror’s state, lag and backlog,
- publish rates on lowtide and on Pub/Sub, and the rate still published straight to Pub/Sub,
- per subscription: Pub/Sub’s backlog and oldest unacknowledged message, and lowtide’s consumers and backlog.
The console raises alerts when:
- the last step failed,
- no live data arrived for 5 minutes,
- the mirror is parked, or its lag is over 60 seconds,
- the mirror was turned off outside the console while subscriptions are still attached in Pub/Sub,
- Pub/Sub still receives publishes after the publishers moved,
- messages were published to lowtide before the mirror was on,
- a new Pub/Sub subscription appeared that is not in lowtide,
- a detached subscription still delivers in Pub/Sub.
Activity and audit
Section titled “Activity and audit”Every step, with its log, is in the topic’s Activity, and in your organization’s audit log with who started it. A step that the agent doesn’t pick up within an hour fails.
Running steps yourself
Section titled “Running steps yourself”You can run the same steps with lowtide-migrate, gcloud and Terraform instead (CLI reference). The console shows the state it can see, but its plan and alerts are built for topics moved from the console.