You are here: About job templates

Chapter 22 About Job Templates

A Moab job template is a set of pre-configured settings, attributes, and resources that Moab applies to jobs that match certain criteria or to which you manually apply it. They perform three primary functions:

  1. They generically match and categorize jobs.
  2. They set arbitrary default or forced attributes for certain jobs.
  3. They generate workflows that create and maintain user-requested services in a cloud environment.

You can use job templates in many aspects of scheduling, including Peer-Based Grid usage policies. Job templates are defined using the JOBCFG configuration parameter.

Two methods exist for applying job templates to jobs. You can use the JOBMATCHCFG parameter to mark a template that contains the criteria a job must meet for eligibility and another template as the one to be applied to the job if it is eligible. This allows you to automate the use of templates. For example, to force all interactive jobs to run on a certain set of nodes, you can set one template (the criteria template) to have the interactive flag, then give the other template the desired host list. You can also apply a template directly to a job at submission if that ability is enabled for that template.

© 2016 Adaptive Computing