Before you deploy an OceanBase cluster by using OceanBase Cloud Platform (OCP), you must add the server where the OceanBase cluster is to be deployed to the resource pool of OCP.
Note
This topic uses OCP V4.1.0 as an example. The GUI varies with the OCP version.
Prerequisites
- You have prepared the servers for deploying an OceanBase cluster, added the servers to OceanBase Admin Toolkit (OAT), and initialized the servers. For more information, see Prepare servers and Add a server.
- You have deployed OCP. For more information, see Deploy OCP.
Procedure
Enter the access URL in the format of
http://<IP address of the OCP server>:8080in the address bar of your browser and press Enter. Then, use the admin account to log on to the OCP console.Note
Contact OceanBase Technical Support to obtain the default password of the admin account. To ensure account security, change the password upon the first logon.
In the left-side navigation pane, click Hosts.
In the upper-right corner of the page that appears, click Add Host.
In the dialog box that appears, enter the server information.
The following table describes the parameters that you need to configure.
Parameter Description IP Address The NIC IP address of the OBServer node added to the resource pool. SSH Port The SSH port. Default value: 22.Host Type The label that you specify for hosts with the same configurations to facilitate host management. If the required host type is unavailable, you can click Create Host Type to add a host type. IDC Select the IDC where the server is deployed. IDC information includes IDC and Region. - An IDC is one of the host attributes that you must record for an OceanBase cluster. The IDC is referenced in OceanBase load balancing and SQL statement routing strategies. Specify the actual IDC.
- A region specifies the geographical area where the host is located. It is one of the host attributes that you must record for an OceanBase cluster. The region affects the OceanBase load balancing and SQL statement routing strategies. Specify the actual region.
Note
OCP V3.1.1 and later support the multi-zone mode. When you add an IDC, it is created in the zone where the current OCP is deployed.
Host Type You can select Physical Machine, Container, or ECS. Credentials Select the credentials used to remotely log on to the physical server. You can select Add Credential from the drop-down list to create credentials. Host Alias A host alias is a label that you specify for hosts with the same configurations. We recommend that you specify a meaningful alias to facilitate host management. This parameter is optional. Description The host comments that can be used to facilitate host management. This parameter is optional. Click OK.
What to do next
After the server is added, you can use the following methods to deploy the OceanBase cluster:
- Deploy a standalone OceanBase database by using OCP
- Deploy a two-replica OceanBase cluster with the arbitration service by using OCP
- Deploy a single-replica OceanBase cluster by using OCP
- Deploy a three-replica OceanBase cluster by using OCP