Browse Source

add worker group config

pull/3/MERGE
dailidong 4 years ago
parent
commit
ae14c1b3f6
  1. 2
      dolphinscheduler-server/src/main/resources/config/install_config.conf
  2. 4
      script/scp-hosts.sh

2
dolphinscheduler-server/src/main/resources/config/install_config.conf

@ -130,7 +130,7 @@ masters="ds1,ds2"
# run worker machine
# note: need to write the worker group name of each worker, the default value is "default"
workersGroup=(["ds1"]="default" ["ds2"]="default" ["ds3"]="default" ["ds4"]="default" ["ds5"]="default")
declare -A workersGroup=(["ds1"]="default" ["ds2"]="default" ["ds3"]="default" ["ds4"]="default" ["ds5"]="default")
# run alert machine
# note: list of machine hostnames for deploying alert server

4
script/scp-hosts.sh

@ -40,8 +40,8 @@ do
for dsDir in bin conf lib script sql ui install.sh
do
# if worker in workersGroup
if [[ "${map[${host}]}" ]] && [[ "${dsDir}" -eq "conf" ]]; then
sed -i ${txt} "s#worker.group.*#worker.group=${map[${host}]}#g" $workDir/../conf/worker.properties
if [[ "${workersGroup[${host}]}" ]] && [[ "${dsDir}" == "conf" ]]; then
sed -i ${txt} "s#worker.group.*#worker.group=${workersGroup[${host}]}#g" ${dsDir}/worker.properties
fi
echo "start to scp $dsDir to $host/$installPath"

Loading…
Cancel
Save