Page History

Turn Off History

How to reserve a slot or machine for special jobs

Suppose you have a type of job known as a "Pickle" job and you want to dedicate a specific slot or machine to running this type of job. The following example is one way to achieve this. Since this example adds to the existing START expression, be sure to insert it after START is first defined or merge the two definitions together. Place the following in the configuration file of the special machine:

#Advertise that this machine is for "Pickle" jobs
IsPickleSlot = True
STARTD_EXPRS = $(STARTD_EXPRS) IsPickleSlot

# this machine only runs "Pickle" jobs
START = ($(START)) && (MY.IsPickleSlot =!= True || TARGET.IsPickleJob)

In the job submit file:

+IsPickleJob = true
requirements = TARGET.IsPickleSlot

If you only want specific slots on the machine to be for Pickle jobs, you can adjust the setting of IsPickleSlot on a per-slot basis. Example:

SLOT1_IsPickleSlot = True
SLOT2_IsPickleSlot = False