Submitting jobs with affinity relationships
An affinity relationship is established between two or more jobs when you want them to run on the same resource.
Before you begin
Submitting a job with affinity from the Dynamic Workload Console
About this task
Procedure
- In the console navigation tree, expand Definitions and click Jobs.
- Search for a job definition stored in the Job Repository database.
- Select the job definition that you want to submit.
- Click Submit...
- Click Go. The Job Definitions wizard starts.
- You can optionally define an alias for the job by selecting Provide an alias to the job for this submission. Subsequently, you can use the alias name to submit a new job using the jobsubmit command to define an affinity relationship with the job you are submitting now. You can also use the alias as a user-friendly alternative to the job ID when performing queries on jobs from the command line or tracking job instances.
- In the Target Resource area, select the option Specify that this job runs on the same resources as a previous job.
- Click Next. If you selected to specify an alias, then you are prompted to provide the alias name. Click Next.
- Search and select the job with which you want to establish an affinity relationship. The current job will then run on the same resource as the job you select. Click Next.
On the summary page, review your selections and click Finish to submit the job.
Results
Submitting a job with affinity from the command line
About this task
What to do next
jobsubmit -jsdl WinJob2.jsdl -alias WJ220070606 -affinity alias=WJ120070606