Creating a Dual-Active Relationship
GeminiDB Cassandra API allows you to create a dual-active relationship for two instances in different regions, so that their data can be synchronized.
This section describes how to create such a dual-active relationship.
The current instance is the source instance, and you need to specify the target instance.
Precautions
- Before creating a dual-active relationship, create a target instance in a specific region and ensure it has the same or higher specifications and storage capacity than the source instance. To use a higher specification, contact customer service. The destination instance must have the same or higher specifications than the source to meet CPU or memory requirements.
- Ensure the target instance has no additional tables before creating the dual-active relationship.
- The target instance must have the same administrator password as the source instance.
- To create a dual-active relationship again after it is removed, execute the DROP statement to clear tables in the target instance.
- The source instance transfers all of its data to the target instance.
Procedure
- In the service list, choose Databases > GeminiDB.
- On the Instances page, locate the source instance that you want to create a dual-active relationship for and choose
in the Operation column.Figure 1 Creating a dual-active relationship
- On the Create Dual-Active Relationship dialog box, locate the destination instance as the dual-active DR instance.
Figure 2 Selecting the destination instance
The destination instance must be in a different CIDR block from the source instance and has the same or higher specifications and no less nodes and storage space than the source, to synchronize data in real time between them and avoid subnet conflicts across regions.
- Click OK.
- On the Instances page, click before the source instance and view and manage its DR instance.
- When the DR instance is being created, its status is Creating dual-active relationship.
- After the creation is complete, the status changes to Available.
You can click in the upper right corner of the page to refresh the instance status.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.