This topic introduces the instructions on modifying ODC parameters in the configuration file.
Considerations
To install OceanBase Developer Center (ODC), make sure that OceanBase Cloud Platform (OCP) has been installed by using Antman. You must install ODC 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.
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-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.
Here is the example:
############ 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