You can create an OBProxy cluster by specifying its basic information, deployment mode, and advanced settings. Then, you can add OBProxies to the OBProxy cluster or connect the OBProxy cluster to an OceanBase cluster.
Prerequisites
You have the OBPROXY_MANAGER role or the permissions to manage OBProxies.
Procedure
Log on to the OCP console.
In the left-side navigation pane, click OBProxy to go to the OBProxy page.
Click Create OBProxy Cluster in the upper-right corner. The Create OBProxy Cluster page appears.
Specify the parameters of the OBProxy cluster in the Basic Information section.
Parameter Description Cluster Name You can customize the cluster name. The value must start with a letter and can contain letters, digits, and underscores (_). root@proxysys Password The password of the root@proxysys account used to log on to the OBProxy for managing proxy parameters. This password can be customized or randomly generated. The password must meet the following complexity requirements: - It must be 8 to 32 characters long.
- It must contains at least three of the following character types: digits(0~9), uppercase letters(A~Z), lowercase letters(a~z), and special characters (ie:
~!@#%^&*_-+=|(){}[]:;,.?/).
Software Version The OBProxy software version. - If the required version is available in the drop-down list, simply choose it from the list.
- If the required version is unavailable in the drop-down list, click Add Version at the bottom of the drop-down list to upload the required version.
Note
You can only select OBProxy software packages of V1.8.0 or later. For security reasons, it is recommended to choose the software package of V3.1.0 or later.
Enter the password of the proxyro user The password of the proxyro account for OBProxy to access an OceanBase Database cluster. This parameter is displayed only when the software version of OBProxy is earlier than V4.0. If this parameter is not specified, the default password of the proxyro account will be used. The password must meet the following complexity requirements: - It must be 8 to 32 characters long.
- It must contains at least three of the following character types: digits(0~9), uppercase letters(A~Z), lowercase letters(a~z), and special characters (ie:
~!@#%^&*_-+=|(){}[]:;,.?/).
Manage Load Balancer After load balancing management is enabled, you can configure OceanBase Load Balancer (OBLB) to improve the load balancing capability of an OBProxy cluster. - OBLB Service: You can select the OBLB service configured when OCP is deployed, or click Add OBLB Service and then add the OBLB service on the right-side pane. For more information, see Add a load balancer in Manage load balancing.
- OBLB Service Address: the address of the OBLB service.
- OBLB Service Port: the port of the OBLB service. The default service port is 9090. You can change the service port as needed.
- Username & Password: the username and password of the OBLB service, which are used to get the authentication information about the OBLB interface.
- VIP: the virtual IP address of the OBLB service.
- Access Port: The default access port is 2883. You can change the access port.
- Domain Name Configuration (optional): the configuration that points to the virtual IP address (VIP) and port. The platform does not provide the mappings between VIPs and domain names. You must configure the domain name resolution service.
Note
- This topic applies only to OceanBase Cloud Platform Enterprise Edition. OceanBase Cloud Platform Community Edition does not support the load balancing.
- The Alibaba Cloud SLB Service in the Manage Load Balancer section applies only to the Apsara Stack environment. We recommend that you contact Technical Support for assistance.
- If you deploy OBLB and OBProxy on the same host, access ports for OBLB must be different from SQL ports for OBProxy. Otherwise, applications cannot connect to the database.
Access URL The access URL of the OBProxy cluster. This parameter is displayed when Manage Load Balancer is disabled. In this case, you need to manually configure load balancing. The access URL is only used to generate a connection string for the tenant. If the access URL is a VIP, you must apply for the VIP and bind it to the OBProxy server. Access Port Number The access port number. The default port number is 2883. You must specify the actual port number based on the VIP. This parameter is displayed when Manage Load Balancer is disabled. Startup Method The startup method of the OBProxy cluster. Valid values: - ConfigUrl: specifies the multicluster startup method, where the OBProxy cluster can access multiple OceanBase clusters.
- RsList: specifies the single cluster startup method. The OBProxy cluster can access only the OceanBase cluster specified when the OBProxy cluster is created. After an OBProxy cluster is created, no more connectable OceanBase clusters can be added.
Select Accessible OceanBase Clusters The OceanBase clusters that are accessible to the OBProxy cluster. - This parameter is optional if you set Startup Method to ConfigUrl. After you create an OceanBase cluster, you can select the cluster here. For more information, see Add a connectable OceanBase cluster.
- You must specify the value of this parameter when Startup Method is RsList. Select the OceanBase cluster from the drop-down list.
- If the password box contains the credentials of the proxyro user of the cluster, the proxyro user is selected by default.
- Otherwise, click Create Connection to create a connection credential for the proxyro user of the cluster.

Optional. Specify fields in the Deploy OBProxy section.
If you want to deploy the OBProxy when you create an OBProxy cluster, you can skip this step. After the cluster is created, you can add an OBProxy to the cluster by taking the following actions: take over an OBProxy or add an OBProxy.
Toggle on the switch in the upper-right corner of the Deploy OBProxy page.
Refer to the following table to specify the parameters.
Parameter Description IDC The IDC of the OBProxy. Each OBProxy can be deployed in only one IDC. Host Type Optional. If you select a host type, the host list is filtered based on the host type. Host Specify the host where the OBProxy is to be deployed. You can click Add Host in the drop-down list to add more hosts. 
By default, fields for two OBProxies are displayed.
To deploy more OBProxies, click Add OBProxy to add an OBProxy.
If you need to deploy only one OBProxy, click the Delete icon to the right of an OBProxy to delete it.
Enable Parameter Settings to add or modify startup parameters and other parameters. For more information, see OBProxy parameters.
Enable Custom Settings to specify the cluster port number, OS user, and installation path.
Parameter Description SQL Port Number The default port number is 2883. You can change the port number. Exporter Port Number The default port number is 2884. You can change the port number. OS User The OS user that you use to install and run OceanBase Database. You cannot edit this parameter here. To change the user, you can modify the default value of the ocp.operation.default.os.userparameter. For more information, see Modify system parameters.Software Installation Path - If the value of OS User is
admin, that of Software Installation Path is/home/admin/obproxyby default. You can specify a custom path. - If the value of OS User is not
admin, that of Software Installation Path is/opt/oceanbase/obproxyby default. You can specify a custom path.
Note
The modification of theocp.operation.default.os.userparameter affects only the following operations: create a distributed cluster, create an OBProxy cluster, and create an arbitration service. Other settings of existing clusters are not affected.
- If the value of OS User is
Click Submit.
Note
When OBProxy is installed, the system checks whether the permissions on the installation directory are correct. The system checks the read and execution permissions of a specified user (the admin user by default) on folders at each level of the
/home/admin/logs/obproxydirectory. If the user does not have the required permissions, the "check directory xxx permission failed, reason: xxx" error is generated in the log.