Database Migration Service ti consente di eseguire la migrazione dei dati a un'istanza Cloud SQL di destinazione,
quindi di configurare le repliche di lettura a cascata per quell'istanza.
Le repliche di lettura a cascata
ti consentono di creare una replica di lettura sotto una replica di lettura Cloud SQL nella stessa regione o in una diversa prima di promuovere l'istanza a principale. Puoi aggiungere fino a quattro livelli di repliche di lettura con struttura a cascata, inclusa l'istanza principale.
Configurare le repliche di lettura a cascata
Per eseguire la migrazione dei dati a una destinazione Cloud SQL che utilizza le repliche di lettura con struttura a cascata:
Attendi il completamento della fase di dump completo del job e l'ingresso del job di migrazione nella fase di rilevamento dei dati modificati (CDC). Il job di migrazione è nella fase di CDC quando la colonna Stato nella pagina Job di migrazione indica un sottostato CDC.
Una volta nella fase CDC, puoi configurare la replica di lettura a cascata. Per informazioni su come creare repliche di lettura a cascata per un'istanza Cloud SQL di destinazione, consulta Configurare una replica a cascata.
Puoi promuovere la replica Cloud SQL all'istanza principale utilizzando Database Migration Service.
Per informazioni sulla promozione di un'istanza di destinazione, consulta
Promuovere una migrazione.
Quando promuovi la replica Cloud SQL a un'istanza principale, la gerarchia delle repliche con struttura a cascata della replica viene conservata.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]