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
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.
|
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
|
DescribeClientConnections | |
Was this page helpful?