Before you deploy OceanBase Migration Service (OMS), you must add the basic configuration information of OMS in the OceanBase Admin Toolkit (OAT) configuration file, including the IP address of the OMS server and the version information of the OMS Docker container.
Procedure
Log on to the server where OceanBase Cloud Platform (OCP) is installed as the root user.
Note
During OCP installation, the user and password information is generated locally.
Open the
obcluster.confconfiguration file in the/root/t-oceanbase-antmandirectory and modify the OMS parameters in the file.Based on the environment and version information, modify the following four parameters:
- OMS_IP_LIST: the IP addresses of the servers where OMS is to be deployed. Separate multiple IP addresses with commas (,).
- OMS_DOCKER_IMAGE_PACKAGE: the name of the OMS image file.
- OMS_IMAGE_REPO: the image repository of OMS.
- OMS_IMAGE_TAG: the tag of the OMS image.
Configure the following directories for OMS V2.x or V3.x:
- OMS_PHYSICAL_LOG_DIR: the mounted log directory.
- OMS_PHYSICAL_RUN_DIR: the mounted runtime directory.
- OMS_PYHSICAL_STORE_DIR: the mounted data storage directory.
In OMS V2.1 and later, InfluxDB is automatically installed for monitoring. In OMS earlier than V2.1, InfluxDB is automatically ignored.
- OMS_INSTALL_INFLUXDB=TRUE
- OMS_INFLUXDB_PHISICAL_DIR=/data/oms/influxdb
- OMS_INFLUXDB_IMAGE_PACKAGE=influxdb_1.8.tar.gz
- OMS_INFLUXDB_IMAGE_REPO=influxdb
- OMS_INFLUXDB_IMAGE_TAG=1.8
By default, you do not need to modify other parameters:
- OMS_PORT: the port number of the OMS drc service. Default value: 8088.
- OMS_METADB_USER: the MetaDB user of OMS. Default value: root.
- OMS_METADB_TENANT: the MetaDB tenant of OMS. Default value: oms_meta. It is created in the OBCluster of OAT.
- OMS_METADB_DBNAME: the database name of the MetaDB of OMS. Default value: oms_meta.
- OMS_CONTAINER_NAME: the name of the OMS container. Default value: oms.
- OMS_DOCKER_CPUS: the number of CPU cores allocated to the OMS container. Default value: 12.
- OMS_DOCKER_MEMORY: the memory allocated to the OMS container. Default value: 24G.
Example of modification:
################### OMS basic configuration. Modify the configuration based on the actual situation./MUST CHANGE ACCORDING ENVIRONMENT############################
OMS_IP_LIST=xxx.xxx.xxx.xxx
OMS_IMAGE_REPO=acs-reg.alipay.com/oceanbase/oms-all-in-one
OMS_IMAGE_TAG=1.1.1-beta
OMS_DOCKER_IMAGE_PACKAGE=oms.tgz
################### OMS ADVANCED SETTINGS/You do not need to modify this configuration. ########################
OMS_PORT=8088
OMS_METADB_USER=root
OMS_METADB_TENANT=oms_tenant
OMS_METADB_TENANT_PASS=root
OMS_METADB_DBNAME=oms_meta
OMS_CONTAINER_NAME=oms
OMS_DOCKER_CPUS=12
OMS_DOCKER_MEMORY=24G