tencent cloud

All product documents
TencentDB for Redis®
Adjusting the Number of Connections
Last updated: 2024-11-05 10:10:15
Adjusting the Number of Connections
Last updated: 2024-11-05 10:10:15

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

The database instance is in Running status, with no ongoing tasks.

Directions

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

Parameter
Description
Instance Name
Instance name information.
Instance Specs
Instance specification information, including shard quantity, total memory, and replica quantity. A standard architecture instance has only one shard.
Read-Only Replica
Set whether the read-only replica feature (read/write separation) is enabled.
Max Connections
Adjust the maximum number of connections on the slider.
Cluster architecture

Parameter
Description
Instance Name
Instance name information.
Instance Specs
Instance specification information, including shard quantity, shard capacity, and replica quantity.
Read-Only Replica
Set whether the read-only replica feature (read/write separation) is enabled.
Max Connections per Shard
Adjust the maximum number of connections to each shard on the slider.
Max Cluster Connections
The 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.
7. 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

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.
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 available.

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