Platform LSF Administrator's Primer Version 6.2

Chapter 5
Using Shared Resources to Manage Software Licenses
Platform LSF Administrator’s Primer
49
RESOURCENAME TYPE INTERVAL INCREASING RELEASE DESCRIPTION # Keywords
license1 Numeric 30 N Y (license1 resource)
license2 Numeric 30 N Y (license2 resource)
End Resource
The TYPE of shared resource can be:
Numeric
Boolean
String
In this case, the resource is numeric.
The INTERVAL specifies how often the value should be refreshed; in this case, the
ELIM updates the shared resource values every 30 seconds.
The N in INCREASING means that the license resources are decreasing; that is, as
more licenses become available, the load becomes lower.
The Y in RELEASE means that the license resources are released when a job using
the license is suspended.
Mapping dynamic shared resources to hosts
To make LSF aware of where the defined dynamic shared resources license1 and
license2 you just defined, you map them to the hosts where they are located.
In
LSF_CONFDIR/lsf.cluster.cluster_name, configure a ResourceMap
section to specify the mapping between shared resources
license1 and license2
you defined in
LSF_CONFDIR/lsf.shared, and the hosts you want to map them to.
For example:
Begin ResourceMap
RESOURCENAME LOCATION
license1 [all]
license1 [all]
End ResourceMap
In this resource map, [all] under LOCATION means that resources license1 and
license2 under RESOURCENAME are available on all hosts in the cluster. Only one
ELIM needs to run on the master host because the two resources are the same for all
hosts. If the location of the resources is different on different hosts, an ELIM must run
on every host.
Monitoring dynamic shared resources
For LSF to receive external load indices correctly, the ELIM must send a count of the
available resources to standard output in the following format:
number_indexes [index_name index_value] ...
For example:
2 license1 3 license2 2
Where the fields contain the following information:
The total number of external load indices (2)
The name of the first external load index (license1)
The value of the first load index (3)
The name of the second external load index (license2)