This topic describes how to create a disaster recovery RDS instance for a primary ApsaraDB RDS for SQL Server instance. This lets you quickly deploy a remote disaster recovery architecture. With a disaster recovery RDS instance, you can quickly promote the disaster recovery instance to the primary role if the primary instance fails or its region becomes unavailable. This practice ensures business continuity, high availability, and disaster recovery for your database. In addition, the disaster recovery RDS instance supports read-only access. This offloads query pressure from the primary instance and supports multi-region deployments and local access for business applications.
Key concepts
Before you begin, you must understand the following concepts:
Disaster recovery instance group: A disaster recovery instance group consists of a primary instance and a disaster recovery instance in a one-to-one architecture. For more information, see Architecture.
Primary instance: The primary instance is the primary role in the disaster recovery instance group. It handles read and write requests and synchronizes data to the disaster recovery instance in real time.
Disaster recovery instance: The disaster recovery instance is the secondary role in the disaster recovery instance group and serves several purposes:
Remote disaster recovery: The disaster recovery instance acts as a remote disaster recovery node for the primary instance. If the primary instance fails or its region becomes unavailable, you can use the disaster recovery instance to quickly recover your services. This ensures data security and business continuity.
Remote read-only access: The disaster recovery instance supports read-only access, which offloads query pressure from the primary instance. This feature is suitable for multi-region deployments and read/write splitting scenarios. It enables local access for business applications and reduces data access latency.
Fast data migration: You can quickly migrate business data to other regions by promoting the disaster recovery instance to the primary role.
Prerequisites
If you are using a disaster recovery instance group for the first time, you must first authorize DTS to access cloud resources.
Limits
Category | Limits on primary instance | Limits on disaster recovery instance |
Region limits |
Note To deploy disaster recovery in other regions, you can submit a ticket. | |
Version and configuration limits | The primary instance must meet the following requirements:
Note If the major version of the primary instance is not supported, you must upgrade the major version. | The disaster recovery instance must meet the following requirements:
|
Operation limits after a disaster recovery instance group is created |
|
|
Notes
A disaster recovery instance group can contain only one primary instance and one disaster recovery instance.
An ApsaraDB RDS for SQL Server instance can be added to only one disaster recovery instance group, either as a primary instance or a disaster recovery instance. An instance cannot be added to multiple disaster recovery instance groups.
Databases and accounts that are created on the primary instance are synchronized to the disaster recovery instance. However, privileged accounts on the primary instance become standard accounts after they are synchronized to the disaster recovery instance.
Billing
When you create a disaster recovery instance, the system automatically configures the primary instance and the disaster recovery instance to form a disaster recovery instance group. For more information about billing, see Billing.
If you create a disaster recovery instance group with a new RDS instance, you are charged for the new RDS instance and for DTS data synchronization.
If you create a disaster recovery instance group with an existing instance, you are not charged an additional instance fee, but you are charged for data synchronization.
Method 1: Create a new instance and add it as a disaster recovery instance
Method 1: Go to the primary instance details page
Go to the RDS Instance List page and click the primary instance ID to open the Basic Information page.
In the section, find Disaster Recovery Instance and click Add.
NoteAfter you click Add, the system automatically creates a disaster recovery instance group on the Global Distributed Cache page. You can go to that page to view the group.
On the disaster recovery instance creation page, take note of the following parameters:
To customize other parameters when you create the disaster recovery instance, see Create an ApsaraDB RDS for SQL Server instance.
Configuration item
Description
Region
The supported regions are displayed in the console. Select a region that is different from the primary instance's region.
Database Engine
The version of the disaster recovery instance is the same as the primary instance by default and cannot be changed.
Edition
Basic Edition and Cluster Edition are supported. Configure this parameter as needed.
Storage Capacity
The storage capacity of the disaster recovery instance must be greater than or equal to the storage capacity of the primary instance.
Character Set Collation Rule
The character set collation of the disaster recovery instance must be the same as the primary instance and cannot be changed.
After you complete the configuration, the cost details, including the RDS configuration fee and the DTS configuration fee, are displayed on the right side of the page. Verify the details and click Confirm Order.
After the payment is complete, you are redirected to the details page of the disaster recovery instance group. The system automatically creates a disaster recovery ApsaraDB RDS for SQL Server instance and a one-way DTS data synchronization task.
The system first creates the RDS SQL Server disaster recovery instance, setting the instance group status to Adding Secondary Instance. Then, the system creates a data synchronization link between the primary and disaster recovery instances, which changes the instance group status to Creating Data Synchronization Task.
After all tasks are complete and the instance group status is Running, you can view the disaster recovery instance and the performance of the disaster recovery data synchronization link and find other related data on the disaster recovery instance group details page.
Method 2: Go to the disaster recovery instance group details page
Create a disaster recovery instance group
Go to the Global Active Instances page and click Create Instance Group.
On the Create Global Active Instance Group page, configure the following parameters and click OK.
Configuration item
Description
Instance Group Name
Enter a custom name for the instance group. We recommend that you use a name that is related to your business or purpose for easy identification.
Naming conventions: The name must start with an uppercase letter, a lowercase letter, or a Chinese character. It can contain digits, underscores (_), and hyphens (-). The name must be 2 to 126 characters in length.
Database Instance Type
Select SQL Server.
Instance Group Type
Disaster Recovery: Suitable for cross-region disaster recovery and disaster recovery drill scenarios. The primary role is read-write, the secondary role is read-only, and it supports primary/secondary switchover and promotion.
Region of Primary Instance
This is the same as the region selected in the RDS console. To select a different region, change the region at the top of the console.
Primary Instance
From the drop-down list, select an RDS for SQL Server instance in the primary role region.
If no primary role instances are available in the current region, you can click Create Primary Instance to go to the instance purchase page and create a primary instance.
Create a disaster recovery instance
On the Global Distributed Cache page, find the target instance group and click Add Secondary Instance in the Actions column.

