On the Database Proxy page, you can view proxy cluster settings and endpoints, and create public or private connections.
Prerequisites
- You have created an instance and a tenant and obtained the public or private endpoint to manage.
- Project admins and instance admins can configure and delete public and private endpoints, while project members can only view the database proxy information.
View proxy basic information
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, click the name of the target instance to enter the Instance Workbench.
In the left-side navigation pane, click Database Proxy.
On the Database Proxy page, expand the row for a proxy cluster to view its tenants and endpoints. To filter the list by tenant, select a tenant from the drop-down list in the upper-right corner.
Proxy clustersTenants and endpointsParameterDescriptionProxy Cluster ID The unique identifier of the database proxy cluster. Spec Type The specification type used by the proxy cluster, such as Shared or Exclusive. Node Specification The number of CPU cores and the amount of memory per proxy node. Proxy Version The version of the database proxy software running on the cluster. Architecture Version The architecture version used by the proxy cluster. Node Distribution The number of proxy nodes in each zone. For example, 1-1means that each of two zones contains one node.Deployment Mode The current deployment mode. If a tag next to the mode indicates a pending switch, hover over it for details. Node Zone(s) The zones where the proxy nodes run. For a primary-standby deployment, the primary and standby zones are listed separately. Status The current status of the proxy cluster. Actions Click ··· > Change configuration to change the proxy cluster configuration. For instructions, see Change proxy cluster configuration. ParameterDescriptionTenant Name/ID The name and ID of the tenant that uses the proxy endpoint. Click the tenant name to view its details. Primary Zone The primary zone associated with this endpoint. Proxy Endpoint Info Shows the proxy endpoint name and read/write mode. For a primary endpoint, it also shows the default read consistency level and high availability status. To see all endpoint properties, hover over the details link. Endpoints Lists addresses and available actions by connection type. For example, you can obtain a public address or view an existing one. For a Private Link endpoint, you may be able to create the endpoint or retrieve its connection string. For an existing address, you can also view details such as the maximum number of connections when shown.
Change proxy cluster configuration
Notice
- For Alibaba Cloud instances, when the same database proxy cluster has both an original private connection address and a Private Link endpoint, you cannot change the database proxy configuration. First switch your applications to the Private Link endpoint, then delete the original private connection address after verifying that it is no longer in use.
- For more information about migration, see Connect using Alibaba Cloud Private Link.
Change proxy cluster configuration for AWS instances
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, click the name of the target instance to enter the Instance Workbench.
In the left-side navigation pane, click Database Proxy.
On the Database Proxy page, click ··· > Change configuration in the Actions column.
Update the settings in the dialog and click OK.
Configuration ItemDescriptionProxy Cluster Specification Type Select a proxy cluster specification type from the options shown in the console. - Serverless: The proxy scales automatically as traffic changes. This tier suits workloads with variable traffic and is currently free. For billing details, see the database proxy overview.
- Shared: Shared proxy clusters share compute resources with other customers and suit workloads with steady traffic.
- Exclusive: Exclusive proxy clusters use dedicated compute resources and are suited to high-traffic workloads. For more information about billing, see Database proxy billing.
Note
Serverless specifications are available only to allowlisted users on AWS.
Proxy Cluster Deployment Mode Select a proxy cluster deployment mode from the options shown in the console. - Single-zone deployment: All nodes run in the same zone and handle traffic.
- Dual-zone deployment: Nodes run in two zones.
- Primary-standby (Exclusive only): The primary node handles most of the traffic. The standby node handles 1%. Choose the client’s zone as the primary zone of the proxy cluster. Connections from the standby zone may be interrupted if a deployment mode change in the proxy cluster or database cluster takes that zone offline.
- Active-active: Both zones handle traffic.
- Three-zone deployment: Proxy nodes run in three zones. This mode is available only with the Exclusive tier.
- Primary-standby: The primary node handles most of the traffic. Each of the two standby nodes handles 1%.
- Multi-active: The three zones share traffic evenly.
Proxy Cluster Nodes The number of proxy cluster nodes. Target Node Zone(s) Select the zone for the proxy node. If the primary endpoint’s proxy runs outside the tenant’s primary zone, traffic crosses zones, which can increase SQL response times. Node Specification Select the target node specification. The following limits and increments apply to AWS instances: - Shared: The minimum is 1C 2G, with increments of 0.25C 0.5G.
- Exclusive: Specifications range from 1C 2G to 30C 60G, with increments of 1C 2G.
Change the configuration of an Alibaba Cloud proxy cluster
Warning
- For Alibaba Cloud instances, you can change the proxy specification type, deployment mode, node zones, and node specifications in the configuration dialog. You do not need to request access to use this configuration workflow.
- Changing the proxy configuration may briefly interrupt application connections. We recommend making changes during off-peak hours.
Log in to the OceanBase Cloud console and go to the target instance workspace.
In the left-side navigation pane, click Database proxy.
Find the target proxy cluster and click Change configuration.
If the proxy cluster serves multiple endpoints, select the target endpoint in Create a new cluster for the specified address. The public and private connections of a primary endpoint count as a single endpoint.
After you submit the configuration, the system creates a separate proxy cluster for the selected endpoint. The original cluster continues to serve the other endpoints.
Configure the following settings as needed. Enter the Alibaba Cloud primary account ID, VPC ID, and vSwitch ID only if network settings are displayed.
Configuration itemDescriptionProxy Cluster Specification Type Select Shared or Exclusive from the available options. Note
- You can select Shared for a new endpoint-specific proxy cluster only if you have enough shared quota for that cluster.
- When you change the configuration of an existing Shared proxy cluster, you can keep the Shared type and select a target specification within the range allowed on the page.
Proxy Cluster Deployment Mode Select an available deployment mode. - Single-zone deployment: All nodes run in the same zone.
- Dual-zone deployment: Nodes run in two zones.
- Primary-standby (Exclusive only): The primary node handles most of the traffic. The standby node handles 1%.
- Active-active: Both zones handle traffic.
- Three-zone deployment: Proxy nodes run in three zones. This mode is available only with the Exclusive tier.
- Three-zone Primary-standby Deployment: The primary node handles most of the traffic. Each of the two standby nodes handles 1%.
- Three-zone Multi-active Deployment: The three zones share traffic evenly.
Proxy Cluster Nodes View the node distribution for the target deployment mode. Target Node Zone(s) Select the target zone. For a primary-standby deployment, configure Target Primary Node Zone and Target Standby Node Zone separately. Target Node Specification Select the target node specification from the available options. Alibaba Cloud Primary Account ID Enter the primary Alibaba Cloud account ID that owns the target VPC. Note
This field is required only when you reconfigure a proxy for an original Alibaba Cloud private connection. You can skip it for a Private Link endpoint.
VPC Enter the ID of a target VPC in the same region as the instance. Note
This field is required only when you reconfigure a proxy for an original Alibaba Cloud private connection. You can skip it for a Private Link endpoint.
vSwitch Enter the ID of a vSwitch in the target VPC. We recommend selecting a vSwitch in the same zone as the primary proxy node to reduce cross-zone latency. After you change the VPC, check and update the vSwitch accordingly. Note
This field is required only when you reconfigure a proxy for an original Alibaba Cloud private connection. You can skip it for a Private Link endpoint.
Review the target configuration and click OK.
After the change is complete, check the proxy status, deployment mode, and proxy cluster associated with the target endpoint on the database proxy page.
Change proxy cluster configuration for Huawei Cloud instances
For Huawei Cloud instances, the configuration dialog provides specification type and size settings.
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, and go to the Instance Workbench.
In the left-side navigation pane, click Database Proxy.
On the Database Proxy page, click Change configuration in the Proxy Cluster Details column to modify the proxy specifications.
- Exclusive: The proxy cluster has dedicated compute resources that you can scale up as traffic grows. This option suits high-traffic workloads. Specifications range from 2C 4G to 30C 60G in increments of 2C 4G.
- Shared: The proxy cluster shares compute resources with other customers. Its specification is fixed based on the instance size. This option suits workloads with steady traffic. Specifications range from 2C 4G to 8C 16G in increments of 2C 4G.
Upgrade the proxy cluster architecture
Note
- For Alibaba Cloud instances, you must request allowlist access before upgrading the proxy cluster architecture. Contact OceanBase Technical Support to request access. Instances from other cloud providers can use this feature without allowlist access.
- Architecture upgrades are supported for Huawei Cloud, AWS, and Alibaba Cloud instances that run Database Proxy Service V4.3.3 or later.
You can upgrade a database proxy cluster to architecture version 2.0. For more information about the architecture, see Database proxy overview.
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, click the name of the target instance to go to Overview.
In the left-side navigation pane, click Database proxy.
In the upper-right corner of the Database Proxy page, click Upgrade architecture for all proxies.
In the dialog box that appears, confirm the upgrade details and click Upgrade.