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

Advance Reservation<br />

Configuring Advance Reservation<br />

Advance reservation plugin<br />

To enable advance reservation in your cluster, configure the advance<br />

reservation scheduling plugin schmod_advrsv in lsb.modules.<br />

Configuring lsb.modules<br />

Begin PluginModule<br />

SCH_PLUGIN RB_PLUGIN SCH_DISABLE_PHASES<br />

schmod_default () ()<br />

schmod_advrsv () ()<br />

End PluginModule<br />

Advance reservation license<br />

Advance reservation requires the lsf_sched_advance_reservation license<br />

feature in your license file and <strong>LSF</strong>_Sched_Advance_Reservation<br />

configured in the PRODUCTS line of lsf.cluster.cluster_name.<br />

Allowing users to create advance reservations<br />

Advance<br />

reservation user<br />

policies<br />

By default, only <strong>LSF</strong> administrators or root can add or delete advance<br />

reservations. To allow other users to use brsvadd to create advance<br />

reservations and brsvdel to delete advance reservations, use the<br />

ResourceReservation section of lsb.resources to configure advance<br />

reservation policies for users.<br />

ResourceReservation section (lsb.resources)<br />

A ResourceReservation section specifies:<br />

◆ Users or user groups that can create reservations<br />

◆ Hosts that can be used for the reservation<br />

◆ Time window when reservations can be created<br />

Each advance reservation policy is defined in a separate ResourceReservation<br />

section, so it is normal to have multiple ResourceReservation sections in<br />

lsb.resources.<br />

Examples ◆ Only user1 and user2 can make advance reservations on hostA and<br />

hostB. The reservation time window is between 8:00 a.m. and 6:00 p.m.<br />

every day:<br />

Begin ResourceReservation<br />

NAME = dayPolicy<br />

USERS = user1 user2 # optional<br />

HOSTS = hostA hostB # optional<br />

TIME_WINDOW = 8:00-18:00 # weekly recurring reservation<br />

End ResourceReservation<br />

user1 can add the following reservation for user user2 to use on hostA<br />

every Friday between 9:00 a.m. and 11:00 a.m.:<br />

% user1@hostB> brsvadd -m "hostA" -n 1 -u "user2" -t "5:9:0-5:11:0"<br />

Reservation "user2#2" is created<br />

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

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

Saved successfully!

Ooh no, something went wrong!