The table below details the job template attributes that relate specifically to workload-driven cloud services.
DESTROYTEMPLATE | |||
Format: | <templateName> | ||
Template Type: |
JSET | ||
Description: | When this job is canceled, Moab creates a new job and applies the specified template (must be a generic system job). The original job remains until the new job successfully completes. The job created by DESTROYTEMPLATE is the cancel action for the original job. | ||
Example: |
JOBCFG[VMTracking] GENERICSYSJOB=TRUE JOBCFG[VMTracking] DESTROYTEMPLATE=destroyVM JOBCFG[destroyVM] GENERICSYSJOB=TRUE JOBCFG[destroyVM] TRIGGER=EType=start,AType=exec,Action="$HOME/destroy.py $VMID",timeout=5:00 VMTracking job is canceled, the destroyVM job is created. When that completes, VMTracking is removed. |
||
GENERICSYSJOB | |||
Format: | <BOOLEAN> : TRUE | FALSE | ||
Template Type: |
JSET | ||
Description: |
Causes the job template to create a special type of system job (a generic system job) that does the following:
See Creating a Generic System Job for more information. |
||
Example: |
JOBCFG[test] GENERICSYSJOB=TRUE JOBCFG[test] TRIGGER=EType=start,AType=exec,Action="$HOME/setupSoftware.py $IPAddr",Time=5:00 |
||
INHERITRES | |||
Format: | <BOOLEAN> : TRUE | FALSE | ||
Template Type: |
JSET | ||
Description: | This job inherits the resource definition of the job that created it (via TEMPLATEDEPEND). The job that finishes first will pass its allocation directly to the next job. | ||
Example: |
JOBCFG[test] INHERITRES=TRUE |
||
MIGRATETEMPLATE | |||
Format: | <templateName> | ||
Template Type: |
JSET | ||
Description: |
When this job is relocated, Moab creates a new job and applies the specified template (must be a generic system job). The original job remains until the new job successfully completes. The job created by MIGRATETEMPLATE is the migrate action for the original job. |
||
Example: |
JOBCFG[VMTracking] MIGRATETEMPLATE=migrateVM JOBCFG[migrateVM] GENERICSYSJOB=TRUE FLAGS=NORMSTART JOBCFG[migrateVM] TRIGGER=EType=start,AType=exec,Action="$HOME/migrate.py $VMID $MASTERHOST",timeout=5:00 VMTracking job is moved, the migrateVM job is created. When that completes, VMTracking migrates to the desired location.
|
||
TEMPLATEDEPEND | |||
Format: |
|
||
Template Type: |
JSET | ||
Description: | Specifies when the job should run based on other jobs in the workflow. See the Job Dependency Syntax table for details. | ||
Example: |
JOBCFG[test] TEMPLATEDEPEND=AFTEROK:test2 |
||
VMUSAGE | |||
Format: |
|
||
Template Type: |
JSET | ||
Description: | Specifies whether this job has restrictions related to running on a physical or virtual machine. Valid options include:
See Scheduling Jobs When VMs Exist for details. |
||
Example: |
JOBCFG[test] VMUSAGE=createvm test template applied must run on a hypervisor that can supports the VM it sets up.
|
Copyright © 2012 Adaptive Computing Enterprises, Inc.®