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.

Automatic Time-based Configuration<br />

lsb.hosts example<br />

lsb.queues<br />

example<br />

Chapter 10<br />

Time Syntax and Configuration<br />

Variable configuration is used to automatically change <strong>LSF</strong> configuration based<br />

on time windows. It is supported in the following files:<br />

◆ lsb.hosts<br />

◆ lsb.params<br />

◆ lsb.queues<br />

◆ lsb.users<br />

You define automatic configuration changes in configuration files by using ifelse<br />

constructs and time expressions. After you change the files, reconfigure<br />

the cluster with the badmin reconfig command.<br />

The expressions are evaluated by <strong>LSF</strong> every 10 minutes based on mbatchd start<br />

time. When an expression evaluates true, <strong>LSF</strong> dynamically changes the<br />

configuration based on the associated configuration statements.<br />

Reconfiguration is done in real time without restarting mbatchd, providing<br />

continuous system availability.<br />

In the following example, the #if, #else, #endif are not interpreted as<br />

comments by <strong>LSF</strong> but as if-else constructs.<br />

Begin Host<br />

HOST_NAME r15s r1m pg<br />

host1 3/5 3/5 12/20<br />

#if time(5:16:30-1:8:30 20:00-8:30)<br />

host2 3/5 3/5 12/20<br />

#else<br />

host2 2/3 2/3 10/12<br />

#endif<br />

host3 3/5 3/5 12/20<br />

End Host<br />

Begin Queue<br />

...<br />

#if time(8:30-18:30)<br />

INTERACTIVE = ONLY # interactive only during day shift<br />

#endif<br />

...<br />

End Queue<br />

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

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

Saved successfully!

Ooh no, something went wrong!