Platform LSF Reference Version 6.2

lsf.cluster
Platform LSF Reference
495
ResourceMap Section
The ResourceMap section defines shared resources in your cluster. This section specifies
the mapping between shared resources and their sharing hosts. When you define
resources in the Resources section of
lsf.shared, there is no distinction between a
shared and non-shared resource. By default, all resources are not shared and are local to
each host. By defining the ResourceMap section, you can define resources that are
shared by all hosts in the cluster or define resources that are shared by only some of the
hosts in the cluster.
This section must appear after the Host section of
lsf.cluster.cluster_name,
because it has a dependency on host names defined in the Host section.
ResourceMap section structure
The first line consists of the keywords RESOURCENAME and LOCATION.
Subsequent lines describe the hosts that are associated with each configured resource.
Example ResourceMap section
Begin ResourceMap
RESOURCENAME LOCATION
verilog (5@[all])
local ([host1 host2] [others])
End ResourceMap
The resource verilog must already be defined in the RESOURCE section of the
lsf.shared file. It is a static numeric resource shared by all hosts. The value for
verilog is 5. The resource local is a numeric shared resource that contains two
instances in the cluster. The first instance is shared by two machines,
host1 and host2.
The second instance is shared by all other hosts.
Resources defined in the ResourceMap section can be viewed by using the
-s option of
the
lshosts (for static resource) and lsload (for dynamic resource) commands.
LOCATION
Description
Defines the hosts that share the resource
For a static resource, you must define an initial value here as well. Do not define a value
for a dynamic resource.
instance is a list of host names that share an instance of the resource. The reserved words
all, others, and default can be specified for the instance:
allIndicates that there is only one instance of the resource in the whole cluster
and that this resource is shared by all of the hosts
Use the not operator (~) to exclude hosts from the
all specification. For example:
(2@[all ~host3 ~host4])
means that 2 units of the resource are shared by all server hosts in the cluster made
up of
host1 host2 ... hostn, except for host3 and host4. This is useful if
you have a large cluster but only want to exclude a few hosts.
The parentheses are required in the specification. The not operator can only be used
with the
all keyword. It is not valid with the keywords others and default.