Main Concepts
Instance Types
The types of MongoDB instances include: data nodes, routing nodes, and configuration nodes. Data nodes can form a replica set, while configuration nodes, routing nodes, and replica sets can be used to build a sharded cluster.
Nodes
The types of MongoDB nodes include Primary, Secondary, Configsvr, and Mongos.
Primary Nodes: These are the master nodes of the replica set. By default, the replica set is a three-node replica set architecture that supports changing the replica set node configuration and increasing or decreasing the number of nodes in the replica set.
Secondary Nodes: These are the slave nodes of the replica set. They can provide read services. Adding secondary nodes can increase the read service capability and availability of the replica set.
Mongos nodes: serve as service proxies. A single sharded cluster instance can support multiple Mongos nodes.
Configsvr nodes: these are the main configuration nodes for the cluster.
Versions
Currently, MongoDB supports MongoDB 3.6 and MongoDB 4.2. Users can choose the appropriate cloud database version based on their needs.
Replica Sets
By default, you can construct a replica set of 3 nodes with one click: Primary node + two Secondary nodes. You can also choose to create a replica set of 5 nodes or 7 nodes: suitable for business scenarios that require higher database read performance, such as read-write scenarios or sudden business needs for promotional activities.
Sharded Clusters
The console supports the creation of sharded clusters, consisting of Configsvr three replicas + N Mongos + M data shards. Each data shard is a complete P-node replica set: composed of Primary node + (P-1) Secondary nodes. The quantity of router nodes and data shards can be increased or decreased depending on the business data situation. By default, sharded clusters with three replicas of Configsvr support MongoDB 3.6 and MongoDB 4.2 versions.
Compute Specifications
The size of CPU and memory of the cloud database node. Users can make a selection based on their hardware requirements for the cloud database.
Disk
The size of the cloud database disk. Users can make a selection based on their hardware requirements for the cloud database.
Payment Method
Payment methods are divided into annual, monthly, and on-demand options, and all payment methods are prepaid, i.e., the fee for the corresponding service period is paid in advance.
Please refer to the “Purchasing and Billing” documentation for specific billing instructions.
Quantity
The number of cloud databases that users need to apply for. The default is 1 unit, and multiple units can be selected for batch creation.
Administrator
The default is to provide super administrator (root) privileges, allowing users to customize the administrator password.
Database Name
Users can customize the name of the cloud database instance.
Resource ID
After the user creates a cloud database instance, the system will automatically generate a Resource ID, which is globally unique.
IP and Port
The IP is the internal network address for users to access the cloud database. It will be automatically generated after the cloud database is successfully created, and currently, no external network IP is provided.
The default port for MongoDB is 27017.