Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a DR Relationship

Updated on 2025-01-02 GMT+08:00

Scenarios

After a cross-region DR relationship is created, if the region where the primary instance is located encounters a natural disaster and the primary instance cannot be connected, you can promote the DR instance in another region to primary. To connect to the new primary instance, you only need to change the connection address on the application side.

How Cross-Region DR Works

Two RDS for PostgreSQL instances are deployed in two data centers, one in the production center and the other in the DR center. The RDS DR function replicates data from the primary instance in the production center to the DR instance in the DR center, keeping data synchronous across the regions.

Figure 1 Topology

Precautions

  • Before using this function, ensure that the network between the DB instances in two different regions is connected. You can create a cloud connection to connect the VPCs in different regions.
  • Before using this function, ensure that the primary instance and DR instance are available and are deployed in different regions. The primary instance uses a primary/standby deployment and the DR instance uses a single-node deployment.
  • The CPUs, memory, and storage space of the DR instance must be greater than or equal to those of the primary instance.
  • After a DR relationship is set up, you can change the instance class of the DR instance. To use this function, contact customer service.
  • After changing the database port or private IP address of the primary instance, you need to re-establish the DR relationship.
  • RDS for PostgreSQL 12 and later versions support cross-region DR.
  • Modifying a parameter of the primary instance does not modify that of the DR instance synchronously. You need to modify the parameter of the DR instance separately based on service requirements.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. Paste the information of the DR instance to the primary instance and configure DR for the primary instance.

    1. On the Instances page, click the name of an instance (to act as the DR instance) that you want to create a DR relationship for.
    2. Click DR Information.
    3. In the displayed dialog box, click Copy.
    4. On the Instances page, select another instance (to act as the primary instance) and choose More > Create DR Relationship.
    5. On the displayed page, confirm the information and click Create DR Relationship.
    6. In the displayed dialog box, paste the information you copied in 4.c to the text box and click OK.
    7. Check the task execution result on the Task Center page. If the task status is Completed, the DR settings are configured for the primary instance. Perform subsequent operations only after this task is executed.

  5. Paste the information of the primary instance to the DR instance and configure DR for the DR instance.

    1. On the Instances page, click the name of the primary instance.
    2. Click DR Information.
    3. In the displayed dialog box, click Copy.
    4. On the Instances page, select the DR instance and choose More > Create DR Relationship.
    5. On the displayed page, confirm the information and click Create DR Relationship.
    6. In the displayed dialog box, paste the information you copied in 5.c to the text box and click OK.
    7. Check the task execution result on the Task Center page. If the task status is Completed, the DR settings are configured for the DR instance. After this task is executed, the DR relationship is created.

  6. On the Instances page, click the name of the DR instance.
  7. In the navigation pane on the left, choose DR Management. The DR replication status of the DR instance is displayed.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback