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.

Ways to Configure Fairshare<br />

Ways to Configure Fairshare<br />

Global fairshare<br />

Configuring<br />

Example<br />

Chargeback fairshare<br />

Configuring<br />

Example<br />

Global fairshare balances resource usage across the entire cluster according to<br />

one single fairshare policy. Resources used in one queue affect job dispatch<br />

order in another queue.<br />

If 2 users compete for resources, their dynamic share priority is the same in<br />

every queue.<br />

To configure global fairshare, you must use host partition fairshare. Use the<br />

keyword all to configure a single partition that includes all the hosts in the<br />

cluster.<br />

Begin HostPartition<br />

HPART_NAME =GlobalPartition<br />

HOSTS = all<br />

USER_SHARES = [groupA@, 3] [groupB, 7] [default, 1]<br />

End HostPartition<br />

Chargeback fairshare lets competing users share the same hardware resources<br />

according to a fixed ratio. Each user is entitled to a specified portion of the<br />

available resources.<br />

If 2 users compete for resources, the most important user is entitled to more<br />

resources.<br />

To configure chargeback fairshare, put competing users in separate user<br />

groups and assign a fair number of shares to each group.<br />

Suppose two departments contributed to the purchase of a large system. The<br />

engineering department contributed 70 percent of the cost, and the accounting<br />

department 30 percent. Each department wants to get their money’s worth<br />

from the system.<br />

1 Define 2 user groups in lsb.users, one listing all the engineers, and one<br />

listing all the accountants.<br />

Begin UserGroup<br />

Group_Name Group_Member<br />

eng_users (user6 user4)<br />

acct_users (user2 user5)<br />

End UserGroup<br />

2 Configure a host partition for the host, and assign the shares appropriately.<br />

Begin HostPartition<br />

HPART_NAME = big_servers<br />

HOSTS = hostH<br />

USER_SHARES = [eng_users, 7] [acct_users, 3]<br />

End HostPartition<br />

236<br />

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

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

Saved successfully!

Ooh no, something went wrong!