|
|
@ -45,7 +45,6 @@ export DOLPHINSCHEDULER_LOG_DIR=$DOLPHINSCHEDULER_HOME/logs |
|
|
|
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf |
|
|
|
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf |
|
|
|
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/* |
|
|
|
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/* |
|
|
|
|
|
|
|
|
|
|
|
export DOLPHINSCHEDULER_OPTS=${DOLPHINSCHEDULER_OPTS:-"-server -Xmx16g -Xms1g -Xss512k -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=10m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70"} |
|
|
|
|
|
|
|
export STOP_TIMEOUT=5 |
|
|
|
export STOP_TIMEOUT=5 |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d "$DOLPHINSCHEDULER_LOG_DIR" ]; then |
|
|
|
if [ ! -d "$DOLPHINSCHEDULER_LOG_DIR" ]; then |
|
|
@ -58,18 +57,33 @@ pid=$DOLPHINSCHEDULER_PID_DIR/dolphinscheduler-$command.pid |
|
|
|
cd $DOLPHINSCHEDULER_HOME |
|
|
|
cd $DOLPHINSCHEDULER_HOME |
|
|
|
|
|
|
|
|
|
|
|
if [ "$command" = "api-server" ]; then |
|
|
|
if [ "$command" = "api-server" ]; then |
|
|
|
|
|
|
|
HEAP_INITIAL_SIZE=1g |
|
|
|
|
|
|
|
HEAP_MAX_SIZE=1g |
|
|
|
|
|
|
|
HEAP_NEW_GENERATION__SIZE=500m |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-api.xml -Dspring.profiles.active=api" |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-api.xml -Dspring.profiles.active=api" |
|
|
|
CLASS=org.apache.dolphinscheduler.api.ApiApplicationServer |
|
|
|
CLASS=org.apache.dolphinscheduler.api.ApiApplicationServer |
|
|
|
elif [ "$command" = "master-server" ]; then |
|
|
|
elif [ "$command" = "master-server" ]; then |
|
|
|
|
|
|
|
HEAP_INITIAL_SIZE=4g |
|
|
|
|
|
|
|
HEAP_MAX_SIZE=4g |
|
|
|
|
|
|
|
HEAP_NEW_GENERATION__SIZE=2g |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-master.xml -Ddruid.mysql.usePingMethod=false" |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-master.xml -Ddruid.mysql.usePingMethod=false" |
|
|
|
CLASS=org.apache.dolphinscheduler.server.master.MasterServer |
|
|
|
CLASS=org.apache.dolphinscheduler.server.master.MasterServer |
|
|
|
elif [ "$command" = "worker-server" ]; then |
|
|
|
elif [ "$command" = "worker-server" ]; then |
|
|
|
|
|
|
|
HEAP_INITIAL_SIZE=2g |
|
|
|
|
|
|
|
HEAP_MAX_SIZE=2g |
|
|
|
|
|
|
|
HEAP_NEW_GENERATION__SIZE=1g |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-worker.xml -Ddruid.mysql.usePingMethod=false" |
|
|
|
LOG_FILE="-Dlogging.config=classpath:logback-worker.xml -Ddruid.mysql.usePingMethod=false" |
|
|
|
CLASS=org.apache.dolphinscheduler.server.worker.WorkerServer |
|
|
|
CLASS=org.apache.dolphinscheduler.server.worker.WorkerServer |
|
|
|
elif [ "$command" = "alert-server" ]; then |
|
|
|
elif [ "$command" = "alert-server" ]; then |
|
|
|
|
|
|
|
HEAP_INITIAL_SIZE=1g |
|
|
|
|
|
|
|
HEAP_MAX_SIZE=1g |
|
|
|
|
|
|
|
HEAP_NEW_GENERATION__SIZE=500m |
|
|
|
LOG_FILE="-Dlogback.configurationFile=conf/logback-alert.xml" |
|
|
|
LOG_FILE="-Dlogback.configurationFile=conf/logback-alert.xml" |
|
|
|
CLASS=org.apache.dolphinscheduler.alert.AlertServer |
|
|
|
CLASS=org.apache.dolphinscheduler.alert.AlertServer |
|
|
|
elif [ "$command" = "logger-server" ]; then |
|
|
|
elif [ "$command" = "logger-server" ]; then |
|
|
|
|
|
|
|
HEAP_INITIAL_SIZE=1g |
|
|
|
|
|
|
|
HEAP_MAX_SIZE=1g |
|
|
|
|
|
|
|
HEAP_NEW_GENERATION__SIZE=500m |
|
|
|
CLASS=org.apache.dolphinscheduler.server.log.LoggerServer |
|
|
|
CLASS=org.apache.dolphinscheduler.server.log.LoggerServer |
|
|
|
elif [ "$command" = "zookeeper-server" ]; then |
|
|
|
elif [ "$command" = "zookeeper-server" ]; then |
|
|
|
#note: this command just for getting a quick experience,not recommended for production. this operation will start a standalone zookeeper server |
|
|
|
#note: this command just for getting a quick experience,not recommended for production. this operation will start a standalone zookeeper server |
|
|
@ -80,6 +94,8 @@ else |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export DOLPHINSCHEDULER_OPTS="-server -Xms$HEAP_INITIAL_SIZE -Xmx$HEAP_MAX_SIZE -Xmn$HEAP_NEW_GENERATION__SIZE -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xss512k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:+PrintGCDetails -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof" |
|
|
|
|
|
|
|
|
|
|
|
case $startStop in |
|
|
|
case $startStop in |
|
|
|
(start) |
|
|
|
(start) |
|
|
|
[ -w "$DOLPHINSCHEDULER_PID_DIR" ] || mkdir -p "$DOLPHINSCHEDULER_PID_DIR" |
|
|
|
[ -w "$DOLPHINSCHEDULER_PID_DIR" ] || mkdir -p "$DOLPHINSCHEDULER_PID_DIR" |
|
|
@ -141,3 +157,5 @@ case $startStop in |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "End $startStop $command." |