How Do I Set Up Data Center in Cold Standby Mode?
This use case explains how to set up data centers in cold standby mode for achieving disaster recovery.
For example, assume that you have two data centers DC 1 and DC 2 in the following landscape:
Data Center Name | Host Name | Region |
DC 1 | uk.myhost.com | United Kingdom |
DC 2 | us.myhost.com | United States |
Here, the DC 1 is in active mode and DC 2 is passive. You want to bring up DC 2, when DC 1 goes down. Assume that DC 2 is in cold standby mode, then there would be no data in DC 2.
Pre-requisites
Install API Gateway in DC2 and ensure that the fix upgrades of DC1 is applied to DC2 too.
Run the following backup script periodically to take a snapshot of data from DC1 and store the snapshots in a suitable externalized storage system based on the RPO.
apigatewayUtil.sh create backup -name backup_file_name
For more information about back up and restore, see
Data Backup.
Failover and Failback process
1. During the failover process:
Start API Data Store in DC2.
Run the following command in DC 2 to restore the backed up data in API Data Store:
apigatewayUtil.sh restore backup -name backup_file_name
Start
API Gateway in DC 2.
Reconfigure the load balancer by exposing DC 2 to the client.
2. During the failback process:
Run the following command in DC 2 to back up the data:
apigatewayUtil.sh create backup -name backup_file_name
Run the following command in DC 1 to restore the backed up data:
apigatewayUtil.sh restore backup -name backup_file_name
Start
API Gateway in DC 1.
Reconfigure the load balancer by exposing DC 1 to the client.
To optimize your RTO, perform the following: