tencent cloud

Feedback

Adjusting the Number of Connections

Last updated: 2022-07-11 15:57:31

    Overview

    If the current database specification can‘t sustain massive concurrent application requests due to insufficient connections, Connection Utilization may get too high. To handle such access spikes, you can directly increase the number of maximum connections in the console.

    Notes

    A single shard can sustain up to 10,000 connections by default, and the maximum number of connections to the entire instance is the maximum number of connections per shard multiplied by the shard quantity. A standard architecture instance has only one shard.

    When you adjust the number of connections, the value range per shard is as detailed below:

    • If the read-only replica feature is disabled
      The maximum number of connections to each shard can be 10000–40000.
    • If the read-only replica feature is enabled
      The maximum number of connections to each shard can be 10000–10000 * (replica quantity + 3).

    Notes

    • Increasing the maximum number of connections has no impact on the business.
    • If the maximum number of connections is decreased, new connections may fail to be established when the number of connections reaches the upper limit.
    • If the problem persists after you increase the maximum number of connections, contact the aftersales service or submit a ticket for assistance.

    Prerequisites

    Directions

    1. Log in to the TencentDB for Redis console.
    2. Above the instance list on the right, select the region.
    3. In the instance list, find the target instance.
    4. Click the target instance ID to enter the Instance Details page.
    5. In the Network Info section on the Instance Details page, you can view the instance's current maximum number of connections after Max Connections. Click Adjust.
    6. In the Adjust Max Connections window, confirm the instance information and specification and increase the value.
    • Standard architecture
      ParameterDescription
      Instance NameInstance name information.
      Instance SpecsInstance specification information, including shard quantity, total memory, and replica quantity. A standard architecture instance has only one shard.
      Read-Only ReplicaSet whether the read-only replica feature (read/write separation) is enabled.
      Max ConnectionsAdjust the maximum number of connections on the slider.
    • Cluster architecture
      ParameterDescription
      Instance NameInstance name information.
      Instance SpecsInstance specification information, including shard quantity, shard capacity, and replica quantity.
      Read-Only ReplicaSet whether the read-only replica feature (read/write separation) is enabled.
      Max Connections per ShardAdjust the maximum number of connections to each shard on the slider.
      Max Cluster ConnectionsThe maximum number of connections to the entire instance is calculated automatically, which is the maximum number of connections per shard multiplied by the shard quantity.
    1. Click OK. On the left sidebar, you can click Task Management to view the task progress. After the task is executed, you can view the new maximum number of connections to the entire instance after Max Connections in the Network Info section on the Instance Details page.
    API Description
    describeInstances Queries the list of instances.

    FAQs

    If you find that Connection Utilization in System Monitoring is too high, adjust the maximum number of connections as instructed in High Connection Utilization.

    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