El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
On this page

Creating a Replica Set Instance

Updated on 2022-02-22 GMT+08:00

Scenarios

This section describes how to create a replica set instance on the DDS management console. DDS allows you to tailor your computing resources and storage space to your business needs.

You can use your account to create up to 50 replica set instances.

You can use your account to create up to 50 replica set instances. To create more replica set instances, click in the upper right corner of the management console. On the Service Quota page, click Increase Quota to apply for quotas.

Procedure

  1. Log in to the DDS console.
  2. On the Instance Management page, click Create DB Instance.
  3. On the displayed page, select your DB instance specifications and click Create Now.

    Table 1 Basic information

    Parameter

    Description

    Region

    The region where the tenant is located. It can be changed in the upper left corner. For details, see section Regions and AZs.

    NOTE:

    DB instances deployed in different regions cannot communicate with each other through a private network, and you cannot change the region of a DB instance once it is created. Exercise caution when selecting a region.

    DB Instance Name

    The DB instance name can be 4 to 64 characters long. It must start with a letter and can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_).

    After a DB instance is created, you can change the DB instance name. For details, see section Changing a DB Instance Name.

    Database Type

    Community Edition

    DB Instance Type

    Select Replica set.

    A replica set consists of the primary node, secondary node, and hidden node. If a primary node goes down or becomes faulty, a secondary node is automatically assigned to the primary role and continues normal operation. If a secondary node is unavailable, a hidden node will take the role of the secondary to ensure high availability.

    Compatible MongoDB Version

    • 4.0
    • 3.4

    Storage Type

    Ultra-high I/O

    Storage Engine

    WiredTiger

    AZ

    An AZ is a part of a region with its own independent power supplies and networks. AZs are physically isolated but can communicate through an internal network connection.

    Currently, instances can be deployed in a single AZ or three AZs.

    • If you want to deploy an instance in a single AZ, select one AZ.
    • If you want to deploy an instance across AZs for disaster recovery, select three AZs. In this deployment mode, the nodes are evenly distributed in the three AZs.

    Disk Encryption

    • Disabled: Disable the encryption function.
    • Enabled: Enable the encryption function. This feature improves data security but slightly affects read/write performance.

      Key Name: Select or create a private key, which is the tenant key.

      NOTE:
      • After a DB instance is created, the disk encryption status and the key cannot be changed. The backup data stored in OBS is not encrypted.
      • The key cannot be disabled or deleted when being used. Otherwise, the database becomes unavailable.
      • For details about how to create a key, see the "Creating a CMK" section in the Key Management Service User Guide.
    Table 2 Specifications

    Parameter

    Description

    Specifications

    In the x86 CPU architecture, the following specifications can be selected to suit different application scenarios: General-purpose (s6), Enhanced (c3), and Enhanced II (c6).

    Node Class

    For details about the DB instance specifications, see section DB Instance Specifications. After a DB instance is created, you can change its CPU and memory. For details, see section Changing the CPU or Memory of a Replica Set DB Instance.

    Storage Space

    The value ranges from 10 GB to 2000 GB and must be a multiple of 10.

    Table 3 Network

    Parameter

    Description

    VPC

    The VPC where your DB instances are located. A VPC isolates networks for different services, so you can easily manage and configure internal networks and change network configuration. You need to create or select the required VPC. For details about how to create a VPC, see section "Creating a VPC" in the Virtual Private Cloud User Guide. For details about the constraints on the use of VPCs, see Connection Methods.

    Subnet

    A subnet provides dedicated network resources that are logically isolated from other networks for network security.

    After the instance is created, you can change the private IP address assigned by the subnet. For details, see Changing a Private IP Address.

    Security Group

    A security group controls access between DDS and other services for security.

    NOTE:

    Ensure that the security group rule you set allows clients to access DB instances. For example, select the TCP protocol with inbound direction, input the default port number 8635, and enter a subnet IP address or select a security group that the DB instance belongs to.

    SSL

    Secure Sockets Layer (SSL) certificates set up encrypted connections between clients and servers, preventing data from being tampered with or stolen during transmission.

    You can enable SSL to improve data security. After a DB instance is created, you can connect to it using SSL.

    Cross-CIDR Access

    • Configure

      Add the VPC subnet of your client. Ensure that the ECS where your client is installed can connect to the DB instance.

      NOTE:
      • To ensure the ECS and the DB instance can communicate with each other, configure the connection by referring to section "VPC Peering Connection Overview" in the Virtual Private Cloud User Guide.
      • VPC CIDR blocks can only be added, but not modified or deleted.
      • Up to 9 CIDR blocks can be configured, and each of them does not overlap.
    • Skip

      Configure the CIDR block of the client later. After a DB instance is created, you can configure cross-subnet access by referring to Configuring Cross-CIDR Access.

    Table 4 Database configuration

    Parameter

    Description

    Administrator

    The default account is rwuser.

    Administrator Password

    Set a password for the administrator. The password is a string of 8 to 32 characters. It must be a combination of uppercase letters, lowercase letters, digits, and special characters. You can also use the following special characters: ~!@#%^*-_=+?

    Keep this password secure. If lost, the system cannot retrieve it for you.

    Confirm Password

    Enter the administrator password again.

    Replica Set Parameter Group

    The parameters that apply to the replica set instances. After a DB instance is created, you can change the parameter group you configured for the DB instance to bring out the best performance.

    For details, see Parameter Group Settings.

    NOTE:

    DB instance performance is determined by how you configure it during the creation. The hardware configuration items that can be selected include the class and storage space of the replica set.

  4. On the displayed page, confirm the DB instance information.

    • If you need to modify the specifications, click Previous to return to the previous page.
    • If you do not need to modify the specifications, click Submit to start the instance creation.

  5. After a DDS DB instance is created, you can view and manage it on the Instance Management page.

    • When a DB instance is being created, the status displayed in the Status column is Creating. This process takes about 15 minutes. After the creation is complete, the status changes to Available.
    • DDS enables the automated backup policy by default. After a DB instance is created, you can modify or disable the automated backup policy. An automated full backup is immediately triggered after the creation of a DB instance.
    • The default DDS port is 8635, but this port can be modified if necessary. If you change the port, you need to add the security group rule to enable access.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback