Platform LSF Reference Version 6.2
Limit Section
Platform LSF Reference
436
Compatibility with lsb.queues, lsb.users, and lsb.hosts
The Limit section of lsb.resources does not support the keywords or format used
in
lsb.users, lsb.hosts, and lsb.queues. However, your existing job slot limit
configuration in these files will continue to apply.
Job slot limits are the only type of limit you can configure in
lsb.users, lsb.hosts,
and
lsb.queues. You cannot configure limits for user groups, host groups, and
projects in
lsb.users, lsb.hosts, and lsb.queues. You should not configure any
new resource allocation limits in
lsb.users, lsb.hosts, and lsb.queues. Use
lsb.resources to configure all new resource allocation limits, including job slot
limits.
Existing limits in
lsb.users, lsb.hosts, and lsb.queues with the same scope as
a new limit in
lsb.resources, but with a different value are ignored. The value of the
new limit in
lsb.resources is used. Similar limits with different scope enforce the
most restrictive limit.
HOSTS
Syntax
HOSTS=all
[~]host_name ... | all [~]host_group ...
HOSTS
(
[-] | all [~]host_name ... | all [~ ]host_group ... )
Description
A space-separated list of hosts, host groups defined in lsb.hosts on which limits are
enforced. Limits are enforced on all hosts or host groups listed.
If a group contains a subgroup, the limit also applies to each member in the subgroup
recursively.
To specify a per-host limit, use the PER_HOST keyword. Do not configure HOSTS and
PER_HOST limits in the same Limit section.
If you specify MEM, TMP, or SWP as a percentage, you must specify PER_HOST and
list the hosts that the limit is to be enforced on. You cannot specify HOSTS.
In horizontal format, use only one HOSTS line per Limit section.
Use the keyword
all to configure limits that apply to all hosts in a cluster.
Use the not operator (
~) to exclude hosts from the all specification in the limit. This
is useful if you have a large cluster but only want to exclude a few hosts from the limit
definition.
In vertical tabular format, multiple host names must be enclosed in parentheses.
In vertical tabular format, use empty parentheses
() or a dash (-) to indicate all hosts.
Fields cannot be left blank.
Default all (limits are enforced on all hosts in the cluster).
Example 1
HOSTS=G=roup1 ~hostA hostB hostC
Enforces limits on hostB, hostC, and all hosts in Group1 except for hostA.
Example 2
HOSTS=all ~group2 ~hostA
Enforces limits on all hosts in the cluster, except for hostA and the hosts in group2.