Defining affinity relationships
Affinity relationships cause jobs to run on the same workstation. The workstation on which the first job runs is chosen dynamically by dynamic workload broker, and the affine job or jobs run on the same workstation. This section applies to job types with advanced options and workload broker jobs.
In dynamic workload broker,
you can define affinity relationships between two or more jobs when
you want them to run on the same workstation. When submitting the
job from the HCL Workload Automation environment,
you can define affinity that will be resolved by dynamic workload broker by
adding an affinity definition to the Task String section of
the HCL Workload Automation job
using the HCL Workload Automation job
name as follows:
jobName [-var varName=varValue,…,]-twsaffinity jobname=twsJobNamewhere
- twsJobName
- Is the name of the instance of the HCL Workload Automation job with which you want to establish an affinity relationship.
Note: The jobs must belong to the same job stream