检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
From ECS-hosted MongoDB to DDS This practice describes how to use DRS to migrate data from a MongoDB database built on an ECS to a DDS instance in the same VPC of the same region through a VPC.
In dual-active DR mode, at least one of the two DR databases must be an RDS DB instance on the current cloud, and the other can be an RDS DB instance on the current cloud, other cloud database, self-built database on the ECS, or on-premises database.
Values: offline: indicates an on-premises database. ecs: indicates a database built on Huawei Cloud ECSs. cloud: indicates a Huawei cloud database. Enumerated values: offline ecs cloud job_direction String Migration direction.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
Checking iptables Settings If the source database is a self-built database on an ECS and cannot be connected after the preceding operations are performed, check the iptables settings.
For example, the service type code for EC2 is hws.service.type.ec2. resource_type String Specifies the resource type code of the purchased product.
Scenario 1: Self-built databases on ECS - source database configuration Figure 5 Self-build on ECS - source database information Table 4 Self-build on ECS - source database information Parameter Description Source Database Type Select Self-built on ECS.
Table 1 DR schemes Service Database DR Database Documentation On-premises MySQL databases MySQL databases on an ECS MySQL databases on other clouds RDS for MySQL RDS for MySQL From MySQL to MySQL (Single-Active DR) From MySQL to MySQL (Dual-Active DR) TaurusDB From MySQL to TaurusDB
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
ECS ECS name ecs-mongodb Specify a name that is easy to identify. Specifications s6.xlarge.2 4vCPUs|8GiB The specifications in the left column are selected in this example. In your project, select specifications meeting your workload requirements.
Log in to an ECS that can access the source database.
For details, see Having an ECS Without a Public IP Address Access the Internet. For details about how to create a VPC peering connection, see Virtual Private Cloud User Guide.
MRS ReadOnlyAccess: Read-only permissions for MapReduce Service (MRS), including permissions for querying clusters and read-only permissions for ECS, BMS, EVS, and VPC.
Figure 9 DR database information Table 12 DR database settings Parameter Description Database Type By default, Self-built on ECS is selected. The destination database can be a Self-built on ECS or an RDS DB instance.
Figure 10 DR database information Table 9 DR database settings Parameter Description Database Type By default, Self-built on ECS is selected. The destination database can be a Self-built on ECS or an RDS DB instance.
Figure 8 DR database information Table 11 DR database settings Parameter Description Database Type By default, Self-built on ECS is selected. The destination database can be a Self-built on ECS or TaurusDB database.
Scenario 1: Databases on an ECS - source database configuration Figure 5 Self-build on ECS - source database information Table 9 Self-build on ECS - source database information Parameter Description Source Database Type Select Self-built on ECS.
Scenario 1: Databases on an ECS - source database configuration Figure 5 Self-build on ECS - source database information Table 9 Self-build on ECS - source database information Parameter Description Database Type Select Self-built on ECS.
Scenario 1: Databases on an ECS - source database configuration Figure 5 Self-build on ECS - source database information Table 9 Self-build on ECS - source database information Parameter Description Database Type Select Self-built on ECS.
Scenario 1: Databases on an ECS - source database configuration Figure 5 Self-build on ECS - source database information Table 9 Self-build on ECS - source database information Parameter Description Database Type Select Self-built on ECS.