Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

We migrated from AWS to GCP with minimal downtime

Описание и применение

Команда перенесла PostgreSQL из AWS в GCP с минимальным временем простоя, используя логическую репликацию и снимок для финального синхронизирования.

Задача

The team needed to move a production PostgreSQL database from AWS to GCP while keeping downtime to a minimum.

Результат

The migration completed with less than 2 minutes of downtime, maintaining the 5 % SLA and preserving all data and configurations.

Рабочий процесс

  • 1. Created a Cloud SQL PostgreSQL 12 instance with identical configuration to the AWS RDS instance.
  • 2. Enabled logical replication on the AWS RDS instance and set up a replication slot.
  • 3. Configured the Cloud SQL instance as a subscriber to the replication slot.
  • 4. Monitored replication lag and ensured it stayed below 1 s.
  • 5. Performed a final data sync by taking a snapshot of the AWS RDS instance and restoring it to Cloud SQL.
  • 6. Updated DNS and load balancer to point to the GCP instance.
  • 7. Decommissioned the AWS RDS instance after verifying application stability.

Доказательства

We migrated from AWS to GCP with minimal downtime

Источник

The database was hosted on Amazon RDS PostgreSQL 12.6, with a 1.5 TB data volume and a 30 GB WAL archive.

Источник

We performed a final data sync by taking a snapshot of the AWS RDS instance and restoring it to Cloud SQL.

Источник

  • Дата записи: 2026-10-17T04:56:02.782Z