Simulate region-down disaster recovery drills with stopped servers

Published Mar 21 2022 09:20 AM 1,093 Views
Microsoft

Overview

Do you have a data disaster recovery plan for your Azure Database for MySQL server workloads? Have you conducted a disaster recovery drill to make sure your disaster recovery plan is effective?

 

Whether it's a natural disaster shutting down all the power in a region and its data centers or an occasional regional outage, it's of utmost importance to be prepared for the possibility of an emergency or crisis.

 

Just as a cricket team would never head into their matches without first practicing, your first responders can’t be expected to manage critical failures in an emergency situation without stepping through a simulation or plan ahead of time. While a disaster recovery drill can never completely recreate the scenario, simulating drills will help ensure that those on the front lines understand their responsibilities and how to get the critical systems up and running with minimal downtime.

 

Geo-restore and drill simulation

Geo-restore allows you to recover from a geographic disaster when you cannot access your database or backups in the primary region. It creates a new database on any existing server or managed instance, in any Azure region. Geo-restore is available for an Azure Database for MySQL server for which Geo-redundancy is enabled (Compute+Storage setting).

 

lrstogrs-2.png

 

To simulate a region-down scenario, stop the designated geo-redundant server test workload.

 

stop-server.png

 

 

Now, you can try geo-restoring a stopped server to the most recent backup available. This will help you estimate recovery time and impact for your test Azure Database for MySQL server workloads in case of a regional outage, preparing your first responders with a line of action to go through on D-day.

 

To perform the geo-restore, in the Azure CLI, run the following command:

az mysql flexible-server geo-restore \
--source-server --location [--name] [--no-wait] [--resource-group] [--subscription]

 

For example, let's geo-restore as server named 'mydemoserver' in the East US region to a new server named 'mydemoserver-restored' in the geo-paired West US region with the same network setting. To accomplish this, run the following command:

 
az mysql flexible-server geo-restore \
--source-server mydemoserver \
--location "West US" \ --name mydemoserver-restored \ --resource-group myresourcegroup

 

Summary

Enabling geo-redundancy enables you to recover from a geographic disaster or regional failure when your users can’t access the server in the primary region. With this feature enabled, you can perform geo-restore and deploy a new server to the geo-paired Azure region leveraging the original server’s latest available geo-redundant backup. Azure Database for MySQL now provides you with the ability to simulate region-down scenarios so that you can make an informed choice about whether to leverage the benefits of geo-redundancy and geo-restore for your flexible server workloads.

 

If you have any feedback or questions about the information provided above, please leave a comment below or email us at AskAzureDBforMySQL@service.microsoft.com. Thank you!

