Platform LSF Reference Version 6.2

lsb.resources
Platform LSF Reference
455
Automatic Time-based Configuration
Variable configuration is used to automatically change LSF configuration based on time
windows. You define automatic configuration changes in
lsb.resources by using
if-else constructs and time expressions. After you change the files, reconfigure the
cluster with the
badmin reconfig command.
The expressions are evaluated by LSF every 10 minutes based on
mbatchd start time.
When an expression evaluates true, LSF dynamically changes the configuration based on
the associated configuration statements. Reconfiguration is done in real time without
restarting
mbatchd, providing continuous system availability.
Example
# limit usage of hosts in 'license1' group and time
# based configuration
# - 10 jobs can run from normal queue
# - any number can run from short queue between 18:30
# and 19:30
# all other hours you are limited to 100 slots in the
# short queue
# - each other queue can run 30 jobs
Begin Limit
PER_QUEUE HOSTS SLOTS # Example
normal license1 10
# if time(18:30-19:30)
short license1 -
#else
short license1 100
#endif
(all ~normal ~short) license1 30
End Limit