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.
- If you want to configure an RPC port for an OBProxy, the OBProxy version must be V4.3.0 or later.
Procedure
Log on to the OceanBase Cloud Platform (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 The name of the cluster. You can specify the cluster name based on your business requirements. The name 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 cluster 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 in length.
- It must contain characters of at least three of the following types: digits (0 to 9), uppercase letters (A to Z), lowercase letters (a to z), and special characters. Supported special characters are:
~ ! @ # % ^ & * _ - + = | ( ) { } [ ] : ; , . ?/.
Software Version The software version of OBProxy. - If the required version exists in the drop-down list, select it directly.
- If the required version does not exist in the drop-down list, click Add Version at the bottom of the drop-down list to upload the required version.
Note
You can select only an OBProxy software package of V1.8.0 or later. For security purposes, we recommend that you select an OBProxy 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 the OceanBase 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 is used. The password must meet the following requirements: - It must be 8 to 32 characters in length.
- It must contain characters of at least three of the following types: digits (0 to 9), uppercase letters (A to Z), lowercase letters (a to z), and special characters.
- Supported special characters are:
~ ! @ # % ^ & * _ - + = | ( ) { } [ ] : ; , . ? /.
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 the Add a load balancer section 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 Number: The default access port number is 2883. You can change the access port.
- Domain Name Configuration (optional): the configuration that points to the virtual IP address (VIP) and port. OCP does not provide the mappings between VIPs and domain names. You must configure the domain name resolution service.
Note
- Manage Load Balancer applies only to OCP Enterprise Edition.
- The Alibaba Cloud SLB Service in the Manage Load Balancer section applies only to the Apsara Stack environment. We recommend that you contact OCP 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 multi-cluster 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 specified OceanBase cluster 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 the OBProxy cluster can connect to. You can select only those on the same network as 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.
- This parameter is required if Startup Method is set to 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 the parameters in the Deploy OBProxy section.
If you want to deploy an OBProxy when you create an OBProxy cluster, perform the following steps. Otherwise, you can skip this step, and then add an OBProxy to the cluster by taking the following actions after the cluster is created: take over an OBProxy or add an OBProxy.
Note
If you skip this step, the created OBProxy cluster is empty. In this case, you cannot add a connectable OceanBase cluster for this OBProxy cluster. For more information, see Add a connectable OceanBase cluster.
Toggle on Deploy OBProxy.
Configure the following 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 type, the host list is filtered based on the type. Host 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.
Toggle on Parameter Settings to add or modify startup parameters and other parameters. For more information, see OBProxy parameters description.
Toggle on Custom Settings to specify the cluster port number, OS user, and installation path.
Parameter Description SQL Port Number The default value is 2883. You can change the port number.Exporter Port Number The default value is 2884. You can change the port number.RPC Port Number The default value is 2885. You can change the port number.OS User The OS user that you use to install and run OBProxy. 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. 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.Software Installation Path - If the OS user is
admin, the default software installation path is/home/admin/obproxy. You can change the path. - If the OS user is not
admin, the default software installation path is/opt/oceanbase/obproxy. You can change the path.

- If the 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.