A multinational retail enterprise is planning to migrate its core e-commerce database (a 40 TB PostgreSQL instance) and associated 300 TB object store from an on-premises data center to Google Cloud (Cloud SQL for PostgreSQL and Cloud Storage). The enterprise mandates continuous data synchronization prior to cutover to comply with a strict maximum allowed maintenance window of 30 minutes. What is the correct sequence of steps to plan and execute this zero-data-loss migration strategy?
- 1Establish a Cloud Interconnect with Private Google Access and configure Cloud Router BGP sessions to secure network connectivity.
- 2Perform a baseline data migration by running Storage Transfer Service for object storage and restoring a full database snapshot onto Cloud SQL for PostgreSQL.
- 3Configure Database Migration Service (DMS) with continuous replication (CDC) to stream ongoing transaction logs from the on-premises PostgreSQL source to Cloud SQL.
- 4Initiate the maintenance window, stop write traffic on the on-premises database, verify that replication lag reaches zero, and promote the Cloud SQL instance to primary.
- 5Reconfigure application connection strings to point to the new Cloud SQL primary endpoint, run health validation checks, and open traffic to end users.
Cevap
The correct execution sequence is: Establish hybrid network connectivity -> Perform baseline data and database snapshot transfer -> Configure continuous CDC via Database Migration Service -> Freeze on-premises writes, wait for zero replication lag, and promote target database -> Redirect application traffic to GCP endpoints and validate operational status.
A structured database migration designed for strict SLA maintenance windows must follow a logical dependency chain: 1) Secure network connectivity via Interconnect, 2) Bulk initial baseline transfer for large static storage and initial database snapshot, 3) Real-time CDC streaming via Database Migration Service to minimize divergence, 4) Controlled maintenance window freeze of source write operations, confirmation of zero replication lag, and promotion of target instance, and 5) Final application endpoint redirection and validation.
Adım Adım Çözüm
Anahtar Kavram
Minimal-downtime database and data migration using baseline snapshot transfer and continuous CDC replication via GCP Database Migration Service.