You can add zones to a cluster that you manage.
Prerequisites
Make sure that you have the following permissions:
Resource Permissions : Cluster Maintenance permissionMenu Permissions : Permission on theOverview menu ofClusters Resource permissions: Cluster maintenance permission.
Menu permissions: Permission on the Overview menu of clusters.
The target OceanBase cluster is managed in the current OceanBase Cloud Platform (OCP) cluster.
Otherwise, you need to take over the OceanBase cluster to the current OCP cluster. For more information, see Take over a cluster.
You cannot add a zone to a standalone centralized database.
Procedure
Log in to the OCP console.
In the left-side navigation pane, click
Clusters . TheClusters page automatically appears.On the
Clusters page, find the target OceanBase cluster and click its name.Go to the
Overview page of the cluster and clickCreate Zone in the upper-right corner.In the dialog box that appears, specify the zone information.
By default, only one zone is added. You can click +NewZone to add more zones.
The following table describes the parameters required for setting the zone information.
Parameter Description Zone Name The name of the zone. IDC The IDC where the zone is located. Model Optional. If you select a model, the host list is filtered based on the model. CPU Architecture The CPU architecture of the zone. Valid values: aarch64andx86.Note
You can select a CPU architecture only if the OceanBase Database RPM package for this architecture is available.
Host The IP address of the host. You can select multiple IP addresses. In a production environment, we recommend that the size of the log disk be at least three times the memory size of the host. To avoid performance issues, we recommend that you do not create the data directory and the log directory on the same disk. Tenant Configuration Settings of tenants. You can configure replicas for multiple tenants in the cluster at a time. - You can specify the replica type, unit specification, and number of units.
- Each row contains parameters of only one tenant. To configure more tenants, click Add Tenant.
- The number of units is automatically specified based on the selected tenant and cannot be edited.
Custom Settings The OS user, path, and port number of the OBServer node. For more information, see the section about custom settings in Create a distributed cluster. Parameter Settings The startup parameters of all OBServer nodes in the zone. For more information about the parameters, see Overview.
If you do not specify the OBServer node startup parameters, the startup parameters specified when you created the cluster are used.Click
OK .In the dialog box that appears, you can click
View Task to view the progress. You can also view the task progress inTask Center .When the task enters the
Completed state, and the status of the zone is displayed asRunning in theZones list on theOverview page of the cluster, the zone is created.