25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network Floating Licenses<br />

Chapter 18<br />

Managing Software Licenses with <strong>LSF</strong><br />

A network floating license allows a fixed number of machines or users to run<br />

the product at the same time, without restricting which host the software can<br />

run on. Floating licenses are cluster-wide resources; rather than belonging to<br />

a specific host, they belong to all hosts in the cluster.<br />

<strong>LSF</strong> can be used to manage floating licenses using the following <strong>LSF</strong> features:<br />

◆ Shared resources<br />

◆ Resource reservation<br />

◆ Job requeuing<br />

Using <strong>LSF</strong> to run licensed software can improve the utilization of the licenses.<br />

The licenses can be kept in use 24 hours a day, 7 days a week. For expensive<br />

licenses, this increases their value to the users. Floating licenses also increase<br />

productivity, because users do not have to wait for a license to become<br />

available.<br />

<strong>LSF</strong> jobs can make use of floating licenses when:<br />

◆ All license jobs are run through <strong>LSF</strong><br />

◆ Licenses are managed outside of <strong>LSF</strong> control<br />

All licenses used through <strong>LSF</strong><br />

Example<br />

lsf.shared<br />

If all jobs requiring licenses are submitted through <strong>LSF</strong>, then <strong>LSF</strong> could regulate<br />

the allocation of licenses to jobs and ensure that a job is not started if the<br />

required license is not available. A static resource is used to hold the total<br />

number of licenses that are available. The static resource is used by <strong>LSF</strong> as a<br />

counter which is decremented by the resource reservation mechanism each<br />

time a job requiring that resource is started.<br />

For example, suppose that there are 10 licenses for the Verilog package<br />

shared by all hosts in the cluster. The <strong>LSF</strong> configuration files should be<br />

specified as shown below. The resource is a static value, so an ELIM is not<br />

necessary.<br />

Begin Resource<br />

RESOURCENAME TYPE INTERVAL INCREASING DESCRIPTION<br />

verilog Numeric () N (Floating<br />

licenses for Verilog)<br />

End Resource<br />

lsf.cluster.cluster_name<br />

Begin ResourceMap<br />

RESOURCENAME LOCATION<br />

verilog (10@[all])<br />

End ResourceMap<br />

Submitting jobs<br />

The users would submit jobs requiring verilog licenses as follows:<br />

% bsub -R "rusage[verilog=1]" myprog<br />

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

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

Saved successfully!

Ooh no, something went wrong!