Large Transaction Database Migration from Azure VM to Azure SQL MI With Almost Zero Down Time
Problem Statement- Migrate Large Database (>500 GB) from Azure VM to Azure SQL MI with in the following constraints & challenges
How did we achieve it-
Thorough Preparation:-
Simulate Dry Run:-
We replicated the exact scenario of database migration from same Azure VM to Azure SQL Managed Instance using a small database (26GB) with same schema.
Immaculate Planning for Each Activity,
The below image describe it well
Recommended by LinkedIn
Actual Migration:-
We were allotted 2 hours of down time during wee-hours on Sunday - Here is the list of activities with timeline
Post Successful Migration Challenges:-
Yes Indeed it was a very tight rope walk but all went well and it was as per planning despite of all perfect rehearsal, planning & execution , we faced a lot of complaints of reports “not downloading” the next day when load was high and it led to disruption in operations . So what was the reason
Finally we overcame the challenge after we changed the pricing tier to business critical which took 3 hours of time with our database size and our server cost went up 4x
Hoping our experience might help the folks whosoever want to do it in the near future.
Thanks Harshad, for articulating this project so Amazingly. Very insightful for customers targeting to migrate to SQL MI without impacting the production ongoing transactions and near to zero downtime.
Kudos Harshad Sanghani!!!, Insightful process. Keep sharing...
Thanks for sharing your experience. It will definitely help others while planning large SQL DB migration.
Khudos Harshad Sanghani....!!!!👍🏻
Great work by our Tech Team to migrate from Virtual Machine to a PaaS environment of SQL Azure Managed Instance. Many thanks to Team Microsoft and Subhasish G. to help us at every stage.