Mit Database Migration Service können Sie Daten in eine Cloud SQL-Zielinstanz migrieren und dann kaskadierende Lesereplikate für diese Instanz einrichten.
Mit kaskadierenden Lesereplikaten können Sie ein Lesereplikat unter einem Cloud SQL-Lesereplikat in derselben oder einer anderen Region erstellen, bevor Sie Ihre Instanz zur primären Instanz machen. Sie können bis zu vier Ebenen mit kaskadierenden Lesereplikaten hinzufügen, einschließlich der primären Instanz.
Kaskadierende Lesereplikate einrichten
So migrieren Sie Ihre Daten in ein Cloud SQL-Ziel, das abfolgebasierte Leserepliken verwendet:
Richten Sie den Migrationsjob ein und starten Sie ihn. Weitere Informationen finden Sie unter Migrationsjob erstellen.
Warten Sie, bis die Phase des vollständigen Dumps des Jobs abgeschlossen ist und der Migrationsjob in die Phase der Erfassung von Änderungsdaten (CDC) eintritt. Ihr Migrationsjob befindet sich in der CDC-Phase, wenn in der Spalte Status auf der Seite Migrationsjobs ein CDC-Unterstatus angezeigt wird.
Sobald Sie sich in der CDC-Phase befinden, können Sie das kaskadierende Lesereplikat einrichten. Informationen zum Erstellen kaskadierter Lesereplikate für eine Cloud SQL-Zielinstanze finden Sie unter Kaskadierendes Replikat einrichten.
Mit dem Database Migration Service können Sie Ihr Cloud SQL-Replikat zur primären Instanz befördern.
Informationen zum Hochstufen einer Zielinstanz finden Sie unter Migration hochstufen.
Wenn Sie das Cloud SQL-Replikat zu einer primären Instanz hochstufen, wird die kaskadierende Replikathierarchie des Replikats beibehalten.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[[["\u003cp\u003eDatabase Migration Service enables the migration of data to a Cloud SQL destination instance, followed by the setup of cascading read replicas.\u003c/p\u003e\n"],["\u003cp\u003eCascading read replicas can be created under a Cloud SQL read replica, within the same or a different region, allowing up to four levels of replication.\u003c/p\u003e\n"],["\u003cp\u003eAfter a migration job enters the Change Data Capture (CDC) phase, you can configure cascading read replicas.\u003c/p\u003e\n"],["\u003cp\u003eCloud SQL replicas can be promoted to primary instances using Database Migration Service, while preserving the existing cascading replica hierarchy.\u003c/p\u003e\n"]]],[],null,["# Set up cascading read replicas for a Cloud SQL destination instance\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n[MySQL](/database-migration/docs/mysql/set-up-cascading-replica \"View this page for the MySQL version of Database Migration Service.\") \\| PostgreSQL \\| PostgreSQL to AlloyDB\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nOverview\n--------\n\nDatabase Migration Service lets you migrate data to a Cloud SQL destination instance,\nand then set up cascading read replicas for that instance.\n\n[Cascading read replicas](/sql/docs/postgres/replication#cascading-replicas)\nlet you create a read replica under a Cloud SQL read replica in the same or\ndifferent region before promoting your instance to primary. You can add up to four\nlevels of cascading read replicas, including the primary instance.\n\nSet up cascading read replicas\n------------------------------\n\nTo migrate your data to a Cloud SQL destination that is using cascading read\nreplicas:\n\n1. Set up and start your migration job. For more information, see\n [Create a migration job](/database-migration/docs/postgres/create-migration-job).\n\n2. Wait until the full dump phase of the job completes and the migration job\n enters the change data capture (CDC) phase. Your migration job is in the CDC\n phase when the **Status** column in the **Migration jobs** page indicates a *CDC*\n substatus.\n\n3. Once in the CDC phase, you can set up your cascading read replica. For\n information about how to create cascading read replicas for a Cloud SQL destination\n instance, see [Set up a cascading replica](/sql/docs/postgres/replication/configure-replication-from-external#set_up_a_cascading_replica).\n\n4. You can promote your Cloud SQL replica to primary instance using Database Migration Service.\n For information about promoting a destination instance, see\n [Promote a migration](/database-migration/docs/postgres/promote-migration).\n\nWhen you promote the Cloud SQL replica to a primary instance, the replica's cascading\nreplica hierarchy is retained."]]