Stopping and draining
Stopping applications and integrations, and waiting for queues to empty.
How long will the move really take? Estimate from rehearsals, not guesses, including the steps people forget to time.
Database migrations are usually booked into a fixed window, such as Saturday evening to Sunday afternoon. The estimate is often the time to copy the data, with a margin. On the night, the copy takes as long as expected, but rebuilding indexes, checking totals, repointing applications, and fixing a permission nobody remembered take the rest. The window overruns and Monday starts on the old system, or on a half-checked new one.
Stopping applications and integrations, and waiting for queues to empty.
The last backup, transfer, and restore, or the final sync.
Index rebuilds, statistics updates, consistency checks, and jobs re-created.
Row counts, totals, and business testing before anyone says go.
Connection strings, DNS, integrations, reports, and scheduled jobs.
How long it would take to go back, which must also fit in the window.
Step 1 of 4
Time every step on a copy of live data, on hardware like the target.
Allow for data added between the rehearsal and the real date.
More for steps that varied between rehearsals or depend on others.
The latest time you can still roll back within the window.
If the estimate doesn’t fit, change the approach rather than hoping. For example: copy most of the data in the week before and only sync the changes on the night, or move archive data separately beforehand. The window then only needs to cover what changed since the last sync.
Tell us what you’re moving, how big it is, and when. A few lines are enough.