This topic describes how to modify the maximum number of connections for a tenant proxy.
Applicability
At present, you can modify the maximum number of connections only for instances purchased from Alibaba Cloud.
Prerequisites
Before you modify the maximum number of connections for a tenant proxy, make sure that the following conditions are met:
The target proxy is running.
The tenant is running.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, find the target instance, click the instance name to go to the Overview page of the instance.
In the left-side navigation pane, click Database Proxy. You can view the database proxy information of each tenant in the instance.
Find the target tenant and view the tenant's endpoint information in the Endpoints column. Click the edit icon next to Maximum Connections.
On the page that appears, set Target Maximum Connections to the desired value. The adjustment increment is 100.
Note
- The maximum number of connections for the instance or tenant is recommended to be 400 connections per 1 GiB of memory. For example, if the tenant has 8 CPU cores and 16 GiB of memory, the recommended maximum number of connections is 16 × 400 = 6,400. The maximum number of connections for a tenant is shared by all database proxy addresses of the tenant. Please set the maximum number of connections for each proxy address based on your business needs.
- If the number of existing connections has exceeded the newly set target number of connections, some business requests may fail to connect to the database. In this case, if your business does not have automatic reconnection mechanisms, please manually trigger reconnection to the database.
Click OK.