On the disaster recovery instance creation page, take note of the following parameters:
To customize other parameters when you create the disaster recovery instance, see Create an ApsaraDB RDS for SQL Server instance.
Configuration item
Description
Region
The supported regions are displayed in the console. Select a region that is different from the primary instance's region.
Database Engine
The version of the disaster recovery instance is the same as the primary instance by default and cannot be changed.
Edition
Basic Edition and Cluster Edition are supported. Configure this parameter as needed.
Storage Capacity
The storage capacity of the disaster recovery instance must be greater than or equal to the storage capacity of the primary instance.
Character Set Collation Rule
The character set collation of the disaster recovery instance must be the same as the primary instance and cannot be changed.
After you complete the configuration, the cost details, including the RDS configuration fee and the DTS configuration fee, are displayed on the right side of the page. Verify the details and click Confirm Order.
After the payment is complete, you are redirected to the details page of the disaster recovery instance group. The system automatically creates a disaster recovery ApsaraDB RDS for SQL Server instance and a one-way DTS data synchronization task.
The system first creates the RDS SQL Server disaster recovery instance, setting the instance group status to Adding Secondary Instance. Then, the system creates a data synchronization link between the primary and disaster recovery instances, which changes the instance group status to Creating Data Synchronization Task.
After all tasks are complete and the instance group status is Running, you can view the disaster recovery instance and the performance of the disaster recovery data synchronization link and find other related data on the disaster recovery instance group details page.
Method 2: Add an existing instance as a disaster recovery instance
You can add an existing ApsaraDB RDS for SQL Server instance to a disaster recovery instance group as a disaster recovery instance. The existing instance must meet the limits described in this topic.
Create a disaster recovery instance group
Go to the Global Active Instances page and click Create Instance Group.
On the Create Global Active Instance Group page, configure the following parameters and click OK.
Configuration item
Description
Instance Group Name
Enter a custom name for the instance group. We recommend that you use a name that is related to your business or purpose for easy identification.
Naming conventions: The name must start with an uppercase letter, a lowercase letter, or a Chinese character. It can contain digits, underscores (_), and hyphens (-). The name must be 2 to 126 characters in length.
Database Instance Type
Select SQL Server.
Instance Group Type
Disaster Recovery: Suitable for cross-region disaster recovery and disaster recovery drill scenarios. The primary role is read-write, the secondary role is read-only, and it supports primary/secondary switchover and promotion.
Region of Primary Instance
This is the same as the region selected in the RDS console. To select a different region, change the region at the top of the console.
Primary Instance
From the drop-down list, select an RDS for SQL Server instance in the primary role region.
If no primary role instances are available in the current region, you can click Create Primary Instance to go to the instance purchase page and create a primary instance.
Add the existing instance as a disaster recovery instance
Go to the RDS Instances page. In the top navigation bar, select the region where the target disaster recovery instance resides. Then, click the ID of the instance.
Click Add to GAD Cluster in the upper-right corner of the page.
In the dialog box that appears, verify the information of the disaster recovery instance, which is the secondary role, and select the disaster recovery instance group that you created in the previous step.

Click Check. After all precheck items pass, verify the data synchronization fee on the page and click OK in the lower-right corner of the page.
You are redirected to the details page of the disaster recovery instance group. The system automatically creates a one-way DTS data synchronization link.
The system creates a data synchronization link between the primary instance and the disaster recovery instance. During this process, the instance group status is Creating Data Synchronization Task.
After the instance group status changes to Running, you can view related data on the disaster recovery instance group details page, such as the disaster recovery instance and the performance of the disaster recovery data synchronization link.