Cross-zone disaster recovery
If an application at the production site cannot be recovered in a short period of time due to force majeure events, such as a data center fire or power outage, or device failures, such as software or hardware damage, the ECS Disaster Recovery service supports cross-zone (Availability Zone) disaster recovery for your business. It performs disaster recovery backup for the entire application to handle single-region failures and meet the core RTO and RPO metrics of your business.
Preparations
Before you implement cross-zone disaster recovery, you must select another zone to create a virtual private cloud (VPC) in the cloud and create a replication network vSwitch and a recovery network vSwitch in the destination zone. For more information, see Build a VPC in the cloud.
Step 1: Create a disaster recovery site pair
After the preparations are complete, perform the following steps to implement cross-zone disaster recovery protection for the source ECS instance:
Log on to the Cloud Backup console.
Choose , and in the upper-left corner of the page, click Switch to Continuous Replication Disaster Recovery.
On the page, click Add, set the type to Cross-zone Disaster Recovery, and fill in the Production Site Information and Disaster Recovery Site Information.
Click Create.
Step 2: Add a protected server
After the continuous replication disaster recovery site pair is created, perform the following steps to add a protected server:
Click the Protected Servers tab and verify the disaster recovery site pair information in the upper-right corner.
On the right side of Protected Servers, click Add and select the ECS instances that you want to protect.
-
Click Confirmation to complete the addition. After the server is added, its status changes to Client Installing and then to Initialized.
NoteIf the server status does not change to Initialized, click to complete client initialization.
Step 3: Start replication
To start replicating ECS instances to the DR site:
-
Click the Protected Server tab. In the Actions column for the target server, choose .
-
In the Enable Replication panel, configure the following parameters, then click Start.
Parameter
Description
Recovery Point Policy
Interval in hours at which Cloud Backup creates a recovery point each day.
Hard Disk Type
Valid values: Ultra Disk, ESSD, and SSD.
Replication Network
vSwitch for replicating DR data to the cloud.
For optimal RTO, use the same zone as the Recovery Network. The replication and recovery networks can share the same vSwitch.
Recovery Network
vSwitch for recovery operations. During DR drills or failovers, Cloud Backup creates recovered instances in this network.
For optimal RTO, use the same zone as the Replication Network. The replication and recovery networks can share the same vSwitch.
Automatic restart after replication interruption
Automatically resumes replication after an interruption.
Replication proceeds through three stages:Enabling Replication, Replicating Full Data, and Replicating.
-
Enabling Replication: Scans system data and estimates total data volume. Usually takes a few minutes.
-
Replicating Full Data: Transfers all data from the server to the DR site. Duration depends on data volume and network bandwidth.
-
Replicating: After full replication, Alibaba Cloud Replication Service (AReS) monitors all disk writes and continuously replicates changes to the DR site in real time.
-
(Optional) Perform a DR drill
After an ECS instance enters the Replicating state, it is ready for a DR drill.
A DR drill launches a protected instance in the DR site to verify application functionality:
-
Verify application viability: Confirm that applications run correctly on a restored instance.
-
Improve team readiness: Familiarize your team with the failover process for faster response during real disasters.
To perform a DR drill:
-
On the Protected Server tab, in the Actions column for the target server, click Test Failover.
-
In the Test Failover panel, select the Recovery Network, IP Address, whether to Use ECS Specification, Hard Disk Type, Recovery Point, Elastic Public Network IP, and Post Script. Then click Start.
Note-
Cloud Backup automatically retains 24 recovery points from the last 24 hours for each server.
-
If not using an ECS instance type, also specify CPU and memory.
Cloud Backup launches the server from the selected recovery point. Real-time replication continues unaffected during the drill.
After the drill completes, click the link under Test Failover Information to verify data and applications.
-
-
Clean up the drill environment.
After verification, in the Actions column, click Cleanup Test Environment to delete the recovered ECS instance.
NoteDelete the recovered instance promptly after verification to avoid unnecessary costs.
Step 4: Perform a failover
Regular DR drills confirm that workloads fail over reliably to the DR site.
Initiate a failover only for servers that have experienced a critical error. This action stops all real-time data replication. To re-establish protection, restart replication manually, which triggers a new full data replication before continuous protection resumes.
To perform a failover:
-
On the Protected Server tab, in the Actions column for the server, choose .
-
In the Failover panel, select the Recovery Network, IP Address, whether to Use ECS Specification, Hard Disk Type, Recovery Point, Elastic Public Network IP, and Post Script. Then click Start.
ImportantRecovery to the latest available state is a one-time operation.
-
After the failover completes, click the link under Recovered Instance ID/Name to verify data and applications.
-
If the application runs correctly at the selected point in time, choose .
NoteAfter the recovered application takes over business traffic, commit the failover to clean up DR resources and reduce costs.
-
If the application state is unsatisfactory (for example, due to database consistency or data corruption issues), before committing failover, choose .
NoteChanging the recovery point follows the same process as failover. Select an earlier recovery point.
-
Step 5: Perform reverse replication
After the application on the protected server completes disaster recovery replication from one zone, such as Zone A, to another zone, such as Zone B, you can also perform reverse replication, which replicates data from Zone B back to Zone A.
Perform the following steps to run reverse replication:
-
On the Protected Server tab, in the Actions column for the server, choose , then confirm reverse registration of the protected server.
-
In the Actions column, choose .
-
In the Initiate Reverse Replication panel, select whether to enable Original Machine Recovery, then select the Replication Network and Recovery Network. Then click Start.
WarningFailing back to the original ECS instance is an irreversible action that permanently overwrites all data on the instance. This option is available for both cross-region and cross-zone DR. Proceed with extreme caution.
-
When the server enters reverse real-time replication, in the Actions column, choose .
-
In the Failback panel, enter CPU and Memory information, select the Recovery Network and IP, and edit the Execute script after recovery.
-
After failback completes, in the Actions column, choose to re-register the protected server.