Roll back, costs and failures
Roll back
Section titled “Roll back”Until you finish a subscription, everything is configuration.
| Where you are | To roll back |
|---|---|
| Resources created, mirror off | Delete the topic and its subscriptions in lowtide. Nothing in Pub/Sub changes. |
| Mirror on, publishers not moved | Turn the mirror off. Nothing is published to lowtide yet, so nothing changes for anyone. |
| Publishers moved | Move the publishers back to Pub/Sub. While the mirror was on, every Pub/Sub subscription received everything, so subscriptions not yet handed over just continue. |
| A subscription handed over | Let its lowtide consumers drain the lowtide subscription, then move them back to Pub/Sub, which kept every message. The console has an undo step for the hand-over. |
| A subscription finished (detached) | Not reversible. Create a new Pub/Sub subscription. With Cloud IAM authorization, keep the detached one: it holds the IAM policy. |
The console offers the undo for each step and checks it first: for example, it won’t delete resources that have consumers or messages published to them.
Costs while moving
Section titled “Costs while moving”On Pub/Sub you pay for the mirrored messages’ publish, and for delivery to the subscriptions not yet handed over. That is never more than before the move: publishing to Pub/Sub and delivering to every subscription is what the topic cost before. Each finished subscription stops its delivery cost. Turning the mirror off stops the publish cost.
Shadow subscriptions of subscriptions that exist only in lowtide are attached to the topic, but they are pull subscriptions nobody pulls. Mirrored messages pass through them without delivery charges and expire after 10 minutes, before Pub/Sub’s one-day threshold for charging for unacknowledged messages.
Detaching a finished subscription is cheaper than leaving it attached without its push or export settings: Pub/Sub would charge for storing its unacknowledged messages beyond a day.
On lowtide’s side, mirroring is not billed.
Failures during a migration
Section titled “Failures during a migration”| Failure | What happens |
|---|---|
| lowtide is down | Publishers that moved can’t publish, as with any lowtide outage, so nothing reaches Pub/Sub either. Consumers on Pub/Sub stall but lose nothing. When lowtide is back, the mirror forwards everything it had accepted. |
| Pub/Sub unreachable, throttling, server errors | The mirror retries. Lag grows; nothing is dropped, up to 7 days. |
| Pub/Sub topic missing, or publishing denied | The mirror parks and resumes by itself once the topic exists or the grant is there (Errors and parking). |
| Pods join or leave | A mirror batch in flight can be published twice. The origin attributes identify duplicates. |
Several projects
Section titled “Several projects”The mirror publishes to the topic’s own project, so the gateway needs Pub/Sub Publisher in every project with mirrored topics (pubsub_mirror_projects). A subscription can be in another project than its topic, as in Pub/Sub. lowtide serves it, its shadow is created in its own project, and the mirror reaches it through the topic. The hand-over and finish use the subscription’s own project for Cloud Monitoring and the detach.