Platform LSF Administration Guide Version 6.2
Using Automatic Time-based Configuration
Administering Platform LSF
244
# - 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
lsb.users example
From 12 - 1 p.m. daily, user smith has 10 job slots, but during other hours, user has only
5 job slots.
Begin User
USER_NAME MAX_JOBS JL/P
#if time (12-13)
smith 10 -
#else
smith 5 -
default 1 -
#endif
End User
Creating if-else constructs
The if-else construct can express single decisions and multi-way decisions by including
elif statements in the construct.
If-else
The syntax for constructing if-else expressions is:
#if time(
expression
)
statement
#else
statement
#endif
The #endif part is mandatory and the #else part is optional.
For syntax of a time expression, see “Specifying Time Expressions” on page 242.
Elif
The #elif expressions are evaluated in order. If any expression is true, the associated
statement is used, and this terminates the whole chain.
The
#else part handles the default case where none of the other conditions are
satisfied.
When you use
#elif, the #else and #endif parts are mandatory.