Create an ApsaraDB for MongoDB Serverless instance (Discontinued for new purchases)

更新时间:
复制 MD 格式

ApsaraDB for MongoDB offers Serverless instances that are ideal for small and medium-sized businesses. This topic describes how to create an ApsaraDB for MongoDB Serverless instance.

Prerequisites

You have registered an Alibaba Cloud account. For more information, see Sign up with Alibaba Cloud.

Precautions

Billing

ApsaraDB for MongoDB Serverless instances support the subscription billing method. For more information about billing, see Billing items and pricing.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the navigation pane on the left, click Serverless Instances.
  3. On the Serverless Instances page, click Create Instance.
  4. In the Product Type section, select Serverless (Preset Capacity).
  5. Set the following parameters for the Serverless instance.
    ParameterDescription
    RegionSelect the region where the instance resides.
    Note
    • After an instance is created, you cannot change its region. Select a region with caution.
    • If your application is deployed on an ECS instance, select the same region as the ECS instance. Otherwise, the instances cannot communicate over the internal network.
    ZoneSelect the zone where the instance resides.
    Note
    • If your application is deployed on an ECS instance, we recommend that you select the same zone as the ECS instance to reduce network latency.
    • You can select multiple zones to implement zone-disaster recovery.
    VPCSelect a VPC for the instance. If you do not have a VPC available, you can create one in the VPC console. For more information, see Create and manage a VPC.
    Note To change the network type, see Switch the network type of an instance.
    vSwitchSelect a vSwitch for the instance. If you do not have a vSwitch available, you can create one in the VPC console. For more information, see Create and manage a vSwitch.
    Compute SpecificationSelect the compute specification of the instance. Valid values: 100 to 8,000 compute units (CUs). The step size is 100 CU.
    Storage SpaceSelect the storage capacity of the instance. Valid values: 1 GB to 100 GB. The step size is 1 GB.
    PasswordSet the password for the database account. The password must meet the following requirements:
    Important After a Serverless instance is created, the system provides a default database account. You cannot create new database accounts.
    • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters are:

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

    • The password must be 8 to 32 characters in length.
    Instance NameThe custom name of the instance.
    QuantitySelect the number of instances that have the same configuration. You can specify an integer from 1 to 99.
    Subscription DurationSelect a subscription duration. You can select 1, 7, or 14 days. You can also select a monthly subscription of 1 to 9 months, or an annual subscription of 1 to 5 years.
  6. Purchase the instance.
    1. After you configure the instance, click Buy Now.
    2. On the Confirm Order page, review the configuration details, and then read and select the Terms of Service.
    3. Click Proceed to Payment and complete the payment on the Payment page as prompted.
  7. Verify that the Serverless instance is created.
    1. After you complete the payment, click Management Console to navigate to the ApsaraDB for MongoDB console.
    2. In the upper-left corner of the page, select the resource group and region of your instance.
    3. In the navigation pane on the left, click Serverless Instances.
    4. Verify that the new instance appears in the Serverless instance list.
      • Yes. The instance is successfully created when its status is Running.
      • If the instance is not in the list, wait 10 to 15 minutes and then refresh the page. If the instance still does not appear in the list, check for the following possible causes. If the issue persists, contact Alibaba Cloud technical support.
        The following table describes possible causes and solutions.
        Possible causeSolution
        Incorrect region selectedIn the upper-left corner of the ApsaraDB for MongoDB console, select the resource group and region where the instance is located.
        Incorrect instance list selectedIn the navigation pane on the left of the ApsaraDB for MongoDB console, select Serverless Instances.
        Insufficient resources

        The payment for a new instance may be refunded due to insufficient resources.

        After you confirm the refund, select another zone and try to purchase an instance again.

Related API operations

API operationDescription
DescribeInstanceAutoRenewalAttributeQueries whether auto-renewal is enabled for an ApsaraDB for MongoDB instance.
DescribeDBInstanceAttributeQueries the details of an ApsaraDB for MongoDB instance.

What to do next

After the instance is created, perform the following operations: