You can add a new zone to the cluster that you manage.
Prerequisites
Make sure that the current login user in the OCP console has the following permissions:
- Cluster Maintenance resource permissions.
- Overview menu permissions.
Your OceanBase cluster is managed in the current OCP cluster.
If not, you can use the current OCP cluster to take over your OceanBase cluster. For more information, see Take over a cluster.
OceanBase Database Enterprise Edition (standalone edition) does not support adding zones.
Considerations
If the cluster has enabled cgroups, and the new zone contains hosts with an operating system kernel version earlier than 5.1.0, we recommend that you disable the cgroups to avoid system performance degradation or instability.
Procedure
Log in to the OCP console.
In the left-side navigation pane, click Cluster. The Clusters page automatically appears.
On the Clusters page, find the target cluster and click its name.
On the Overview page of the cluster, click Create Zone in the upper-right corner.
In the dialog box that appears, specify the zone information.
By default, only one zone is added. If you want to add more zones, click Create Zone to add more zones.
The following table describes the parameters that you must specify.
Parameter Description Zone Name The name of the zone. IDC The IDC where the zone is located. Host Type Optional. If you specify a host type, the host list is filtered based on the host type. CPU Architecture The CPU architecture of the zone. You can specify ARM or x86. Note
You can specify the CPU architecture only if the corresponding OceanBase RPM package exists.
Host You can specify multiple IP addresses. In a production environment, we recommend that you allocate at least three times the memory size of the host to the log disk. To avoid performance issues, we recommend that you do not mount the data directory and the log directory to the same disk. Tenant Configuration You can configure the replica information for all tenants in the cluster at a time, without adding a replica for each tenant individually. - The replica information to configure includes the replica type, unit specification, and unit quantity.
- You can configure information for only one tenant in one row. To configure information for multiple tenants, click Add Tenant to add more rows.
- The unit quantity is automatically filled in based on the selected tenant and cannot be modified.
Custom Settings Configure the OS user, path, and port for the OBServer node. For more information, see the Custom Configuration section in Create a distributed cluster. Parameter Settings Configure the startup parameters of all OBServer nodes in the zone. For more information, see OceanBase parameters.
If you do not configure the startup parameters of the OBServer nodes, the startup parameters specified when the cluster was created are used by default.Click OK.
You can click View Tasks in the dialog box to view the progress of the task, or you can view the task progress in Task Center.
If the task status is Complete and the status of the zone is Running in the Zones list on the Overview page of the cluster, the zone is created.