Configuring a threshold
Configuring the thresholds that determine whether bursting should be considered is done at the queue level in the LSF lsb.queues file. By default there are no queues configured with thresholds.
About this task
The RC_DEMAND_POLICY parameter has the following syntax:
RC_DEMAND_POLICY = THRESHOLD[ [ num_pend_jobs[,duration]] ... ]
The demand policy defined by the RC_DEMAND_POLICY parameter can contain multiple conditions, in an OR relationship. A condition is defined as [num_pend_jobs[,duration]]. The queue has more than the specified number of eligible pending jobs that are expected to run at least the specified duration in minutes. The num_pend_jobs option is required, and the duration is optional. The default threshold is THRESHOLD[[ 1,0]].
In the following example for the admin queue, LSF calculates demand if one of the following conditions are met:
- The queue has 5 or more pending jobs in past 10 minutes
- There has been one or more pending jobs in past 60 minutes
- There are 100 or more pending jobs.
As long as pending jobs at the queue meet at least one threshold condition, LSF expresses the demand to resource connector to trigger borrowing.
Example bursting threshold configuration for lsb.queues
lsb.queues
Begin Queue
QUEUE_NAME = admin
DESCRIPTION = Sysadmin jobs, not preempted
PRIORITY = 50
USERS = lsfadmins
EXCLUSIVE = Y
RERUNNABLE = Y
RC_ACCOUNT = ProjectB
RC_HOSTS = awshost
RC_DEMAND_POLICY = THRESHOLD[[5,10] [1,60] [100,0]]
End Queue