This topic introduces the instructions on modifying OMS parameters in the configuration file.
Considerations
To install OceanBase Migration Service (OMS), make sure that OceanBase Cloud Platform (OCP) has been installed by using Antman. You must install OMS in the directory of Antman on the OCP server to reuse related information in the obcluster.conf configuration file and use the key and password information generated on the OCP server. You must remotely install the OMS container on another OMS server.
Procedure
Log on to the server where 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-antman directory 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. The tenant 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.
Here is the example:
################### OMS basic configuration./MUST CHANGE ACCORDING ENVIRONMENT/Modify the configuration based on the actual situation.############################ 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