A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/database-migration/docs/mysql/promote-migration below:

Promote a migration | Database Migration Service

Promote a migration

Stay organized with collections Save and categorize content based on your preferences.


Promotion means that the destination Cloud SQL instance is disconnected from the source, and is promoted from a replica instance to a primary instance.

For continuous migrations, you can initiate the promotion process after it's time to move reads and writes to the destination.

For one-time migrations, the Cloud SQL instance is ready as soon as the dump and load is complete, and user-invoked promotion isn't required.

To promote a migration without loss of information, follow these steps:

  1. Go to the Migration jobs page.
  2. Click the migration job that represents the migration that you want to promote. The Migration job details page appears.

  3. After the full dump phase has completed and the migration job is in CDC phase, the option for promotion is available.

  4. Immediately after transitioning to the CDC phase, depending on the size of the dump, there may be a long replication delay because the Cloud SQL destination instance catches up on changes that occurred during the dump and load.

    Wait for the replication delay to trend down significantly, ideally on the order of minutes or seconds. The replication delay is available for review on the migration job page.

  5. After the replication delay is at a minimum, you can initiate the promotion. To avoid data loss, make sure to:
    1. Stop all writes, running scripts, and client connections to the source database. The downtime period begins here.
    2. Wait until the replication delay is at zero, which means that the migration job has processed all outstanding changes.
    You can promote a migration even if the replication delay isn't at zero. This can reduce the database downtime, but may affect the accuracy of the data in the destination.
  6. In the Migration job details page, click Promote.
  7. In the Promote migration job? window, click Promote.
  8. The migration job stops reading from the source and the substatus is Promote in progress. At this point, you cannot stop or undo the promotion process.
  9. The destination instance is promoted to a primary writeable instance. The migration job status is Completed.
  10. The application can now be connected to the Cloud SQL instance and the migration job can be safely deleted.

The following behaviors can occur during a promotion:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Promotion disconnects the destination Cloud SQL instance from the source, transforming it from a replica to a primary instance."],["For continuous migrations, promotion should occur after shifting reads and writes to the destination, while one-time migrations are ready for use immediately after the dump and load process is complete."],["To prevent data loss, halt all writes to the source database and confirm the replication delay is at zero before initiating promotion."],["During promotion, the migration job ceases reading from the source, and once completed, the destination instance becomes the primary, writeable instance."],["Promoting failed or manually stopped migration jobs in the CDC phase can lead to data inconsistencies between the source and destination databases."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4