Seamless Data Migration with Cloud SQL and Database Migration Service

ADVANCED
200 minutes
5 tasks

In this lab, you will create a cost-effective and resilient migration setup to transfer a MySQL database from an on-premises environment to a managed Cloud SQL instance. You will use Google's Database Migration Service (DMS) to ensure minimal downtime during the cutover process. Additionally, you'll explore the use of high availability features of Cloud SQL and strategies for managing database scaling needs. The lab will also guide you on setting up a reverse replication channel back to an on-premises MySQL instance, crucial for contingency planning. This real-world use case helps prepare you to address scenarios of database migration with the added complexity of syncing changes, all while operating within budget constraints.

Scenario

You work for a retail company planning to migrate their critical inventory database from an on-premises server to Google Cloud to improve resilience and reduce maintenance overhead. The database must remain available with less than 5 minutes of downtime during migration. Post-migration, the system should support 2,000 concurrent read transactions and seamlessly integrate an order management application that remains on-premises. A fallback plan with reverse replication to the on-premises server is required for continuity.

Learning Objectives

  • Set up Cloud SQL instance for high availability.
  • Configure Database Migration Service for a smooth migration process.
  • Implement reverse replication back to the on-premises database.
  • Achieve resilience and scaling limits post-migration.

tasks (5)

task 1: Create a high-availability Cloud SQL instance.

30 min

task 2: Set up a database migration using Database Migration Service.

45 min

task 3: Implement a reverse replication to the on-premises database.

40 min

task 4: Optimize the Cloud SQL instance for performance and scaling.

35 min

task 5: Conduct failback testing to verify migration preparedness.

50 min

Prerequisites

  • Basic understanding of GCP and Cloud SQL concepts.
  • Familiarity with database migration strategies and challenges.

Skills Tested

Configuring high availability for Cloud SQL.Using Database Migration Service for seamless migration.Implementing reverse replication with Cloud SQL.Optimizing database instances for performance and scalability.
    Seamless Data Migration with Cloud SQL and Database Migration Service - Hands-On Lab - CertiPass