tencent cloud

Feedback

Creating TencentDB for MongoDB Instance

Last updated: 2022-03-30 10:02:48

    The TencentDB for MongoDB console makes working with database instances simple without having to write code or run programs.

    Prerequisites

    You have registered a Tencent Cloud account and completed identity verification.

    Directions

    1. Log in to the TencentDB for MongoDB purchase page with a Tencent Cloud account.

    2. Specify instance configurations as needed. Required configuration items are as follows.

      Configuration ItemDescription
      Billing Mode Pay-as-you-go is supported. For more information, see Billing Overview.
      Region Select a region where your instance resides. We recommend you select a region closest to you to reduce access latency.
      • Note that the region cannot be changed after the instance is successfully created.
      • We recommend that you select the same region as the CVM instance for private network communication.
      Availability Zone Both single-AZ and multi-AZ deployment schemes are supported.
      • Select an AZ in the region where the instance resides.
      • If you select multi-AZ deployment, select AZs for the primary node, secondary node 1, and secondary node 2. To ensure successful cross-AZ switch, multi-AZ deployment only supports deploying instance nodes to three AZs.
      Configuration Type Select the configuration type of the instance. Ten-Gigabit High IO is selected by default.
      Version Select the database version. MongoDB 4.2, 4.0, 3.6, and 3.2 are supported. For more information, see Storage Engine and Version.
      Engine The default storage engine is WiredTiger. Only MongoDB 3.2 supports Rocks. For more information, see Storage Engine and Version.
      Instance Type Select the instance architecture. Replica set and sharded cluster are supported. For more information, see System Architecture.
      • For a replica set instance, the one-primary-two-secondary architecture is adopted by default.
      • For a sharded cluster instance, you need to specify the number of shards and the number of nodes per shard.
      Shard Quantity Set the number of shards for a sharded cluster instance. Value range: [2,20]. The more the shards, the larger the cluster storage capacity.
      Nodes per Shard Set the number of nodes per shard for a sharded cluster instance. By default, each shard has one primary node and two secondary nodes, which currently cannot be modified.
      mongos Specs You can select the mongos specification for a MongoDB 4.2 sharded cluster instance.
      mongos Quantity You can set the number of mongos for a MongoDB 4.2 sharded cluster instance. Value range: [3,32].
      configServer Specs For a MongoDB 4.2 sharded cluster instance, the default specification of configServer is 1 core, 2 GB memory, 20 GB storage, and three replicas, which cannot be modified.
      configServer Storage For a MongoDB 4.2 sharded cluster instance, the default specification of configServer is 1 core, 2 GB memory, 20 GB storage, and three replicas, which cannot be modified.
      mongod Specs Select the computing specification for your database instance. For available computing specifications, see Billing Overview.
      Capacity It is the disk capacity of each mongod node. After you select the mongod computing specification, the default disk capacity will be matched, and you can also select another capacity on the slider as needed. Here, the default oplog storage space is 10% of the selected storage capacity.
      Network Both VPC (recommended) and classic network are supported. If you select the private network, only devices in the selected subnet can access the database instance. If you select the classic network, only devices in the selected classic network can access the database instance. If you need new networks, you can create VPCs or subnets.
      IP Version IPv6 address access is currently not supported.
      Project Assign your instance to a project for easy management.
      Tag Add tags to your instance for easy classification and management. Click Add to select tag keys and values.
      Instance Name You can select Set After Creation or Set Now.
      The instance name can contain up to 60 letters, digits, or symbols (-_).
      Set a password Set Now is selected by default.
      Username Default instance username. In MongoDB 3.2, `rwuser` and `mongouser` are the default users. In versions later than MongoDB 3.2, `mongouser` is the default user. After the instance is created, you can create custom accounts.
      Password Set a password for the default instance user. Required password strength:
      • It must contain 8-32 characters.
      • It supports uppercase letters, lowercase letters, and digits.
      • It supports the following symbols: !@#%^*()_
      • It cannot all be letters or digits.
      Confirm Password Enter your password again.
      Security Group Set security group rules to control the inbound/outbound traffic to/from your instance. You can either select a security group from the Existing Security Groups drop-down list or click Custom Security Groups to create one and set inbound/outbound rules. For more information, see Security Group.
      Quantity You can purchase up to 30 pay-as-you-go instances in each region and up to ten instances each time.
    3. Click Billing Details to view product pricing and confirm the total fees.

    4. Click Buy Now. After the purchase success message is displayed, click Go to Console to enter the instance list page. After the instance's status becomes Running, you can use it.

    API

    For more information on how to create TencentDB instances via the API, see CreateDBInstanceHour.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support