24.0 Job templates > About job templates

Conventions

24.0 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. For more information about creating cloud services, see About workload-driven cloud services.

You can use job templates in many aspects of scheduling, including cloud environments. 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.