tencent cloud

Feedback

Connection Management

Last updated: 2022-06-22 14:26:34

    You can view the client connection information of the current database in the TencentDB for MongoDB console, including the IPs and number of connections. In this way, you can adjust its configuration in real time to meet your growing business needs.

    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.

    Version Requirement

    • Replica set: Currently, TencentDB for MongoDB 4.2, 4.0, 3.6, and 3.2 support connection management.
    • Sharded cluster: Currently, TencentDB for MongoDB 4.0, 3.6, and 3.2 support connection management, while 4.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

    Directions

    Viewing the number of connections

    1. Log in to the TencentDB for MongoDB console.
    2. In the MongoDB drop-down list on the left sidebar, select Replica Set Instance or Sharded 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.
      ParameterDescription
      Real-Time connectionsNumber of all connections to the current database.
      Connection percentagePercentage of all client connections to the current database to the maximum number of connections.
      Maximum connectionsUpper limit of the number of connections.
      RemainingThe remaining usage duration of the increased upper limit.
      Client IPIP of a client connected to the database.
      ConnectionsNumber of connections.

    Increasing connections

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

      After the number of connections is increased, the connection limit will be raised to 20,000. If the service is affected, check it out as soon as possible during that time. Click OK to start execution.

    API Description
    DescribeClientConnections Queries the client connection information of instance
    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