Advanced
Тема интерфейса

Custom Config

This section describes how to purchase a cluster instance in custom mode on the management console. You can customize the computing resources and storage space of a cluster instance based on your service requirements. In addition, you can configure advanced settings, such as slow query log and automated backup.

Precautions

Each account can create up to 10 cluster instances.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Document Database Service to go to the DDS console.
  4. On the Instances page, click Create DB Instance.
  5. Click the Custom Config tab.
  6. Specify instance details and click Create Now.

    Table 1 Basic configurations

    Parameter

    Description

    Region

    The region where the resource is located. For details, see Region and AZ.

    NOTE:

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

    AZ

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

    • If your service requires low network latency between instances, you deploy the components of the instance in the same AZ. If you select a single AZ to deploy your instance, anti-affinity deployment is used by default. With an anti-affinity deployment, your primary, secondary, and hidden nodes are deployed on different physical machines for high availability.
    • If you want to deploy an instance across AZs for disaster recovery, select three AZs. In this deployment mode, the dds mongos, shard, and config nodes are evenly distributed across the three AZs.

    DB Instance Name

    • The instance name can be the same as an existing instance name.
    • The instance name that you specify after the purchase. The instance name must contain 4 to 64 characters and must start with a letter. It is case sensitive and can contain letters, digits, hyphens (-), and underscores (_). It cannot contain other special characters.
    • You can change the name of an instance after it is created. For details, see Changing an Instance Name.

    DB Instance Type

    Select Cluster.

    A cluster instance includes three types of nodes: dds mongos, shard, and config. Each shard and config is a three-node replica set to ensure high availability.

    Compatible MongoDB Version

    • 5.0
    • 4.4
    • 4.2
    • 4.0
    • 3.4

    CPU Type

    DDS supports x86 and Kunpeng CPU architectures.

    NOTE:

    This parameter is available only for MongoDB 4.0 and 3.4. The default value is Kunpeng.

    • x86

      x86 CPUs use the Complex Instruction Set Computing (CISC) instruction set. Each instruction can be used to execute low-level hardware operations. CISC instructions vary in length, and tend to be complicated and slow compared to Reduced Instruction Set Computing (RISC).

    • Kunpeng

      The Kunpeng CPU architecture uses RISC. The RISC instruction set is smaller and faster than CISC, thanks to the simplified architecture. Kunpeng CPUs also offer a better balance between power and performance than x86.

      Kunpeng CPUs offer a high density, low power option that is more cost effective for heavy workloads.

    Storage Type

    Ultra-high I/O

    Storage Engine

    WiredTiger/RocksDB

    Specifications

    With an x86 architecture, you have the following options:

    • General-purpose (s6): S6 instances are suitable for applications that require moderate performance generally but occasional bursts of high performance, such as light-workload web servers, enterprise R&D and testing environments, and low- and medium-performance databases.
    • Enhanced II (c6): C6 instances have multiple technologies optimized to provide stable powerful compute performance. 25 GE intelligent high-speed NICs are used to provide ultra-high bandwidth and throughput, making it an excellent choice for heavy-load scenarios. It is suitable for websites, web applications, general databases, and cache servers that have higher performance requirements for compute and network resources; and medium- and heavy-load enterprise applications.

    dds mongos Node Class

    For details about the dds mongos CPU and memory, see Cluster. You can change the class of an instance after it is created. For details, see Changing a Cluster Instance Class.

    dds mongos Nodes

    The value ranges from 2 to 32. You can add nodes to an instance after it is created if necessary. For details, see Changing Cluster Instance Nodes.

    dds mongos Parameter Template

    The parameters that apply to the dds mongos nodes. After an instance is created, you can change the parameter template of a node to bring out the best performance.

    shard Node Class

    For details about the shard CPU and memory, see Cluster. You can change the class of an instance after it is created. For details, see Changing a Cluster Instance Class.

    shard Storage Space

    The minimum storage space is 10 GB. If a shard node has fewer than 8 vCPUs, the maximum storage that can be scaled up to is 5,000 GB. If a shard node has 8 or more vCPUs, the maximum storage that can be scaled up to is 10,000 GB. The storage space must be a multiple of 10. You can scale up an instance after it is created. For details, see Scaling Up a Cluster Instance.

    shard Nodes

    The value ranges from 2 to 32. You can add nodes to an instance after it is created if necessary. For details, see Changing Cluster Instance Nodes.

    shard Parameter Template

    The parameters that apply to the shard nodes. After an instance is created, you can change the parameter template of a node to bring out the best performance.

    config Node Class

    The CPU and memory of a config node. The config node stores instance configurations but cannot be accessed directly. For details, see Cluster.

    config Storage Space

    Based on the functions and minimum requirements of the config node, the storage space of the config node is set to 20 GB by default. You cannot scale up the storage of the node after it is created.

    config Parameter Template

    The parameters that apply to the config nodes. After an instance is created, you can change the parameter template of a node to bring out the best performance.

    Disk Encryption

    • Disabled: Disable encryption.
    • Enabled: Enable encryption. 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 an instance is created, the disk encryption status and the key cannot be changed. Disk encryption will not encrypt backup data stored in OBS.
      • To check whether the disk is encrypted, you can view Disk Encrypted in the DB instance list.
      • For details about how to create a key, see "Creating a CMK" in Key Management Service User Guide.
      • Disk encryption supports only the AES_256 key algorithm.
    Table 2 Administrator settings

    Parameter

    Description

    Administrator

    The default account is rwuser.

    Administrator Password

    Set a password for the administrator. The password must be 8 to 32 characters in length and contain uppercase letters, lowercase letters, digits, and at least one of the following special characters: ~!@#%^*-_=+?()$

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

    Confirm Password

    Enter the administrator password again.

    Table 3 Network settings

    Parameter

    Description

    VPC

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

    NOTE:

    After the DDS instance is created, the VPC cannot be changed.

    Subnet

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

    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.

    NOTE:

    Ensure that there is a security group rule configured that allows clients to access instances. For example, select an inbound TCP rule with the default port 8635, and enter a subnet IP address or select a security group that the instance belongs to.

    SSL

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

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

    Database Port

    The default DDS port is 8635, but this port can be modified if necessary. If you change the port, add a corresponding security group rule to allow access to the instance.

    NOTE:
    • The database port is the port of the dds mongos node. The default port is 8635. To change the port, see "Connection Management" > "Changing a Database Port" in Document Database Service User Guide.
    • The shard node port is 8637, and the config node port is 8636, which cannot be changed. For details about how to connect to the shard and config nodes, see "Connection Management" > "Enabling IP Addresses of Shard and Config Nodes" in Document Database Service User Guide.
    Table 4 Advanced settings

    Parameter

    Description

    Automated Backup

    DDS enables an automated backup policy by default, but you can disable it after an instance is created. An automated full backup is immediately triggered after the creation of an instance.

    For details, see .

    Retention Period (days)

    Retention Period refers to the number of days that data is kept. You can increase the retention period to improve data reliability.

    The backup retention period is from 1 to 732 days.

    Time Window

    A one-hour period the backup will be scheduled within 24 hours, such as 01:00-02:00. The backup time is in UTC format.

    Maintenance Window

    A maintenance period refers to the period during which a user is allowed to start a task that affects the running of a database instance, for example, an OS upgrade or database software upgrade.

    • Skip

      The maintenance window is 02:00–06:00 by default and you can change it as required.

    • Configure

      You are advised to set the maintenance period to off-peak hours to prevent service interruption during maintenance. You can change the maintenance window after an instance is created.

    Note

    Instance performance depends on the specifications you select during creation. The hardware configuration items that can be selected include the node class and storage space.

  7. On the displayed page, confirm the instance details.

    • 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 creating the instance.

  8. After a DDS instance is created, you can view and manage it on the Instances page.

    • When an 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.