This topic describes how to create a DynamoDB-compatible ApsaraDB for MongoDB instance.

Precautions

Only ApsaraDB for MongoDB sharded cluster instances that run MongoDB 4.0 are compatible with the DynamoDB protocol.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. On the Sharded Cluster Instances page, click Create Instance.
  4. Configure the instance parameters. The following table describes the parameters.
    Table 1. Instance parameters
    Category Parameter Description
    Basic Configuration Region

    The region where the sharded cluster instance is deployed. After an instance is created, you cannot change its region. Proceed with caution.

    Instances in the same region (such as an Elastic Compute Service (ECS) instance and an ApsaraDB for MongoDB instance) can communicate with each other over an internal network.

    Zone

    A zone is a geographic area that has an independent power supply and network. For more information, see Regions and zones. An ECS instance and an ApsaraDB for MongoDB instance in the same zone can communicate with each other over an internal network with minimum network latency.

    Note To implement zone-disaster recovery, you can deploy the sharded cluster instance across multiple zones. For more information, see Create a multi-zone sharded cluster instance.
    Protocol
    • MongoDB: The instance supports the MongoDB protocol.
    • DynamoDB: The instance supports the DynamoDB protocol.
    In this example, select DynamoDB. For more information about the DynamoDB protocol, see Compatibility details of DynamoDB-compatible ApsaraDB for MongoDB instances.
    Database Version

    The database version of the sharded cluster instance. Valid values: 3.2, 3.4, and 4.0. In this example, select MongoDB 4.0. Only MongoDB 4.0 supports the DynamoDB protocol.

    We recommend that you select MongoDB 3.2 or later. For more information, see MongoDB versions and storage engines.

    Note You can manually upgrade the database version when an instance is running. For more information, see Upgrade MongoDB versions.
    Storage Engine

    The storage engine of the instance. Set the value to WiredTiger.

    Resource Group Resource Group Resource groups allow you to group resources that are deployed in different regions and belong to the same Alibaba Cloud account. This allows you to manage your resources in a centralized manner. You can select an existing resource group or create a resource group. For more information about how to create a resource group, see Create a resource group.
    Network type VPC A virtual private cloud (VPC) is an isolated network that has higher security and performance than the classic network. We recommend that you select the VPC network type.
    Note
    Mongos Specification Mongos Specification The specifications of each mongos node in the sharded cluster instance. For more information, see Instance types.
    Note You can add new mongos nodes or change the configurations of existing mongos nodes while a sharded cluster instance is running.
    Quantity

    The number of mongos nodes.

    A sharded cluster instance can contain 2 to 32 mongos nodes.

    Shard Type Shard Type The specifications of each shard node in the sharded cluster instance. For more information, see Instance types.
    Note You can add new shard nodes or change the configurations of existing shard nodes while a sharded cluster instance is running.
    Shard Storage Capacity The storage space of each shard node. Valid values: 10 to 1,000. Unit: GB.
    Note The storage space of a shard node stores your data, system, and log files.
    Quantity

    The number of shard nodes.

    A sharded cluster instance can contain 2 to 32 shard nodes.

    Config Server Type Config Server

    The specifications of each Configserver node. The specifications are fixed at 1Core,2 GB, and the storage space is fixed at 20 GB. The Configserver specifications cannot be modified.

    Password Set Password
    • Specifies to set a password when you create the sharded cluster instance. The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include

      !#$%^&*()_+-=

    • The password must be 8 to 32 characters in length.
    Set Later Specifies to set a password for the sharded cluster instance after the instance is created. For more information, see Set a password for a sharded cluster instance.
    Validity None You must specify this parameter when you create a subscription sharded cluster instance. You can select one to nine months for a monthly subscription or one to three years for an annual subscription.
  5. On the Confirm Order page, read and select the MongoDB Sharded Cluster Agreement of Service, and complete the payment.
    Note The DynamoDB-compatible ApsaraDB for MongoDB instance is created. For more information about DynamoDB compatibility, see Compatibility details of DynamoDB-compatible ApsaraDB for MongoDB instances.