You are here: 21 Preemption > How-to > Checkpointing Jobs with Preemption

Checkpointing Jobs with Preemption

To preempt jobs using CHECKPOINT

Make the following configurations to the moab.cfg file:

  1. Set GUARANTEEDPREEMPTION to TRUE. (This causes Moab to lock PREEMPTOR jobs until JOBRETRYTIME expires.)(This locks the job on a node and keeps trying to preempt.)
  2. Set PREEMPTIONALGORITHM to specify how Moab handles preemption scheduling policies.

    If you use JOBNODEMATCHPOLICY EXACTNODE, you must also add PREEMPTIONALGORITHM PREEMPTORCENTRIC in order for preemption to function reliably.

  3. Set PREEMPTPOLICY to CHECKPOINT (for more information, see PREEMPTPOLICY Types).
  4. Make sure that the PREEMPTEE job has a lower priority than the PREEMPTOR job (for more information, see Preemption Flags).

For example:

GUARANTEEDPREEMPTION TRUE
PREEMPTPOLICY CHECKPOINT
 
QOSCFG[test1] QFLAGS=PREEMPTEE MEMBERULIST=john PRIORITY=100
QOSCFG[test2] QFLAGS=PREEMPTOR MEMBERULIST=john PRIORITY=10000

Related Topics 

© 2016 Adaptive Computing