Queues represent a set of pending jobs, lined up in a defined order and waiting for their opportunity to use resources. Queues implement different job scheduling and control policies.
Jobs enter the queue via the bsub command. Queues have the following attributes associated with them:
Defines the order in which queues are searched to determine which job will be processed. Queues are assigned a priority by the LSF administrator, where a higher number has a higher priority. Queues are serviced by LSF in order of priority from the highest to the lowest. If multiple queues have the same priority, LSF schedules all the jobs from these queues in first-come, first-served order.
When you submit a job, LSF considers the requirements of the job and automatically chooses a suitable queue from a list of candidate default queues.
LSF selects a suitable queue according to:
User access restriction: Queues that do not allow this user to submit jobs are not considered.
Host restriction: If the job explicitly specifies a list of hosts on which the job can be run, then the selected queue must be configured to send jobs to hosts in the list.
Exclusive execution restriction: If the job requires exclusive execution, then queues that are not configured to accept exclusive jobs are not considered.
Job’s requested resources: These must be within the resource allocation limits of the selected queue.
If multiple queues satisfy the above requirements, then the first queue listed in the candidate queues that satisfies the requirements is selected.