add: support auto port config
This commit is contained in:
parent
c0e1905a6c
commit
7a69923d04
@ -3,6 +3,7 @@ DIR=$(readlink -f "$(dirname ${BASH_SOURCE[0]})/../..")
|
||||
OB_DO_GLOBAL_CONFIG=~/.ob_do_global
|
||||
[[ -f $OB_DO_GLOBAL_CONFIG ]] && source $OB_DO_GLOBAL_CONFIG
|
||||
export DEPLOY_PATH=$DIR/tools/deploy
|
||||
export OBD_FORCE_UPDATE_PLUGINS=1
|
||||
if grep 'dep_create.sh' $DIR/build.sh 2>&1 >/dev/null
|
||||
then
|
||||
export DEP_PATH=$DIR/deps/3rd
|
||||
|
@ -665,7 +665,6 @@ function main() {
|
||||
then
|
||||
NEED_REBOOT="1"
|
||||
fi
|
||||
export OBD_FORCE_UPDATE_PLUGINS=1
|
||||
if [[ ! -f $OBD_HOME/.obd/.obd_environ || "$(grep '"OBD_DEV_MODE": "1"' $OBD_HOME/.obd/.obd_environ)" == "" ]]
|
||||
then
|
||||
obd devmode enable || (echo "Exec obd cmd failed. If your branch is based on 3.1_opensource_release, please go to the deps/3rd directory and execute 'bash dep_create.sh all' to install obd." && exit 1)
|
||||
|
@ -6,6 +6,7 @@ oceanbase-ce:
|
||||
# for default system config used by farm, please see tools/deploy/obd/observer.include.yaml
|
||||
# You can also specify the configuration directly below (stored locally, switching the working directory and redeploying will still take effect)
|
||||
production_mode: false
|
||||
home_path: /data/{user}/{deploy_name}/observer/{server}
|
||||
# memory_limit: '8G'
|
||||
# system_memory: '1G'
|
||||
# datafile_size: '20G'
|
||||
|
@ -16,6 +16,8 @@ env:
|
||||
ASAN_SYMBOLIZER_PATH: ./tools/llvm-symbolizer
|
||||
config:
|
||||
production_mode: false
|
||||
mysql_port: auto
|
||||
rpc_port: auto
|
||||
cluster_id: 1
|
||||
# datafile_disk_percentage: '50'
|
||||
datafile_size: '20G'
|
||||
|
Loading…
x
Reference in New Issue
Block a user