This topic explains how to add a server to an OAT resource pool.
Note
The steps outlined in this topic are for OAT V4.2.0. The interface of a different OAT version may be different. Please refer to the interface of the product you are using.
Prerequisites
You have installed OAT. For more information, see Deploy OAT.
Procedure
Log in to OAT.
In the left-side navigation pane, click Server to go to the Server Management page. In the upper-right corner of the page, click Add Server.
On the Add Server page, enter the basic information about the server.
The following fields are described as follows:
Field Description Server IP The public IP address of the server to be added. SSH Port The SSH port of the server to be added. IDC The IDC to which the server to be added belongs. Credentials The access credentials of the server to be added. Currently, username and password and key are supported. Description (Optional) A comment on the server for better host management. On the Add Server page, perform initial configuration.
The following fields are described as follows:
Field Description Purpose The purpose of the server. OS Owner The operating system user for installing and running OBServer and OB services. Custom users are supported. User Password The password corresponding to the OS owner. User UID:GID The UID and GID of the OS owner. Docker Root Directory The root directory for storing Docker data. Clock Synchronization (Optional): By default, clock synchronization is disabled. If you enable clock synchronization, you need to specify the following parameters:
Notice
Server clocks must be synchronized with the clock of the server where OCP is deployed.
Field Description Clock Source IP Address The IP address of the clock source. minpoll: The minimum time interval in seconds for the chrony client to request time synchronization from the clock source. maxpoll: The maximum time interval in seconds for the chrony client to request time synchronization from the clock source. maxslewrate: The maximum adjustment rate in PPM (one millionth) for the chrony client clock. Allow this server to serve as a secondary clock source (Optional) After this parameter is set, the server can serve as a clock source for external clients requesting access from the allowlist and blocking access from the blocklist. Automatic Synchronization to OCP (Optional): By default, automatic synchronization is disabled. If you enable automatic synchronization, you need to select an OCP from the drop-down list. If no OCPs are installed, the option remains grayed out. After you complete the initialization setup of the server in OAT, the system automatically calls the API of the selected OCP to add the server to the OCP for future use.
Notice
- The OCPs displayed in this drop-down list are from Product Services > Products > OCP. For more information, see Deploy OCP.
- Before you use OCP to deploy an OceanBase cluster, add the server where you want to deploy the OceanBase cluster to the OCP resource pool.
Disk Initialization (Optional): To ensure the stability of OceanBase Database and related product services, it is generally recommended to configure the service directories on an independent disk. After you select the disk for initialization, the system will automatically create a
vgand alvof the specified size for you using thelvmtool and mount thelvto the specified mount directory.- Select Disk or Partition: The system automatically identifies the unmounted disk devices and you can select the disk devices to mount. Multiple disk devices can be selected.
- Mount Purpose: You can choose Software Installation Path, Data Disk Path, Log Disk Path, and Docker Root Directory for mounting. You can select multiple purposes.
- Mount Point: You can specify the mount path as needed.
- Space (/GB): You can specify the size of space in GB.
Click OK.
If you enable disk initialization, a dialog box displaying the check items will appear when you submit the request. After the check items are verified, click OK to add the server.
If you disable disk initialization, you can submit the request and then perform the initialization configuration later.
After the server is submitted, you can view it in the server list. The status of the server is Initializing. On the Server Management page, you can find the added server and click Actions > View Tasks in the Actions column to view the task progress. If there are many servers, you can search for the server by IP address at the top of the page.
If an error occurs during a subtask, and the subtask does not affect business operations, you can view the log information and manually set the subtask to success.
Next steps
After the server is added, you can deploy OCP as needed:
After OCP is deployed and the server is added, you can deploy an OceanBase cluster as needed: