tencent cloud

TencentDB for MongoDB

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Strengths
Use Cases
Cluster Architecture
Product Specifications
Features
Regions and AZs
Terms
Service Regions and Service Providers
Purchase Guide
Billing Overview
MongoDB Pricing
Billing Formula
Payment Overdue
Backup Space Billing
Configuration Adjustment Billing
Getting Started
Quickly Creating an Instance
Connecting to a TencentDB for MongoDB Instance
Reading/Writing Database
Operation Guide
Access Management
Instance Management
Node Management
Version Upgrade
Network Configuration
Monitoring
Backup and Rollback
Database Audit
Data Security
SSL Authentication
Log Management
Database Management
Multi-AZ Deployment
Disaster Recovery/Read-Only Instances
Parameter Configuration
Recycle Bin
Task Management
Performance Optimization
Data Migration Guide
Practical Tutorial
Optimizing Indexes to Break Through Read/Write Performance Bottlenecks
Troubleshooting Mongos Load Imbalance in Sharded Cluster
Considerations for Using Shard Clusters
Sample of Reading and Writing Data in MongoDB Instance
Methods for Importing and Exporting Data Based on CVM Connected with MongoDB
What to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
Troubleshooting MongoDB Connection Failures
Shard Removal Task: Guide for Confirming the Progress and Troubleshooting Issues
Performance Fine-Tuning
Ops and Development Guide
Development Specifications
Command Support in Sharded Cluster v3.2
Command Support in v3.6
Development Ops
Troubleshooting
Increased Slow Queries
Number of Connections Exceeding Limit
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Backup APIs
Account APIs
Other APIs
Task APIs
Introduction
Data Types
Error Codes
Instance Connection
Shell Connection Sample
PHP Connection Sample
Node.js Connection Sample
Java Connection Sample
Python Connection Sample
Python Read/Write Sample
Go Connection Sample
PHP Reconnection Sample
Product Performance
Test Environment
Test Method
Test Result
FAQs
Cost
Features
Sharded Cluster
Instance
Rollback and Backup
Connection
Data Migration
Others
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

Billing Formula

PDF
フォーカスモード
フォントサイズ
最終更新日: 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.
-

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック