tencent cloud

Billing Formula
Last updated:2025-05-12 15:15:00
Billing Formula
Last updated: 2025-05-12 15:15:00
TencentDB for MongoDB generally consists of 3 or more nodes, with each node comprising 2 components: computing (with specified specifications) and storage (with a certain capacity of cloud disk).

Replica Set

Billing Formula

Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Capacity of a single Mongod node) x (Number of primary/secondary nodes + Number of read-only nodes) x Billing duration

Example

When you purchase a replica set instance in the Guangzhou region, the detailed fee calculation is shown in the table below.
Note:
The following price cases are for reference only. Actual prices may vary by factors such as regions, promotion, and policies. See the official website for the latest price.
Billing Item
Purchase Details
Unit Price (USD/GB/Hour)
Calculation Formula
Region
Guangzhou
-
Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Capacity of a single Mongod node) x (Number of primary/secondary nodes + Number of read-only nodes) x Billing duration = (0.01521164 x 4 + 0.000138857 x 100) x (3 + 1) x 96 = 28.69718784 USD
Instance type
Replica set instance
-
Billing duration
4 days
-
Mongod specifications
2 cores and 4 GB
0.01521164
Mongod disk capacity
100 GB
0.000138857
Number of primary/secondary nodes
3 nodes (1 primary node and 2 secondary nodes)
-
Number of read-only nodes
1
-

Sharded Cluster

For a sharded cluster, Mongos will have the default specifications once the Mongod specifications are configured. For example, if Mongod is configured with 2 cores and 4 GB, the configuration for Mongos is 1 core and 2 GB by default. For instances deployed in a single AZ, default specifications of Mongos include 3 free nodes; whereas for instances deployed across multiple AZs, default specifications of Mongos include 6 free nodes. Increasing Mongos quantity or upgrading the computing specifications of Mongos will incur fees.

No Fees Incurred by Mongos When the Default Configuration Is Used

Calculation Formula

Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Capacity of a single Mongod node) x Number of Mongod shards x (Number of primary/secondary nodes per shard + Number of read-only nodes) x Billing duration
The default configuration provides 3 free Mongos nodes for single-AZ deployment and 6 free Mongos nodes for multi-AZ deployment.

Example

When you purchase a single-AZ sharded cluster instance in the Guangzhou region, if the default configuration for Mongos is kept, the detailed fee calculation is shown in the table below.
Note:
The following price cases are for reference only. Actual prices may vary by factors such as regions, promotion, and policies. See the official website for the latest price.
Billing Item
Purchase Details
Unit Price
(USD/GB/Hour)
Calculation Formula
Region
Guangzhou
-
Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Capacity of a single Mongod node) x Number of Mongod shards x (Number of primary/secondary nodes per shard + Number of read-only nodes) x Billing duration = (0.01521143 x 4 + 0.00013889 x 100) x 2 x (3 + 1) x 96 = 57.39626496 USD
Instance type
Sharded cluster
-
Billing duration
4 days (96 hours)
-
Mongod specifications
2 cores and 4 GB
0.01521143
Mongod disk capacity
100 GB
0.00013889
Mongos specifications
Default specifications: 1 core and 2 GB (no fees incurred when the default configuration is used)
-
Number of Mongod shards
2
-
Number of primary/secondary nodes per shard
3 nodes (1 primary node and 2 secondary nodes)
-
Number of read-only nodes
1
-
Mongos quantity
Default quantity: 3
-

Upgrading the Mongos Specifications and Increasing the Quantity

Billing Formula

Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Disk capacity of a single Mongod node) x Number of Mongod shards x (Number of primary/secondary nodes per shard + Number of read-only nodes) x Billing duration + (Memory price for a single Mongos node x Memory of a single Mongos node x Total Mongos quantity - Price for free Mongos instances) x Billing duration
The price for free Mongos instances refers to default specifications of Mongos after the Mongod is configured. The default specifications provide 3 free instances for single-AZ deployment and 6 free instances for multi-AZ deployment.
Mongod Specifications
Default Specifications of Mongos
2 cores and 4 GB
1 core and 2 GB
4 cores and 8 GB
2 cores and 4 GB
6 cores and 16 GB
4 cores and 8 GB
12 cores and 32 GB
8 cores and 16 GB
24 cores and 64 GB
8 cores and 16 GB
24 cores and 128 GB
8 cores and 16 GB
32 cores and 240 GB
8 cores and 16 GB
48 cores and 512 GB
8 cores and 16 GB

Example

When you purchase a sharded cluster instance in the same AZ in the Guangzhou region, the configuration is as follows: The Mongod specifications are 2 cores and 4 GB; the Mongos configuration is upgraded to 2 cores and 4 GB; the number of Mongod shards is 2, with each shard having 3 nodes (1 primary node and 2 secondary nodes). The Mongos quantity increased to 5, meaning adding 2 Mongos nodes. The disk capacity is 100 GB. The detailed fee calculation is shown in the table below.
Note:
The following price cases are for reference only. Actual prices may vary by factors such as regions, promotion, and policies. See the official website for the latest price.
Billing Item
Purchase Details
Unit Price
(USD/GB/Hour)
Calculation Formula
Region
Guangzhou
-
Instance fee = Computing fee + Storage fee = (Memory price for a single Mongod node x Memory of a single Mongod node + Storage price for a single Mongod node x Disk capacity of a single Mongod node) x Number of Mongod shards x (Number of primary/secondary nodes per shard + Number of read-only nodes) x Billing duration + (Memory price for a single Mongos node x Memory of a single Mongos node x Total Mongos quantity - Price for free Mongos instances) x Billing duration = (0.01521143 x 4 + 0.00013889 x 100) x 2 x (3 + 1) x 96 + (0.01521143 x 4 x 5 - 0.01521143 x 2 x 3) x 96 = 79.84042688 USD
Instance type
Sharded cluster
-
Billing duration
4 days
-
Mongod specifications
2 cores and 4 GB
0.01521143
Mongod disk capacity
100 GB
0.00013889
Mongos specifications
Upgraded specifications: 2 cores and 4 GB. The default specifications are 1 core 2 GB. The default specifications provide 3 free instances for single-AZ deployment.
0.01521143
Number of Mongod shards
2
-
Number of primary/secondary nodes per shard
3 nodes (1 primary node and 2 secondary nodes)
-
Number of read-only nodes
1
-
Mongos quantity
Default quantity: 3; additional quantity: 2.
-
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback