LSF Version 7.3 - Platform LSF Configuration Reference
LSF_RESOURCES. The MELIM does not restart an elim that exits with
ELIM_ABORT_VALUE.
The following sample code shows how to use a header to verify that an elim is programmed
to collect load indices for the resources expected on the host. If the elim is not programmed
to report on the requested resources, the elim does not need to run on the host.
#!/bin/sh
# list the resources that the elim can report to lim my_resource="myrsc"
# do the check when $LSF_RESOURCES is defined by lim
if [ -n "$LSF_RESOURCES" ]; then
# check if the resources elim can report are listed in $LSF_RESOURCES
res_ok=`echo " $LSF_RESOURCES " | /bin/grep " $my_resource " `
# exit with $ELIM_ABORT_VALUE if the elim cannot report on at least
# one resource listed in $LSF_RESOURCES
if [ "$res_ok"="" ] ; then
exit $ELIM_ABORT_VALUE
fi
fi
while [ 1 ];do
# set the value for resource "myrsc"
val="1"
# create an output string in the format:
# number_indices index1_name index1_value...
reportStr="1 myrsc $val"
echo "$reportStr"
# wait for 30 seconds before reporting again
sleep 30
done
Configuration to modify external load indices
Configuration file
Parameter and syntax Behavior
lsf.cluster.
cluster_name
Parameters section
ELIMARGS=cmd_line_args
•
Specifies the command-line arguments
required by an elim on startup.
ELIM_POLL_INTERVAL=seconds
•
Specifies the frequency with which the LIM
samples external load index information from
the MELIM.
LSF_ELIM_BLOCKTIME=seconds
•
UNIX only. Specifies how long the MELIM waits
before restarting an elim that fails to send a
complete load update string.
•
The MELIM does not restart an elim that exits
with ELIM_ABORT_VALUE.
LSF_ELIM_DEBUG=y
•
UNIX only. Used for debugging; logs all load
information received from elim executables to
the MELIM log file (melim.log.host_name).
LSF_ELIM_RESTARTS=integer
•
UNIX only. Limits the number of times an
elim can be restarted.
•
You must also define either
LSF_ELIM_DEBUG or
LSF_ELIM_BLOCKTIME.
•
Defining this parameter prevents an ongoing
restart loop in the case of a faulty elim.
Feature: External load indices
112 Platform LSF Configuration Reference