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.

Counted Host Locked Licenses<br />

Counted Host Locked Licenses<br />

Counted host locked licenses are only available on specific licensed hosts, but<br />

also place a limit on the maximum number of copies available on the host.<br />

Configuring counted host locked licenses<br />

Using an External<br />

LIM (ELIM)<br />

Using a<br />

check_license<br />

script<br />

You configure counted host locked licenses by having <strong>LSF</strong> determine the<br />

number of licenses currently available. Use either of the following to count the<br />

host locked licenses:<br />

◆ External LIM (ELIM)<br />

◆ A check_licenses shell script<br />

To use an external LIM (ELIM) to get the number of licenses currently available,<br />

configure an external load index licenses giving the number of free licenses<br />

on each host. To restrict the application to run only on hosts with available<br />

licenses, specify licenses>=1 in the resource requirements for the<br />

application.<br />

See “External Load Indices and ELIM” on page 158 for instructions on writing<br />

and using an ELIM and configuring resource requirements for an application.<br />

See the <strong>Platform</strong> <strong>LSF</strong> Reference for information about the lsf.task file.<br />

There are two ways to use a check_license shell script to check license<br />

availability and acquire a license if one is available:<br />

◆ Configure the check_license script as a job-level pre-execution<br />

command when submitting the licensed job:<br />

% bsub -m licensed_hosts -E check_license licensed_job<br />

◆ Configure the check_license script as a queue-level pre-execution<br />

command. See “Configuring Pre- and Post-Execution Commands” on<br />

page 368 for information about configuring queue-level pre-execution<br />

commands.<br />

It is possible that the license becomes unavailable between the time the<br />

check_license script is run, and when the job is actually run. To handle this<br />

case, configure a queue so that jobs in this queue will be requeued if they exit<br />

with values indicating that the license was not successfully obtained.<br />

See “Automatic Job Requeue” on page 301 for more information.<br />

280<br />

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

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

Saved successfully!

Ooh no, something went wrong!