Browse Source

[Improvement][Logger]Remove the logger server from the deployment (#7837)

3.0.0/version-upgrade
Aaron Lin 3 years ago committed by GitHub
parent
commit
7fd94ffa40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml
  2. 4
      deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-worker-headless.yaml
  3. 2
      script/dolphinscheduler-daemon.sh
  4. 2
      script/scp-hosts.sh
  5. 1
      script/start-all.sh
  6. 5
      script/status-all.sh
  7. 1
      script/stop-all.sh

2
deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

@ -59,8 +59,6 @@ spec:
ports: ports:
- containerPort: 1234 - containerPort: 1234
name: "worker-port" name: "worker-port"
- containerPort: 50051
name: "logger-port"
env: env:
- name: TZ - name: TZ
value: {{ .Values.timezone }} value: {{ .Values.timezone }}

4
deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-worker-headless.yaml

@ -28,9 +28,5 @@ spec:
targetPort: worker-port targetPort: worker-port
protocol: TCP protocol: TCP
name: worker-port name: worker-port
- port: 50051
targetPort: logger-port
protocol: TCP
name: logger-port
selector: selector:
{{- include "dolphinscheduler.worker.labels" . | nindent 4 }} {{- include "dolphinscheduler.worker.labels" . | nindent 4 }}

2
script/dolphinscheduler-daemon.sh

@ -60,8 +60,6 @@ elif [ "$command" = "worker-server" ]; then
: :
elif [ "$command" = "alert-server" ]; then elif [ "$command" = "alert-server" ]; then
: :
elif [ "$command" = "logger-server" ]; then
:
elif [ "$command" = "standalone-server" ]; then elif [ "$command" = "standalone-server" ]; then
: :
else else

2
script/scp-hosts.sh

@ -49,7 +49,7 @@ do
echo "scp dirs to $host/$installPath starting" echo "scp dirs to $host/$installPath starting"
ssh -p $sshPort $host "cd $installPath/; rm -rf bin/ conf/ lib/ script/ sql/ ui/" ssh -p $sshPort $host "cd $installPath/; rm -rf bin/ conf/ lib/ script/ sql/ ui/"
for dsDir in bin master-server worker-server alert-server api-server logger-server ui for dsDir in bin master-server worker-server alert-server api-server ui
do do
# if worker in workersGroupMap # if worker in workersGroupMap
if [[ "${workersGroupMap[${host}]}" ]]; then if [[ "${workersGroupMap[${host}]}" ]]; then

1
script/start-all.sh

@ -45,7 +45,6 @@ do
echo "$worker worker server is starting" echo "$worker worker server is starting"
ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh start worker-server;" ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh start worker-server;"
ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh start logger-server;"
done done
ssh -p $sshPort $alertServer "cd $installPath/; sh bin/dolphinscheduler-daemon.sh start alert-server;" ssh -p $sshPort $alertServer "cd $installPath/; sh bin/dolphinscheduler-daemon.sh start alert-server;"

5
script/status-all.sh

@ -56,14 +56,11 @@ do
echo "$master $masterState" echo "$master $masterState"
done done
# 2.worker server and logger-server check state # 2.worker server check state
for worker in ${!workersGroupMap[*]} for worker in ${!workersGroupMap[*]}
do do
workerState=`ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh status worker-server;"` workerState=`ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh status worker-server;"`
echo "$worker $workerState" echo "$worker $workerState"
masterState=`ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh status logger-server;"`
echo "$worker $masterState"
done done
# 3.alter server check state # 3.alter server check state

1
script/stop-all.sh

@ -44,7 +44,6 @@ for worker in ${!workersGroupMap[*]}
do do
echo "$worker worker server is stopping" echo "$worker worker server is stopping"
ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh stop worker-server;" ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh stop worker-server;"
ssh -p $sshPort $worker "cd $installPath/; sh bin/dolphinscheduler-daemon.sh stop logger-server;"
done done
ssh -p $sshPort $alertServer "cd $installPath/; sh bin/dolphinscheduler-daemon.sh stop alert-server;" ssh -p $sshPort $alertServer "cd $installPath/; sh bin/dolphinscheduler-daemon.sh stop alert-server;"

Loading…
Cancel
Save