%3CLINGO-SUB%20id%3D%22lingo-sub-3262699%22%20slang%3D%22en-US%22%3ESimulate%20region-down%20disaster%20recovery%20drills%20with%20stopped%20servers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3262699%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EOverview%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20a%20data%20disaster%20recovery%20plan%20for%20your%20Azure%20Database%20for%20MySQL%20server%20workloads%3F%26nbsp%3BHave%20you%20conducted%20a%20disaster%20recovery%20drill%20to%20make%20sure%20your%20disaster%20recovery%20plan%20is%20effective%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhether%20it's%20a%20natural%20disaster%20shutting%20down%20all%20the%20power%20in%20a%20region%20and%20its%20data%20centers%20or%20an%20occasional%20regional%20outage%2C%20it's%20of%20utmost%20importance%20to%20be%20prepared%20for%20the%20possibility%20of%20an%20emergency%20or%20crisis.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EJust%20as%20a%20cricket%20team%20would%20never%20head%20into%20their%20matches%20without%20first%20practicing%2C%20your%20first%20responders%20can%E2%80%99t%20be%20expected%20to%20manage%20critical%20failures%20in%20an%20emergency%20situation%20without%20stepping%20through%20a%20simulation%20or%20plan%20ahead%20of%20time.%20While%20a%20disaster%20recovery%20drill%20can%20never%20completely%20recreate%20the%20scenario%2C%20simulating%20drills%20will%20help%20ensure%20that%20those%20on%20the%20front%20lines%20understand%20their%20responsibilities%20and%20how%20to%20get%20the%20critical%20systems%20up%20and%20running%20with%20minimal%20downtime.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EGeo-restore%20and%20drill%20simulation%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EGeo-restore%20allows%20you%20to%20recover%20from%20a%20geographic%20disaster%20when%20you%20cannot%20access%20your%20database%20or%20backups%20in%20the%20primary%20region.%20It%20creates%20a%20new%20database%20on%20any%20existing%20server%20or%20managed%20instance%2C%20in%20any%20Azure%20region.%20Geo-restore%20is%20available%20for%20an%20Azure%20Database%20for%20MySQL%20server%20for%20which%20Geo-redundancy%20is%20enabled%20(Compute%2BStorage%20setting).%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22lrstogrs-2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357667iB725833E37085596%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lrstogrs-2.png%22%20alt%3D%22lrstogrs-2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20simulate%20a%20region-down%20scenario%2C%20stop%20the%20designated%20geo-redundant%20server%20test%20workload.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22stop-server.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357668i93F029BCC1FF4CA0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stop-server.png%22%20alt%3D%22stop-server.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%2C%20you%20can%20try%20geo-restoring%20a%20stopped%20server%20to%20the%20most%20recent%20backup%20available.%20This%20will%20help%20you%20estimate%20recovery%20time%20and%20impact%20for%20your%20test%20Azure%20Database%20for%20MySQL%20server%20workloads%20in%20case%20of%20a%20regional%20outage%2C%20preparing%20your%20first%20responders%20with%20a%20line%20of%20action%20to%20go%20through%20on%20D-day.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20perform%20the%20geo-restore%2C%20in%20the%20Azure%20CLI%2C%20run%20the%20following%20command%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22has-inner-focus%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22lang-azurecli%22%20data-author-content%3D%22az%20mysql%20flexible-server%20geo-restore%20--source-server%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20--location%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B--name%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B--no-wait%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B--resource-group%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B--subscription%5D%0A%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eaz%20mysql%20flexible-server%20geo-restore%20%5C%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E--source-server%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E--location%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E%5B--name%5D%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E%5B--no-wait%5D%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E%5B--resource-group%5D%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E%5B--subscription%5D%3C%2FSPAN%3E%0A%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20let's%20geo-restore%20as%20server%20named%20'mydemoserver'%20in%20the%26nbsp%3BEast%20US%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Bregion%20to%20a%20new%20server%20named%20'mydemoserver-restored'%20in%20the%20geo-paired%26nbsp%3B%3C%2FSPAN%3EWest%20US%20region%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ewith%20the%20same%20network%20setting.%20To%20accomplish%20this%2C%20run%20the%20following%20command%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22code-try-6%22%20class%3D%22codeHeader%22%20data-bi-name%3D%22code-header%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CPRE%20class%3D%22has-inner-focus%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22lang-azurecli%22%20data-author-content%3D%22az%20mysql%20flexible-server%20geo-restore%20%5C%0A--name%20mydemoserver-restored%20%5C%0A--resource-group%20myresourcegroup%20%5C%0A--location%20%26quot%3BWest%20US%26quot%3B%20%5C%0A--source-server%20mydemoserver%0A%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eaz%20mysql%20flexible-server%20geo-restore%20%3C%2FSPAN%3E%5C%3CBR%20%2F%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E--source-server%3C%2FSPAN%3E%20mydemoserver%20%5C%3CBR%20%2F%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E--location%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22West%20US%22%3C%2FSPAN%3E%20%5C%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E--name%3C%2FSPAN%3E%20mydemoserver%3CSPAN%20class%3D%22hljs-parameter%22%3E-restored%3C%2FSPAN%3E%20%5C%0A%3CSPAN%20class%3D%22hljs-parameter%22%3E--resource-group%3C%2FSPAN%3E%20myresourcegroup%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EEnabling%20geo-redundancy%20enables%20you%20to%20recover%20from%20a%20geographic%20disaster%20or%20regional%20failure%20when%20your%20users%20can%E2%80%99t%20access%20the%20server%20in%20the%20primary%20region.%20With%20this%20feature%20enabled%2C%20you%20can%20perform%20geo-restore%20and%20deploy%20a%20new%20server%20to%20the%20geo-paired%20Azure%20region%20leveraging%20the%20original%20server%E2%80%99s%20latest%20available%20geo-redundant%20backup.%20Azure%20Database%20for%20MySQL%20now%20provides%20you%20with%20the%20ability%20to%20simulate%20region-down%20scenarios%20so%20that%20you%20can%20make%20an%20informed%20choice%20about%20whether%20to%20leverage%20the%20benefits%20of%20geo-redundancy%20and%20geo-restore%20for%20your%20flexible%20server%20workloads.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20any%20feedback%20or%20questions%20about%20the%20information%20provided%20above%2C%20please%20leave%20a%20comment%20below%20or%20email%20us%20at%20%3CSPAN%3E%3CA%20href%3D%22mailto%3AAskAzureDBforMySQL%40service.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAskAzureDBforMySQL%40service.microsoft.com%3C%2FA%3E%3C%2FSPAN%3E.%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3262699%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22laptop-with-cybersecurity-graphic-sm.jpg%22%20style%3D%22width%3A%20600px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357309i9FA1E280A553CEF0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22laptop-with-cybersecurity-graphic-sm.jpg%22%20alt%3D%22laptop-with-cybersecurity-graphic-sm.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EJust%20as%20a%20cricket%20team%20would%20never%20head%20into%20their%20matches%20without%20practicing%20first%2C%20your%20first%20responders%20can%E2%80%99t%20be%20expected%20to%20manage%20failures%20in%20an%20emergency%20without%20first%20stepping%20through%20a%20simulation%20or%20plan.%20While%20a%20disaster%20recovery%20drill%20can%20never%20completely%20recreate%20the%20scenario%2C%20simulating%20drills%20will%20help%20to%20ensure%20that%20those%20on%20the%20front%20lines%20understand%20their%20responsibilities%20and%20how%20to%20get%20critical%20systems%20up%20and%20running%20with%20minimal%20downtime.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Mar 22 2022 02:58 PM
Updated by: