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.

Modifying a Built-In Load Index<br />

Considerations<br />

Steps<br />

Chapter 9<br />

Adding Resources<br />

The ELIM can return values for the built-in load indices. In this case the value<br />

produced by the ELIM overrides the value produced by the LIM.<br />

◆<br />

◆<br />

◆<br />

The ELIM must ensure that the semantics of any index it supplies are the<br />

same as that of the corresponding index returned by the lsinfo(1)<br />

command.<br />

The name of an external load index must not be one of the resource name<br />

aliases: cpu, idle, login, or swap. To override one of these indices, use<br />

its formal name: r1m, it, ls, or swp as the ELIM output.<br />

You must configure an external load index in lsf.shared even if you are<br />

overriding a built-in load index.<br />

For example, some sites prefer to use /usr/tmp for temporary files.<br />

To override the tmp load index:<br />

1 Write a program that periodically measures the space in the /usr/tmp file<br />

system and writes the value to standard output. For details on format, see<br />

“Writing an ELIM” on page 160.<br />

For example, the program writes to its standard output:<br />

1 tmp 47.5<br />

2 Name the program elim and store it in the <strong>LSF</strong>_SERVERDIR directory.<br />

All default load indices are local resources, so the elim must run locally<br />

on every machine.<br />

3 Define the resource.<br />

Since the name of built-in load indices is not allowed in lsf.shared,<br />

define a custom resource to trigger the elim.<br />

For example:<br />

Begin Resource<br />

RESOURCENAME TYPE INTERVAL INCREASING DESCRIPTION<br />

my_tmp Numeric 30 N (custom resource to trigger elim to<br />

start up)<br />

End Resource<br />

4 Map the resource to hosts in lsf.cluster.cluster_name.<br />

❖ To override the tmp load index on every host, specify the keyword<br />

default:<br />

Begin ResourceMap<br />

RESOURCENAME<br />

LOCATION<br />

my_tmp<br />

[default]<br />

End ResourceMap<br />

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

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

Saved successfully!

Ooh no, something went wrong!