tencent cloud

All product documents
TencentDB for MongoDB
Connection Management
Last updated: 2024-01-15 14:40:06
Connection Management
Last updated: 2024-01-15 14:40:06

Overview

TencentDB for MongoDB records the IPs of clients connected to the current instance and the number of connections. When there is a large number of concurrent application requests, if the configured upper limit of connections is insufficient, the current database specification cannot sustain such requests. In this case, you can directly increase the upper limit in the console to sustain business peaks.

Version description

Replica set: All TencentDB for MongoDB versions support connection management.
Sharded cluster: TencentDB for MongoDB 3.2, 3.6, 4.0, 4.4, and 5.0 support connection management, while v4.2 doesn't.

Notes

The system records the IPs of clients connected to the current instance and the number of connections. You can choose to manually release connection requests.
If the number of connections reaches or exceeds 80% of the upper limit and affects the establishment of new connections, you can click Increase Connections in the console to increase the maximum number of connections to 150% of the original limit for the next 6 hours.
If the problem persists, contact the aftersales service or submit a ticket for assistance.

Prerequisites

You have created a TencentDB for MongoDB instance. For more information, see Creating TencentDB for MongoDB Instance.
The TencentDB for MongoDB replica set or sharded cluster instance is in Running status.

Directions

Viewing the number of connections

2. In the MongoDB drop-down list on the left sidebar, select Replica Set Instance or Sharded Cluster Instance. The directions for the two types of instances are similar.
3. Above the Instance List on the right, select the region.
4. In the instance list, find the target instance.
5. Click the target instance ID to enter the Instance Details page.
6. Select the Database Management > Manage Connection tab.
7. View all client connection statistics of the current database.
Parameter
Description
Real-time connections:
Number of all connections to the current database.
Connection percentage
Percentage of all client connections to the current database to the maximum number of connections.
Maximum connections
Upper limit of the number of connections.
Remaining
The remaining usage duration of the increased upper limit.
Client IP
The client IP from which the database is connected.
Connections
Number of connections.

Increasing connections

1. On the Manage Connection tab, click Increase Connections.
2. In the Note window, confirm the notes and click OK.

Related APIs

API
Description
DescribeClientConnections

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon