LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 331
Resource Preemption
Resource Preemption Steps
To make resource preemption useful, you may need to work through all of these
steps.
1 Read.
Before you set up resource preemption, you should understand the following:
◆ Preemptive Scheduling
◆ Resource Preemption
◆ Resource Reservation
◆ Customizing Resources
◆ Customizing Job Controls
2 Plan.
When you plan how to set up resource preemption, consider:
◆ Custom job controls: Find out what signals or actions you can use with
your application to control the preemption resource when you suspend and
resume jobs.
◆ Existing cluster configuration: Your design might be based on preemptive
queues or custom resources that are already configured in your cluster.
◆ Requirements for resource preemption: Your design must be able to work.
For example, if the application license is the preemption resource, you
cannot set up one queue for each type of application, because preemption
occurs between different queues. If a host-based resource such as memory
is the preemption resource, you cannot set up only one queue for each host,
because preemption occurs when 2 jobs are competing for the same
resource.
3 Write the ELIM.
4 Configure LSF.
a
lsb.queues
◆ Set PREEMPTION in at least one queue (to PREEMPTIVE in a
high-priority queue, or to PREEMPTABLE in a low-priority queue).
◆ Set JOB_CONTROLS (or TERMINATE_WHEN) in the low-priority
queues. Optional. Set RES_REQ to automatically reserve the custom
resource.
b
lsf.shared
Define the custom resource in the Resource section.
c
lsb.params
◆ Set PREEMPTABLE_RESOURCES and specify the custom resource.
◆ Optional. Set PREEMPTION_WAIT_TIME to specify how many
seconds to wait for dynamic resources to become available.