Applicability
This topic applies only to OceanBase Cloud Platform (OCP) Enterprise Edition. OCP Community Edition does not support this feature.
OceanBase Load Balancer (OBLB) is a software load balancing tool that is based on iptables. You can configure OBLB for an OBProxy cluster to improve its load balancing capability.
- If the OBLB service is not configured for an OBProxy cluster, you can click Add Load Balancer to add the OBLB service for it.
- If the OBLB service is already configured for an OBProxy cluster, you can click Modify Load Balancer to update the related OBLB information.
Prerequisites
Make sure that you have the following permissions:
-
Resource Permissions : OBProxy Maintenance permission -
Menu Permissions : Permission on theOverview menu of OBProxy
-
OBLB has been deployed in OceanBase Admin Toolkit (OAT) before you add the OBLB service. For more information, see Install and uninstall OBLB.
Add an OBLB service
Log in to the OCP console.
In the left-side navigation pane, click OBProxy to go to the OBProxy page.
In the OBProxy cluster list, click the target OBProxy cluster. Then, the
Overview page of the OBProxy cluster appears.Move the pointer over
Operation on the right side ofAccess URL . Then, select Add Load Balancing from the drop-down list.In the right-side pane, enter related information of the OBLB service.
OBLB Service Address: the OBLB service address. You can select the OBLB service configured when the OCP is deployed, or click
Add OBLB Service and then add the OBLB service in the right-side pane.OBLB Service Address: the virtual IP address of the OBLB service.
OBLB Service Port: the port of the OBLB service. The default service port is 9090. You can change the port as needed.
Username and 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 access port of the OBLB service. The default access port is 2883. You can change the access port.
Domain Name Configuration (Optional): the configuration that points to the VIP and port. OCP does not provide the mappings between VIPs and domain names. You must configure the domain name resolution service.
Remarks (Optional): additional information about the OBLB service.
Note
The Alibaba Cloud Server Load Balancer (SLB) service applies only to the Apsara Stack environment. We recommend that you contact Technical Support for assistance.
Modify the OBLB service
Log in to the OCP console.
In the left-side navigation pane, click OBProxy to go to the OBProxy page.
In the OBProxy cluster list, click the target OBProxy cluster. Then, the
Overview page of the OBProxy cluster appears.Move the pointer over
Actions on the right side ofLoad Balancer . Then, selectModify Load Balancer from the drop-down list.In the right-side pane, click the
icon to edit the domain name configuration information. You can click Delete in the Actions column to delete the VIP configured for the OBProxy cluster.In the right-side pane, click
to edit the domain name configuration information.You can click
Delete in the Actions column to delete the VIP configured for the OBProxy cluster.Notice
After the VIP is deleted, you cannot connect to the OBProxy cluster by using this VIP. Proceed with caution.