All Products
Search
Document Center

ApsaraDB for MongoDB:Create an ApsaraDB for MongoDB instance

Last Updated:Jul 20, 2026

Create an ApsaraDB for MongoDB replica set, sharded cluster, or standalone instance.

Billing

Instance specifications and storage incur fees. See Billable items for details.

Procedure

Replica set

Create a pay-as-you-go MongoDB 8.0 replica set instance. For the full parameter reference, see Create a replica set instance.

  1. Go to the ApsaraDB for MongoDB buy page.

  2. On the buy page, configure the following parameters.

    Parameter

    Description

    Example

    Product Type

    Instance architecture and billing method.

    Replica Set (Pay-as-you-go)

    Region

    Select the region where you want to deploy the instance.

    China (Hangzhou)

    Zone Type

    Select the zone type for the instance.

    Single-zone

    Zone

    Select the zone where you want to deploy the instance.

    Hangzhou Zone J

    Database Version

    Select a database version.

    MongoDB 8.0

    Number of Nodes

    Number of nodes for the replica set.

    Three-node

    Number of Read-only Nodes

    Number of read-only nodes for the replica set.

    No read-only nodes

    Storage Engine

    This parameter is fixed to WiredTiger.

    WiredTiger

    Storage Type

    Select a storage type.

    ESSD PL1

    Encryption Type

    Specify whether to enable disk encryption.

    No Encryption

    Resource Group

    Select a resource group for the instance.

    Default Resource Group

    Tag

    Add a tag to the instance.

    None

    Network Type

    This parameter is fixed to Proprietary Network.

    VPC

    VPC

    To connect from an ECS instance over a private network, select the same VPC.

    Use the Default VPC, or select an existing VPC, or create one in the VPC console.

    Default VPC

    vSwitch

    Select a vSwitch for the instance.

    Use the Default Switch, or select an existing vSwitch, or create one in the VPC console.

    Default Switch

    Instance Class

    Select the instance class.

    Dedicated

    Specifications

    Select the instance specifications.

    2-core 4 GB (Dedicated)

    Storage Space

    Select the storage capacity for the instance.

    20 GB

    Username

    This parameter is fixed to root.

    root

    Set Password

    Select Set Now.

    If you select Set Later, you must reset the password before you connect to the instance.

    Set Now

    Password

    Enter and confirm the password for the root account.

    This password is for demonstration purposes only. Do not use it in a production environment.

    PassWord123!

    Instance Name

    Specify a custom name for the instance.

    Test instance

    Quantity

    Number of instances to create with the same configuration.

    1

  3. Click Buy Now.

  4. Confirm the Parameter Configuration and click Activate now.

  5. On the Opening completed page, click Console to go to the Instances page. You can view the newly created instance in the instance list.

    Instance creation takes 10-15 minutes. Refresh the page if the instance does not appear immediately.

Sharded cluster

