Ob-configserver is a web application provides oceanbase metadata storage and query.
To build ob-configserver requires go 1.16 or above
You can build ob-configserver using the commands list below
# build debug version
make build
# build release version
make build-release
You will get the compiled binary file in folder bin
You can build a rpm package using the following command
cd {project_home}/rpm
bash ob-configserver-build.sh {project_home} ob-configserver 1
-
copy the config.yaml file from etc/config.yaml and modify it to match the real environment
-
start ob-configserver with the following command
bin/ob-configserver -c path_to_config_file
- install rpm package
rpm -ivh ob-configserver-xxx-x.el7.rpm
after installation, the directory looks like this
.
├── bin
│ └── ob-configserver
├── conf
│ └── config.yaml
├── log
└── run
-
modify config file
-
start ob-configserver
bin/ob-configserver -c conf/config.yaml
- config ob-configserver when observer startup
add obconfig_url='http://{vip_address}:{vip_port}/services?Action=ObRootServiceInfo&ObCluster={ob_cluster_name}' in start command, specify with -o
- config ob-configserver when observer already starts using sql
# run the following sql using root user in tenant sys
alter system set obconfig_url = 'http://{vip_address}:{vip_port}/services?Action=ObRootServiceInfo&ObCluster={ob_cluster_name}'
- config ob-configserver when obproxy startup
add obproxy_config_server_url='http://{vip_address}:{vip_port}/services?Action=GetObProxyConfig' in start command specify with -o
- config ob-configserver when obproxy already starts using sql
# run the following sql using root@proxysys
alter proxyconfig set obproxy_config_server_url='http://{vip_address}:{vip_port}/services?Action=GetObProxyConfig'