Before you deploy ODC, you must enter the version information of the ODC Docker container in the OAT configuration file.
Procedure
Log on to the server where OCP is installed as the
rootuser.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 ODC parameters in the file.Based on the environment and version information, modify the following three parameters:
- odc_docker_image_package: the .tar package of the ODC image.
- ODC_image_REPO: the image repository of ODC.
- ODC_image_TAG: the tag of the ODC image.
By default, you do not need to modify other parameters:
- ODC_PORT: the port number of the ODC service. Default value: 8989.
- ODC_METADB_USER: the MetaDB user of ODC. Default value: root.
- ODC_METADB_TENANT: the MetaDB tenant of ODC. It is created in the OBCluster of OAT.
- ODC_METADB_DBNAME: the MetaDB database name of ODC.
- odc_container_name: the name of the ODC container. Default value: odc.
- odc_docker_cpus: the number of CPU cores allocated to the ODC container. Default value: 4C, indicating 4 cores.
- odc_docker_memory: the memory allocated to the ODC container. Default value: 8G, indicating 8 GB.
Example of modification:
############ Edit the basic configuration of ODC when you deploy ODC ############
odc_docker_image_package=odc.tar.gz
ODC_image_REPO=acs-reg.alipay.com/oceanbase/obodc
ODC_image_TAG=2.0.1
############ Advanced configurations of ODC, which do not need to be modified/ODC ADVANCED SETTINGS ############
ODC_PORT=8989
ODC_METADB_USER=root
ODC_METADB_TENANT=odc_meta
ODC_METADB_DBNAME=odc
odc_container_name=odc
odc_docker_cpus=4
odc_docker_memory=8G