Daemon batch instance settings
-
Modify the daemon batch log configuration file.
-
Open the $BXM_HOME/batch/config/logback/logback_batch_daemon.xml file.
The logback.xml for normal batch/daemon batch cannot be configured in the same classpath, so they are separated.
-
Find the appender item below and modify BXM_HOME to the path where BXM is installed.
... <property name="LOGS_ABSOLUTE_PATH" value="<<BXM HOME>>/bxm/logs" /> ... -
Open the $BXM_HOME/batch/bin/batch.env.sh file.
-
Note: The batch.env.sh file is used to manage batch-wide Environment Variables.
-
-
Configure the daemon batch management configuration information.
... # Daemon Info export BD_SERVER_ADDR={IP ADDRESS} export BD_DAEMON_PORT=40000 ... -
Open the $BXM_HOME/batch/bin/startDaemonBatch.sh file.
-
Configure the batch application path and logs.
... APPLICATION_HOME=$BXM_HOME/apps/batch/$1 ... export prefixLogFileName="$BXM_HOME/logs/batch/daemon/$1/$2" ... -
Open the $BXM_HOME/batch/bin/stopDaemonBatch.sh file.
-
Configure the batch application path and logs.
... APPLICATION_HOME=$BXM_HOME/apps/batch/$1 ... export prefixLogFileName="$BXM_HOME/logs/batch/daemon/$1/$2" ...
-
-
Apart from the above settings, other settings share the normal batch configuration, so they are not configured separately.