Create a pay-as-you-go MongoDB 8.0 sharded cluster instance. For the full parameter reference, see Create a sharded cluster instance.

  1. Go to the ApsaraDB for MongoDB buy page.

  2. On the buy page, configure the following parameters.

    Parameter

    Description

    Example

    Product Type

    Instance architecture and billing method.

    Sharded Cluster (Pay-as-you-go)

    Region

    Select the region where you want to deploy the instance.

    China (Hangzhou)

    Zone Type

    Select the zone type for the instance.

    Single-zone

    Zone

    Select the zone where you want to deploy the instance.

    Hangzhou Zone J

    Protocol Type

    This parameter is fixed to MongoDB Protocol.

    MongoDB

    Database Version

    Select a database version.

    MongoDB 8.0

    Storage Engine

    This parameter is fixed to WiredTiger.

    WiredTiger

    Storage Type

    Select a storage type.

    ESSD PL1

    Encryption Type

    Specify whether to enable disk encryption.

    No Encryption

    Instance Class

    Select the instance class.

    Dedicated

    Resource Group

    Select a resource group for the instance.

    Default Resource Group

    Tag

    Add a tag to the instance.

    None

    Network Type

    This parameter is fixed to Proprietary Network.

    VPC

    VPC

    To connect from an ECS instance over a private network, select the same VPC.

    Use the Default VPC. If unavailable, create one in the VPC console.

    Default VPC

    vSwitch

    Select a vSwitch for the instance.

    Use the Default Switch. If unavailable, create one in the VPC console.

    Default Switch

    Mongos Specifications

    Select the specifications for the Mongos nodes.

    2-core 8GB (Dedicated)

    Number of Mongos Nodes

    Select the number of Mongos nodes.

    2

    Shard Specifications

    Select the specifications for the Shard nodes.

    2-core 8GB (Dedicated)

    Shard Storage Space

    Select the storage capacity for each Shard node.

    20 GB

    Shard Read-only Nodes

    Number of read-only nodes per Shard.

    No read-only nodes

    Number of Shards

    Select the number of shards.

    2

    ConfigServer Specifications

    Select the specifications for the ConfigServer nodes.

    4-core 8 GB (Dedicated)

    ConfigServer Storage Space

    Select the storage capacity for each ConfigServer node.

    20 GB

    Username

    This parameter is fixed to root.

    root

    Set Password

    Click Set Now.

    If you select Set Later, you must reset the password before you connect to the instance.

    Set Now

    Password

    Enter and confirm the password for the root account.

    This password is for demonstration purposes only. Do not use it in a production environment.

    PassWord123!

    Instance Name

    Specify a custom name for the instance.

    Test instance

  3. Click Buy Now.

  4. Confirm the Parameter Configuration and click Activate now.

  5. On the Opening completed page, click Console to go to the Instances page. You can view the newly created instance in the instance list.

    Instance creation takes 10-15 minutes. Refresh the page if the instance does not appear immediately.

Standalone

Create a pay-as-you-go MongoDB 4.0 standalone instance. For the full parameter reference, see Create a standalone instance.

  1. Go to the ApsaraDB for MongoDB buy page.

  2. On the buy page, configure the following parameters.

    Parameter

    Description

    Example

    Product Type

    To create a standalone instance, select Replica Set (Pay-as-you-go), then set Number of Nodes to Standalone.

    Replica Set (Pay-as-you-go)

    Region

    Select the region where you want to deploy the instance.

    China (Hangzhou)

    Zone Type

    Select the zone type for the instance.

    Single-zone

    Zone

    Select the zone where you want to deploy the instance.

    Hangzhou Zone G

    Database Version

    Select MongoDB 4.0.

    MongoDB 4.0

    Number of Nodes

    Select Standalone to create a single-node instance.

    Standalone

    Number of Read-only Nodes

    This parameter is fixed to No Read-only Node.

    No read-only nodes

    Storage Engine

    This parameter is fixed to WiredTiger.

    WiredTiger

    Storage Type

    This parameter is fixed to ESSD PL1.

    ESSD PL1

    Resource Group

    Select a resource group for the instance.

    Default Resource Group

    Tag

    Add a tag to the instance.

    None

    Network Type

    This parameter is fixed to Proprietary Network.

    VPC

    VPC

    To connect from an ECS instance over a private network, select the same VPC.

    Use the Default VPC. If unavailable, create one in the VPC console.

    Default VPC

    vSwitch

    Select a vSwitch for the instance.

    Use the Default Switch. If unavailable, create one in the VPC console.

    Default Switch

    Instance Class

    This parameter is fixed to General-purpose Instance Type.

    General-purpose

    Specifications

    Select the instance specifications.

    1-core 2 GB (General-purpose)

    Storage Space

    Select the storage capacity for the instance.

    20 GB

    Username

    This parameter is fixed to root.

    root

    Set Password

    Click Set Now.

    If you select Set Later, you must reset the password before you connect to the instance.

    Set Now

    Password

    Enter and confirm the password for the root account.

    This password is for demonstration purposes only. Do not use it in a production environment.

    PassWord123!

    Instance Name

    Specify a custom name for the instance.

    Test instance

    Quantity

    Number of instances to create with the same configuration.

    1

  3. Click Buy Now.

  4. Confirm the Parameter Configuration and click Activate now.

  5. On the Opening completed page, click Console to go to the Instances page. You can view the newly created instance in the instance list.

    Instance creation takes 10-15 minutes. Refresh the page if the instance does not appear immediately.

Next steps

Configure a whitelist