Installing the Load Script
- SGE
- PBS Pro
- LSF
- Slurm
To install flexlm_sensor.pl, you need to add a load_sensor attribute to the host configuration of one of the hosts managed by Grid Engine. The load sensor is executed periodically on that host and feeds information about license availability back into the queueing system. You can get a list of the execution hosts using the command:
qconf -sel
To add the load sensor to the host configuration for the chosen host:
| 1. | Enter the following command on one of the execution hosts, as listed in the output from qconf -sel: |
qconf -mconf hostname
| 2. | In the resulting edit window, add the line |
load_sensor sensor-dir/flexlm_sensor.pl
where installation is the directory where you stored the edited copy of flexlm_sensor.pl. You must specify the path explicitly—you cannot use environment variables in the Grid Engine configuration files. If there is already a load_sensor line, replace it with the above line.
| 3. | Save the modified file and close the editor. |
| 4. | Verify that your changes were accepted by displaying the host configuration with the command: |
qconf -sconf hostname
Grid Engine starts the load sensor script automatically after you have made the load_sensor setting, and also restarts it automatically if you modify or update the script flexlm_sensor.pl. The command
qhost -F -h hostname
displays all of the resource attributes for hostname If the load sensor is running and working properly, you should see your licenses in this list.
For example,
gl:IMPACT_MAIN=20.000000 gl:MMLIBS=20.000000
The default load sensor report time interval is 40 seconds. If you observe delay, consider decreasing the interval with the following command:
qconf -mconf load_report_time 00:00:10
This command sets the time to 10 seconds. See man sge_conf for more details about load_report_time.
If the load sensor has been configured to enable internal tracking of license resources by the Grid Engine, run the following command to confirm that the license resources have been defined both as 'complex_values' (for internal tracking) and as 'load_values' (from the load sensor).
qconf -se global
Grid Engine should be now configured to handle Schrödinger licenses properly.
The location of the load sensor script, pbs_lic_sensor.pl, is specified in the sched_priv/sched_config file (see Configuring the Load Scripts). The configuration produced by licutil points to the location of this script within the Schrödinger installation, $SCHRODINGER/utilities/pbs_lic_sensor.pl. If this location is acceptable, no further action is necessary. If the script needs to be installed elsewhere, you must copy it to the required location and edit each line of sched_priv/sched_config that refers to the script and replace the path with the new path.
| 1. | Copy the edited script into the $LSF_SERVERDIR directory on the LSF master host: |
cp $SCHRODINGER/utilities/elim.schrodinger $LSF_SERVERDIR
The $LSF_SERVERDIR directory is typically named something like /usr/lsf/6.2/linux2.6-glibc2.3-x86/etc/ and also contains the program melim, which manages ELIMs.
| 2. | Restart LSF with the following commands: |
lsadmin reconfig
badmin mbdrestart
| 3. | Check that the new ELIM is active, using the command |
lsload -l
The output should now contain the number of available tokens for each license; for example,
HOST_NAME status <...> mem IMPACT_MAIN MMLIBS host1.mycluster.com ok <...> 365M 10 15 host2.mycluster.com ok <...> 365M 10 15
LSF should now be configured to handle Schrödinger license requirements.
See the Slurm section in Setting Up License Checking for Queueing Systems.