Interview Prep/Linux/Migrations, performance and fleet operations

You need to move a service from one data centre to the cloud with a database that can't have long downtime. Outline the Linux side.

AdvancedScenarioMigrations, performance and fleet operations
Answer

Situation read → Replicate the data continuously and switch over at the end.

What I'd do →

  1. Build cloud hosts from code; set up VPN or Direct Connect.
  2. Set up DB replication from the DC primary to a cloud replica (native streaming replication or AWS DMS).
  3. Sync static files with repeated rsync or lsyncd.
  4. Lower DNS TTL; run read traffic tests against the cloud.
  5. Cutover: stop writes, wait for replica lag to reach 0, promote the cloud replica, switch DNS, start apps.
  6. Keep reverse replication or the old primary as a rollback path.

Why → Downtime becomes the time to promote and switch DNS, not the time to copy data.

Interview tip → Mention verifying replica lag and checksums before promoting.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations