tencent cloud

Feedback

Creating TencentDB for MongoDB Instance

Last updated: 2022-08-29 17:44:43

    Overview

    The TencentDB for MongoDB console makes working with database instances simple with no need to write code or run programs. This document describes how to purchase and configure a TencentDB for MongoDB instance as described in Viewing Instance Details.

    Prerequisites

    • You have registered a Tencent Cloud account and completed identity verification.
    • You have determined a region and AZ for the instance. For more information, see Regions and AZs.
    • You have determined the specification and performance requirements of the instance. For more information, see Product Specifications and Performance.
    • You have determined a VPC and security group for the instance. For more information, see Creating VPC and Configuring Security Group. Currently, access over the public network isn't supported.
    • You have checked out the billing details of the instance. For more information, see Billing Overview. Database fees for one hour will be frozen when you create a pay-as-you-go database. Make sure that your account balance is sufficient before making a purchase.
    • You have determined the business project of the instance. You can create a project in Project Management in the Account Center.
    • You have understood the differences between each database versions. For more information, see Storage Engine and Version.

    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.
      ParameterDescription
      Billing Mode Pay-as-you-go is supported. For more information, see Billing Overview.
      Region Select a region where your instance resides. You should 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 you select the same region as the CVM instance for private network communication.
      Database Version Select a database version from 4.2, 4.0, 3.6, and 3.2. Currently, v3.2 is no longer purchasable. We recommend you select a later version. For more information on how to select an appropriate version, see the version description in Storage Engine and Version. After purchasing a instance, you can upgrade its major version from 3.6 to 4.0 or from 4.0 to 4.2. Cross-major version upgrade isn't supported. For detailed directions, see Version Upgrade.
      Architecture Type Select a system architecture for the instance cluster. Supported architectures include replica set, sharded cluster, and single-node. The single-node architecture is no longer purchasable. You need to understand the use cases of different architectures and select an appropriate one based on the actual data volume of your business. For more information, see System Architecture. Currently, architecture upgrade isn't supported.
      Storage Engine The default storage engine is WiredTiger.
      Mongod Specification Select the computing specification of the instance in the drop-down list. The higher the specification, the higher the IOPS. For supported specifications, see Billing Overview. After creating an instance, you can adjust its computing specification as instructed in Adjusting Instance Specification.
      Mongod Shard Quantity This parameter will be displayed if you select Sharded Cluster for Architecture Type. It is used to set the mongod shard quantity in a sharded cluster instance, and its value range is [1,20]. Each shard is a replica set. The more the shards, the larger the cluster storage capacity. You can select a shard quantity as needed. After creating an instance, you can adjust the shard quantity as instructed in Adjusting Instance Specification.
      Disk Capacity Select the storage capacity of the instance on the slider. The range of the disk capacity varies by mongod specification. For more information, see Product Specifications. The default oplog storage space is 10% of the selected storage capacity. You can adjust the oplog capacity in the instance list in the console as instructed in Adjusting Oplog Capacity. After creating an instance, you can adjust its disk capacity as instructed in Adjusting Instance Specification.
      Number of primary and secondary nodes This parameter will be displayed if you select Replica Set for Architecture Type. It is one-primary-two-secondary architecture with three storage nodes by default. Currently, you cannot customize the number of secondary nodes. You can select five (one-primary-four-secondary) or seven (one-primary-six-secondary) nodes in the drop-down list. After creating the instance, you can add more secondary nodes per shard as instructed in Adding Secondary Node.
      Number of primary and secondary nodes per shard The number of nodes per shard in a sharded cluster instance. This parameter will be displayed if you select Sharded Cluster for Architecture Type. The system adopts a one-primary-two-secondary architecture with three nodes by default, that is, each shard has three nodes in a in one-primary-two-secondary architecture. You can select five (one-primary-four-secondary) or seven (one-primary-six-secondary) nodes in the drop-down list. Currently, you cannot customize the number of nodes. After creating the instance, you can add more secondary nodes per shard as instructed in Adding Secondary Node.
      Read-Only Node Count The number of read-only nodes. You can configure 0 or 1–5 read-only nodes. Currently, only v4.0 and v4.2 support this parameter, while v3.6 doesn't. After creating the instance, you can add more read-only nodes as instructed in Adding Read-Only Node.
      Configuration Description This parameter calculates the maximum number of connections to the instance based on the configured mongod specification to help you determine whether the current specification meets the expectation.
      Mongos Specification Mongos specification. This parameter will be displayed if you select Sharded Cluster for Architecture Type.
      • After you configure the mongod specification, the corresponding mongos specification will be selected by default. For example, if you select 2-core 4 GB MEM for mongod, the mongos specification will be configured as 1-core 2 GB MEM by default. After the mongos specification is upgraded, fees will be charged based on the new specification. For more information, see MongoDB Pricing.
      • The number of connections to the sharded cluster instance is subject to the selected mongos node specification and quantity. You can view the maximum number of connections of the instance in Configuration Description.
      • After creating the instance, you can adjust the mongos specification as instructed in Adjusting Mongos Node Specification.
      Mongos Quantity Mongos node quantity. This parameter will be displayed if you select Sharded Cluster for Architecture Type. If the instance is deployed in the same AZ, it can contain 3–32 mongos nodes. If you select Multi-AZ Deployment for AZ to deploy the instance across different AZs, the instance can contain 6–32 mongos nodes.
      • Added mongos nodes will incur fees. For more information, see MongoDB Pricing.
      • After creating the instance, you can adjust the mongos node quantity as instructed in Adding Mongos Node.
      Network You can select VPC only.
      AZ Enable Multi-AZ Deployment as needed. Multi-AZ deployment refers to deploying an instance across different AZs in the same region. Compared with single-AZ deployment, it has a higher availability and disaster recovery capability.
      • If your instance is deployed in the same AZ, select an AZ for the primary node in the drop-down list after Primary Node.
      • If your instance is deployed across different AZs, select an AZ for the primary node in the drop-down list after Primary Node and specify the AZ for each secondary node in each drop-down list after **Secondary Node n** (n=1,2,3,4,5,6).
      • If the read-only node count is configured, configure the AZ for each read-only node.
      After creating the instance, you can modify the instance AZ.
      IPv4 Network You should select a specific VPC and subnet, preferably the same VPC in the same region as the CVM instance. VPCs are region-specific (e.g., Guangzhou), while subnets are AZ-specific (e.g., Guangzhou Zone 1). One VPC can be divided into one or multiple subnets, which are interconnected over the private network by default. Different VPCs are isolated over the private network by default, no matter whether they are in the same or different regions. You can switch the VPC after instance purchase as instructed in Configuring Network. You can also click Create VPCs and Create Subnets to create a required network environment as instructed in Creating VPC.
      IPv6 Network Select whether to enable access over IPV6. This feature is not supported currently.
      Security Group Set security group rules to control the inbound traffic to your database. 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 rules. For more information, see Security Group.
      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 Set the instance name. The default name is `500`.
      You can enter up to 60 letters, digits, hyphens, and underscores.
      Set Password Set the password verification mode of the instance.
      • Password Authentication: You need to set an instance password for database access.
      • Password-Free Access: You don't need to set a password. For more information, see Accessing Instance Without Authentication.
      Password The access password of the instance. This parameter will be displayed if you select Password-Free Access for Set Password. 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.
      Quantity You can purchase up to 30 instances in each region and up to 10 instances each time.
      Total Fees
      • Hourly fees will be displayed if you select **Pay as You Go**. For more information, see MongoDB Pricing.
    3. After verifying that the parameters are correctly configured, click Buy Now. After the purchase success message is displayed, click Go to Console. After the instance's status becomes Running in the instance list, you can use it.

    Subsequent operations

    API Description
    CreateDBInstanceHour Creates a pay-as-you-go TencentDB instance.
    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