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 36<br />

Event Generation<br />

Events list<br />

The following daemon operations cause mbatchd or the master LIM to call the<br />

event program to generate an event. Each <strong>LSF</strong> event is identified by a<br />

predefined number, which is passed as an argument to the event program.<br />

Events 1-9 also return the name of the host on which on an event occurred.<br />

1 LIM goes down (detected by the master LIM). This event may also occur if<br />

LIM temporarily stops communicating to the master LIM.<br />

2 RES goes down (detected by the master LIM).<br />

3 sbatchd goes down (detected by mbatchd).<br />

4 An <strong>LSF</strong> server or client host becomes unlicensed (detected by the master<br />

LIM).<br />

5 A host becomes the new master host (detected by the master LIM).<br />

6 The master host stops being the master (detected by the master LIM).<br />

7 mbatchd comes up and is ready to schedule jobs (detected by mbatchd).<br />

8 mbatchd goes down (detected by mbatchd).<br />

9 mbatchd receives a reconfiguration request and is being reconfigured<br />

(detected by mbatchd).<br />

10 LSB_SHAREDIR becomes full (detected by mbatchd).<br />

Arguments passed to the <strong>LSF</strong> event program<br />

Example<br />

If <strong>LSF</strong>_EVENT_RECEIVER is defined, a function called ls_postevent() allows<br />

specific daemon operations to generate <strong>LSF</strong> events. This function then calls the<br />

<strong>LSF</strong> event program and passes the following arguments:<br />

◆ The event receiver (<strong>LSF</strong>_EVENT_RECEIVER in lsf.conf)<br />

◆ The cluster name<br />

◆ The <strong>LSF</strong> event number (<strong>LSF</strong> events list or <strong>LSF</strong>_EVENT_XXXX macros in<br />

lsf.h)<br />

◆ The event argument (for events that take an argument)<br />

For example, if the event receiver is the string xxx and LIM goes down on<br />

HostA in Cluster1, the function returns:<br />

xxx Cluster1 1 HostA<br />

The custom <strong>LSF</strong> event program can interpret or ignore these arguments.<br />

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

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

Saved successfully!

Ooh no, something went wrong!