You can install an OBServer node on a new host to replace the current OBServer node. This topic describes how to replace a faulty or low-performance OBServer node with an OBServer node that is healthy or provides higher performance.
Prerequisites
You have the permission to update the target OceanBase cluster.
The target OceanBase cluster is managed in the current OCP cluster.
Otherwise, you need to take over the OceanBase cluster to the current OCP cluster. For more information, see Take over a cluster.
We recommend that you replace an OBServer node only when your OceanBase cluster has at least three replicas.
Procedure
Log on to the OCP console.
In the left-side navigation pane, click Clusters to go to the Clusters page.
In the Clusters list on this page, find the target cluster and click its name to go to the Overview page of the cluster.
In the OBServers list, find the target OBServer node, and then click Replace in the Actions column.
Specify the relevant information and click Replace.
- Select the substitute host. If no host is available in the drop-down list, you can add one. For more information, see Add a host.
- Complete the custom settings. Specifically, configure the OS user, path, and port number of the OBServer node. For more information, see the section about custom settings in the Create a distributed cluster topic.
- Configure the startup parameters of the OBServer node. For more information, see Overview of OceanBase Database parameters.
Note
- You can select only a host that matches the hardware architecture of the current cluster, and is in the same IDC as the OBServer node to be replaced.
- When the host is offline, the cleanup job cannot be executed. The cleanup job is skipped and you must manually clean up the host environment.
- In a production environment, we recommend that the size of the log disk be at least three times that of 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.
In the dialog box that appears, click View Task to view the replacement progress. You can also view the task progress in Task Center.
After the task status changes to Completed, and the status of the new OBServer node is displayed as Running in the OBServers list on the Overview page, the original OBServer node is replaced.