HCL Workload Automation, Version 9.4

Scenario: Creating a job definition for a job to run on x86 processors

In this scenario, a job is created to run the application, appx86. The application must run on a workstation with an x86 processor where the CPU usage between 3 and 30%. Load balancing is to be defined by an objective to keep CPU use on matching resources to a minimum.

About this task

To create the job definition, perform the following steps:

Procedure

  1. In the Job Brokering Definition Console select File > New > Job brokering definition and create a new job definition named x86job. The job definition opens at the Overview page with the job name assigned.
  2. Open the Application page and define the required information for the appx86 application that the job is to run.
  3. Open the Resources page and specify the processor and CPU usage requirements as follows:
    1. Select the Advanced Requirements tab.
    2. Click Add Requirement. The Resource Property Details dialog box is displayed.
    3. In the Property Name menu, select CPU Utilization.
    4. In the Property Value section, select the Range Value radio button and assign values of 3 to Minimum and 30 to Maximum.
    5. Click Add Requirement. The Resource Property Details dialog box is displayed.
    6. In the Property Name menu, select Processor type.
    7. In the Property Value section, select the Exact Value radio button and assign a values of x86.
  4. Open the Optimization page and specify the load balancing requirement as follows:
    1. In the Type menu, select Balance load between resources by optimization objective.
    2. In the Resource Type menu, select Computer System.
    3. In the Resource Property menu, select CPU Utilization.
    4. In the Optimization Objective menu, select the Minimize.
  5. Select File > Save to save the job definition file.

Results

The JSDL file created for this scenario has the following syntax:
<jsdl:jobDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:jsdl="http://www.abc.com/xmlns/prod/scheduling/1.0/jsdl" 
xsi:schemaLocation="http://www.abc.com/xmlns/prod/scheduling/1.0/jsdl JSDL.xsd" 
description="Job to run on X86 processors" name="x86job">
 <jsdl:application name="executable">
    <jsdle:executable path="/opt/appx86">
    </jsdle:executable>
  </jsdl:application>
  <jsdl:resources>
    <jsdl:properties>
      <jsdl:requirement propertyName="CPUUtilization">
        <jsdl:range>
          <jsdl:minimum>3</jsdl:minimum>
          <jsdl:maximum>30</jsdl:maximum>
        </jsdl:range>
      </jsdl:requirement>
      <jsdl:requirement propertyName="ProcessorType">
        <jsdl:exact>x86</jsdl:exact>
      </jsdl:requirement>
    </jsdl:properties>
  </jsdl:resources>
  <jsdl:optimization name="JPT_JSDLOptimizationPolicyType">
    <jsdl:objective propertyObjective="minimize" 
          resourcePropertyName="CPUUtilization" 
          resourceType="ComputerSystem"/>
  </jsdl:optimization>  
</jsdl:optimization>
</jsdl:jobDefinition>