Applying an order of preference to possible targets
In this scenario, you create a job that uses logical resources to apply an order of preference to a group of eligible target computers on which a job can run.
Business Goal
- The administrator creates a logical resource for each of the eligible computer targets that are part of the preference order list. The logical resources are all of the same type and have a quantity that represents the preference value used to order the list.
- The administrator creates a definition for the job that must be run on the target computers according to the preference order.
- The administrator uses the Dynamic Workload Console to schedule the job.
Roles
- dynamic workload broker Developer
- Defines the jobs using the Job Brokering Definition Console
- dynamic workload broker Operator
- Monitors and controls the jobs that have been submitted.
- HCL Workload Automation Job Scheduler
- Manages the workload by submitting and monitoring jobs.
Software requirements
The following software must be installed and configured, before running this scenario:- A HCL Workload Automation network with the Dynamic Scheduling capability.
- Optionally, the Dynamic Workload Console
Setting up the environment
To run this scenario, complete the tasks described in Setting up your environment for dynamic scheduling.
Running the Scenario
To create the logical resources and a job definition that selects a defined logical resource based on an established order of preference, perform the following steps:
Procedure
Expected Results
When the job is submitted, it is sent to the first available target computer associated with the logical resource of type Preference that has the highest quantity. If a selected target is unavailable, the job is submitted to the first available target in the order of preference. You can change preference values for your computers at any time. The new order becomes effective for job submission as soon as it is saved.
Sample Configuration file
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl"
xmlns:jsdle="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdle"
name="JobWithPreference">
<jsdl:variables>
<jsdl:stringVariable name="myApp">myExecutable</jsdl:stringVariable>
</jsdl:variables>
<jsdl:application name="executable">
<jsdle:executable interactive="false" path="${myApp}"/>
</jsdl:application>
<jsdl:resources>
<jsdl:candidateOperatingSystems>
<jsdl:operatingSystem type="LINUX"/>
</jsdl:candidateOperatingSystems>
<jsdl:logicalResource subType="Preference"/>
</jsdl:resources>
<jsdl:optimization name="JPT_BestResource">
<jsdl:objective propertyObjective="maximize" resourcePropertyName="Quantity"
resourceType="LogicalResource"/>
</jsdl:optimization>
</jsdl:jobDefinition>