You can add a new Zone to the cluster you manage.
Prerequisites
Ensure the current OCP user has the following permissions:
- Cluster Maintenance resource permissions.
- Permission to access the Overview menu of the cluster.
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 a Zone.
Considerations
When Cgroup is enabled for a cluster, if there are hosts in the new Zone whose operating system kernel version is lower than 5.1.0, it is recommended to disable cluster Cgroup. Otherwise, it may cause system performance degradation or instability.
Procedure
Log in to OCP.
In the left navigation bar, click Cluster. The system defaults to the Clusters tab.
On the Clusters page, select the target cluster and click its name.
On the cluster Overview page, click Create Zone in the upper-right corner.
In the dialog box that appears, configure the Zone information.
By default, one Zone is added. If you need to add multiple Zones, you can click the Create Zone button below to add information for multiple Zones.
The Zone information required is shown in the following table.
ConfigureDescriptionZone Name Default is zone_n (n is an integer starting from 1). You can click the Zone Name to customize it. IDC Select the IDC where the host is located. Host Type Optional. Specify the host type for the hosts to be added. If a host type is selected, the host list will be filtered accordingly. Software Package Type Select the software package type for OceanBase. After selection, the CPU architecture will be filtered based on the package type. CPU Architecture Select the host's CPU architecture (ARM or X86). Note
The corresponding CPU architecture is only selectable if an OceanBase RPM package exists for that architecture.
Host You can select multiple hosts. In a production environment, it is recommended that the log disk space for OceanBase Database 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. Tenant Configuration You can configure replica information for tenants under the current cluster in bulk, eliminating the need to add replicas separately for each tenant. - The replica information to be configured includes: replica type, unit specification, and number of units.
- Only one tenant can be added per line. To configure multiple tenants, click Add Tenant to add multiple lines.
- The number of units is automatically filled in based on the selected tenant and cannot be edited.
Custom Settings Configure 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 Set the startup parameters for all OBServer nodes in the Zone. For parameter details, see OceanBase parameters.
If OBServer startup parameters are not set, the startup parameters used when the cluster was created are used by default.After completing the configuration, click OK.
You can click View Tasks in the pop-up dialog box to view the progress of the new task. You can also view the task progress in Task Center.
The new task is created successfully when its status is Complete and the status of the zone is Running in the Zones on the Overview page.
