Resources

By default, jobs and file transfers are processed without agent limitations. Different tasks contain different statements, though, some of them being CPU consuming or having long runtimes. The Automation Engine has developed a resource concept that considers the agent workload during processing.

Agents have a specified resource pool; with this concept it is possible to define how many resources should be consumed during the execution of a job or a file transfer.

Automic's resource concept does not specifically refer to CPU time or memory etc. The values specified as resources are abstract values which intend to provide a high level of flexibility for your configuration.

How it Works

A task starts as soon as the agent has sufficient resources to execute it. If it runs into insufficient resources, the status of the task changes to Waiting for resource and it will be executed as soon as resources are available again. If there are several tasks waiting, the Automation Engine Priority is the crucial factor for deciding which one should be processed first.

For example:

An agent has 100 resources available for job executions. Three jobs should be started.

Tasks that are waiting can be started at any time using either the Ignore Agent Resource command in the Tasks window or the MODIFY_UC_OBJECT script function. The current resources of the agent are then ignored. Task resources are consumed and the agent maximum resource value is exceeded in the short term.

Important considerations

To Use the Automation Engine Resource Concept

By default, agents do not check the resource settings of Jobs and File Transfers. If you intend to use the AE resource concept, you must first specify how many resources the agents should provide:

  1. Log on to system client 0000.
  2. Open the UC_HOSTCHAR_DEFAULT variable or any other agent characteristics of your agents if you use different variables.
  3. Enter the resources the agent should provide in the WORKLOAD_MAX_FT and WORKLOAD_MAX_JOB keys.

    Entering -1 means that the resource setting of jobs and file transfers is ignored. It applies for the resource consumption of jobs and file transfers. This value can be changed as follows:

    1. Open the UC_SYSTEM_SETTINGS variable.
    2. Modify the values for the WORKLOAD_DEFAULT_FT and WORKLOAD_DEFAULT_JOB keys if a different default value should be specified.

The resource consumption of jobs and file transfers that should not use the default value can be specified in the object Attributes Pages of Executable Objects. If you enter 0, the default value of the UC_SYSTEM_SETTINGS variable is used.

Special Case: Maximum Number of Tasks that Can Run Simultaneously

The Automation Engine resource concept can also be used to limit the number of tasks that may run simultaneously on an agent.

Ensure that all jobs and file transfers consume resources of value 1.  This can be specified in the keys of the UC_SYSTEM_SETTINGS variable. The default value of the variable is used only if job and file transfer objects have the value "0" specified as resource consumption.

Now enter the maximum number of parallel tasks as the resource value in the variable(s) for host characteristics.

Each job and file transfer consumes one resource during its execution. Thus, the agent resource value acts as the maximum number of tasks running in parallel.

Script

Script Elements

Description

:PUT_ATT

Changes the value of an attribute during generation

:SET_UC_SETTING

Changes system settings during system operation

GET_ATT

This function returns the values of a task's attributes during generation.

GET_UC_SETTING

Reads current system settings

MODIFY_UC_OBJECT

Modifies the attribute of an activated object

See also:

Controlled Computer Restart