You can add OBServer nodes to a cluster you manage to scale out the cluster.
Prerequisites
Ensure the current OCP user has the following permissions:
- Cluster Maintenance resource permission.
- Permission to access the cluster Overview menu.
Your OceanBase cluster is managed by the current OCP.
If it is not, you can refer to Take over a cluster to take over your OceanBase cluster to the current OCP.
OceanBase Database Centralized Enterprise Edition does not support adding OBServer nodes.
Considerations
When Cgroup is enabled for a cluster, if any of the newly added OBServer nodes have an operating system kernel version lower than 5.1.0, it is recommended to disable cluster Cgroup. Otherwise, it may cause system performance degradation or instability.
Add OBServer nodes to a cluster
This procedure applies to adding OBServer nodes to multiple zones simultaneously.
Log in to OCP.
In the left navigation bar, click Cluster. The system enters the Clusters tab by default.
On the Clusters page, select the target cluster and click its name.
On the cluster Overview page, click Add OBServer in the upper-right corner.
In the Add OBServer panel, configure the following information.
Configure OBServer information:
ConfigureDescriptionZone Name Must match the configuration of the zone where it is located. Cannot be modified. IDC Must match the configuration of the zone where it is located. Cannot be modified. Host Type Optional. Specifies the host type for the nodes to be added. If a type is selected, the host list will be filtered accordingly. CPU Architecture Must match the configuration of the zone where it is located. Cannot be modified. Software Package Type Must match the configuration of the zone where it is located. Default is not modifiable. - If the system cannot identify the software package type in the current OceanBase cluster, you need to manually select an appropriate software installation package based on the operating system version.
- If the system lacks the corresponding type of software package, click Upload Software Package to upload the relevant software package; otherwise, the OBServer cannot be installed.
Hosts You can select multiple host IPs. - If no hosts are available in the drop-down list, you can perform the Add host operation.
- In a production environment, it is recommended that the log disk space for OceanBase Database be at least three times the host's memory space. Additionally, to avoid performance issues, it is not recommended to mount the data directory and log directory on the same disk.
Custom settings: Used to set the OS user, path, and port for the OBServer node. For details, refer to the description of Custom Configuration in Create a distributed cluster.
Parameter settings: Configure the startup parameters for the OBServer. For details, see OceanBase parameters.
After completing the configuration, click OK.
You can view the task progress via the View Tasks button in the pop-up window, or check its progress in Task Center.
The task is successful when its status is Complete, and the status of the corresponding OBServer node is Running in the OBServers on the cluster's Overview page.
Add an OBServer node to a specified zone
This procedure applies when only a single zone requires adding an OBServer node.
Log in to OCP.
In the left navigation bar, click Cluster. The system enters the Clusters tab by default.
On the Clusters page, select the target cluster and click its name.
On the cluster Overview page, go to the Zones section. Select a zone that needs an OBServer node added, and in its corresponding Actions column, click Add OBServer.
In the Add OBServer panel, configure the following information.
ParameterDescriptionSoftware Package Type By default, this matches the current zone's configuration. If the system cannot identify the software package type of the current OceanBase cluster, you need to manually select an appropriate package based on the operating system version. OBServer Information Specify the host model to be added and select specific hosts (multiple selections allowed). By default, only one OBServer node is added. If you need to add multiple OBServer nodes, you can click the Add OBServer button below. - You can only select hosts with a CPU architecture consistent with that of the zone.
- In a production environment, it is recommended that the log disk space for an OBServer be at least three times the host's memory size. Additionally, to avoid performance issues, it is not recommended to mount the data directory and log directory on the same disk.
Custom Settings Used to set the OS user, path, and port for the OBServer node. For details, refer to the relevant description about Custom Configuration in Create a distributed cluster. Parameter Settings Configure the startup parameters for the OBServer. For details, see OceanBase parameters. After completing the configuration, click OK.
