This topic describes the concepts related to the database proxy service and how to enable and disable the proxy service.
Overview
ApsaraDB for OceanBase provides the database proxy service in the following two modes:
Shared proxy: In this mode, the database proxy service instance shares computing resources with other customers. The resource specifications of the database proxy service instance are allocated based on the cluster size. This mode is suitable for businesses with relatively stable and average traffic.
Exclusive proxy: In this mode, the database proxy service instance exclusively occupies computing resources. You can scale its resource specifications at any time based on your business needs. This mode is suitable for businesses with large traffic.
Proxy types
ApsaraDB for OceanBase provides the following two types of proxies:
Shared proxy: This type of proxies share CPU resources and are available for limited-time free trial.
Exclusive proxy: This type of proxies occupy exclusive CPU resources to deliver more stable performance and are billed in pay-as-you-go mode.
Limitations
At present, you can enable the proxy service only for a cluster instance rather than a tenant instance.
Enable the proxy service
Perform the following steps to enable the proxy service:
Log on to the ApsaraDB for OceanBase console.
In the left-side navigation pane, click Instances.
In the instance list, click the name of the target cluster instance to go to the Cluster Instance Workspace page.
In the left-side navigation pane, click Proxy Service. On the page that appears, click Enable Proxy Service.
In the Enable Proxy Service dialog box, specify Proxy Mode and Number of Units.
Parameter
Description
Proxy Mode
The proxy mode of ApsaraDB for OceanBase. Valid values:
Shared Proxy: In this mode, the proxy service instance shares computing resources with other customers. Therefore, resource contention may occur and cause unstable service performance.
Exclusive Proxy: In this mode, the proxy service instance of a customer occupies exclusive CPU resources and offers higher performance, stability, and security.
Number of Units
The number of proxies.
The value ranges from 1 to 4 if you set Proxy Mode to Shared Proxy.
The value ranges from 1 to 32 if you set Proxy Mode to Exclusive Proxy.
Disable the proxy service
After the proxy service is enabled, you can disable it as needed.
Log on to the ApsaraDB for OceanBase console.
In the left-side navigation pane, click Instances.
In the instance list, click the name of the target cluster instance to go to the Cluster Instance Workspace page.
In the left-side navigation pane, click Proxy Service. On the page that appears, click Disable Proxy Service in the upper-right corner.
NoteAfter the proxy service is disabled, it stops working. Access to the database will be interrupted for about 30s during the release of proxy resources. Proceed with caution.