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

Fairshare Scheduling<br />

SCHEDULING POLICIES: FAIRSHARE<br />

FAIRSHARE_QUEUES: normal short license<br />

USER_SHARES: [user1, 100] [default, 1]<br />

SHARE_INFO_FOR: short/<br />

USER/GROUP SHARES PRIORITY STARTED RESERVED CPU_TIME RUN_TIME<br />

user1 100 9.645 2 0 0.2 7034<br />

USERS: all users<br />

HOSTS: all<br />

...<br />

Configuring cross-queue fairshare<br />

Considerations ◆ FAIRSHARE must be defined in the master queue. If it is also defined in the<br />

queues listed in FAIRSHARE_QUEUES, it will be ignored.<br />

◆ Cross-queue fairshare can be defined more than once within lsb.queues.<br />

You can define several sets of master-slave queues. However, a queue<br />

cannot belong to more than one master-slave set. For example, you can<br />

define:<br />

❖ In master queue normal: FAIRSHARE_QUEUES=short license<br />

❖ In master queue priority: FAIRSHARE_QUEUES= night owners<br />

You cannot, however, define night, owners, or priority as slaves in the<br />

normal queue; or normal, short and license as slaves in the priority<br />

queue; or short, license, night, owners as master queues of their own.<br />

◆ Cross-queue fairshare cannot be used with host partition fairshare. It is part<br />

of queue-level fairshare.<br />

Steps 1 Decide to which queues in your cluster cross-queue fairshare will apply.<br />

For example, in your cluster you may have the queues normal, priority,<br />

short, and license and you want cross-queue fairshare to apply only to<br />

normal, license, and short.<br />

2 Define fairshare policies in your master queue.<br />

In the queue you want to be the master, for example normal, define the<br />

following in lsb.queues:<br />

❖ FAIRSHARE and specify a share assignment for all users of the queue.<br />

❖ FAIRSHARE_QUEUES and list slave queues to which the defined<br />

fairshare policy will also apply<br />

❖ PRIORITY to indicate the priority of the queue.<br />

Begin Queue<br />

QUEUE_NAME = queue1<br />

PRIORITY = 30<br />

NICE = 20<br />

FAIRSHARE = USER_SHARES[[user1,100] [default,1]]<br />

FAIRSHARE_QUEUES = queue2 queue3<br />

DESCRIPTION = For normal low priority jobs, running<br />

only if hosts are lightly loaded.<br />

End Queue<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 213

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

Saved successfully!

Ooh no, something went wrong!