Before you deploy OceanBase Cloud Platform (OCP), you must use OAT-CLI to generate the configuration file template and modify the template based on the actual information.
Single-node deployment
Log on to the server where OCP is deployed as the root user, and run the following commands:
[root@hostname /]# cd /root/t-oceanbase-antman/clonescripts [root@hostname clonescripts]# bash init_obcluster_conf.shDuring mode selection, enter 1 for single-node deployment.
The system generates the corresponding configuration file template.
Example:
## obcluster.conf ## SINGLE_OCP_MODE=TRUE ################################ Modify the configuration based on the actual situation/MUST CHANGE ACCORDING ENVIRONMENT ################################ ############ Enter the IP address and the password of the root or admin user/Edit Machine IP and Password Of root/admin ############ ZONE1_RS_IP=xxx.xxx.xxx.xxx OBSERVER01_ROOTPASS=rootpass OBSERVER01_ADMINPASS=adminpass SSH_PORT=22 ############ Edit the load balancing configuration/Edit Configuration of Load Balance ############ # lb_mode: dns/f5/none, default: dns for 3 ocp, none for 1 ocp lb_mode=none # Remaining content ...Modify the configuration file template based on the comments.
The following information needs to be modified:
You must enter the server IP address and the passwords of the root and admin users. For single-node deployment, you need to specify the information of only one server.
For single-node deployment, set
lb_modeto none, indicating that load balancing is disabled.Allocate resources to the Docker container based on the CPU and memory resources of the server.
You can use the
docker load -i {docker image}command and thedocker imagescommand to obtain the version information of Docker containers of the OCP components, including OBServer, OBProxy, and OCP.To deploy OMS, enter the basic configuration of OMS, including the IP address of the OMS server and the version information of the OMS Docker container.
To deploy ODC, enter the version information of the ODC Docker container.
Three-node deployment
Log on to the OCP server as the root user and run the following command:
bash init_obcluster_conf.shDuring mode selection, enter 3 for three-node deployment.
The system generates the corresponding configuration file template.
Example:
################################ Modify the configuration based on the actual situation/MUST CHANGE ACCORDING ENVIRONMENT ################################ ############ Enter the IP address and the password of the root or admin user/Edit Machine IP and Password Of root/admin ############ ZONE1_RS_IP=xxx.xxx.xxx.xxx ZONE2_RS_IP=xxx.xxx.xxx.xxx ZONE3_RS_IP=xxx.xxx.xxx.xxx OBSERVER01_ROOTPASS=rootpass OBSERVER02_ROOTPASS=rootpass OBSERVER03_ROOTPASS=rootpass OBSERVER01_ADMINPASS=adminpass OBSERVER02_ADMINPASS=adminpass OBSERVER03_ADMINPASS=adminpass ############ Edit the load balancing configuration/Edit Configuration of Load Balance ############ # lb_mode: dns/f5/none, default: dns for 3 ocp, none for 1 ocp lb_mode=dns # Remaining content ...Modify the configuration file template based on the comments.
The following information needs to be modified:
You must enter the server IP address and the passwords of the root and admin users. For three-node deployment, you must enter the information of three servers.
If you select dns for lb_mode, the domain name
oceanbase.comis recommended by default. This domain name can only be accessed from OCP nodes. To access this domain name from other nodes, configure domain name resolution for these nodes.This topic describes the operation of selecting DNS as the load balancing mode (
lb_mode).If you select F5 for lb_mode, you need to configure the virtual IP addresses (VIP) and virtual port numbers of OBProxy and OCP, which need to be applied for in advance.
Allocate resources to the Docker container based on the CPU and memory resources of the server.
Default specifications: OBServer 32C/128G (32 cores, 128 GB memory) for OBServer, 8C/16G (8 cores, 16 GB memory) for OCP, and 4C/12G (4 cores, 12 GB memory) for OBProxy.
If the server resources are in the recommended minimum configuration, you can customize them. The OBServer resources must be greater than 24C/100G (24 cores, 100 GB memory), the OCP resources must be greater than
4C/8G (4 cores, 8 GB memory), and OBProxy resources must be greater than 2C/10G (2 cores, 10 GB memory).
You can run the
docker load -i {docker image}command and thedocker imagescommand to obtain the version information of Docker containers of the OCP components, including OBServer, OBProxy, and OCP.To deploy OMS, enter the basic configuration of OMS, including the IP address of the OMS server and the version information of the OMS Docker container.
To deploy ODC, enter the version information of the ODC Docker container.