25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<br />

How the System Works<br />

Queue priority<br />

Automatic queue selection<br />

Viewing default<br />

queues<br />

How automatic<br />

queue selection<br />

works<br />

Job files<br />

UNIX<br />

Windows<br />

Defines the order in which queues are searched to determine which job will<br />

be processed. Queues are assigned a priority by the <strong>LSF</strong> administrator, where<br />

a higher number has a higher priority. Queues are serviced by <strong>LSF</strong> in order of<br />

priority from the highest to the lowest. If multiple queues have the same<br />

priority, <strong>LSF</strong> schedules all the jobs from these queues in first-come, first-served<br />

order.<br />

Typically, a cluster has multiple queues. When you submit a job to <strong>LSF</strong> you<br />

might define which queue the job will enter. If you submit a job without<br />

specifying a queue name, <strong>LSF</strong> considers the requirements of the job and<br />

automatically chooses a suitable queue from a list of candidate default queues.<br />

If you did not define any candidate default queues, <strong>LSF</strong> will create a new<br />

queue using all the default settings, and submit the job to that queue.<br />

Use bparams to display default queues:<br />

% bparams<br />

Default Queues: normal<br />

...<br />

The user can override this list by defining the environment variable<br />

LSB_DEFAULTQUEUE.<br />

<strong>LSF</strong> selects a suitable queue according to:<br />

◆ User access restriction—Queues that do not allow this user to submit jobs<br />

are not considered.<br />

◆ Host restriction—If the job explicitly specifies a list of hosts on which the<br />

job can be run, then the selected queue must be configured to send jobs<br />

to all hosts in the list.<br />

◆ Queue status—Closed queues are not considered.<br />

◆ Exclusive execution restriction—If the job requires exclusive execution,<br />

then queues that are not configured to accept exclusive jobs are not<br />

considered.<br />

◆ Job’s requested resources—These must be within the resource allocation<br />

limits of the selected queue.<br />

If multiple queues satisfy the above requirements, then the first queue listed in<br />

the candidate queues (as defined by the DEFAULT_QUEUE parameter or the<br />

LSB_DEFAULTQUEUE environment variable) that satisfies the requirements is<br />

selected.<br />

When a batch job is submitted to a queue, <strong>LSF</strong> Batch holds it in a job file until<br />

conditions are right for it to be executed. Then the job file is used to execute<br />

the job.<br />

The job file is a Bourne shell script run at execution time.<br />

The job file is a batch file processed at execution time.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!