Scenario: Creating a job definition and submitting to a dynamic pool
In this scenario, you define the requirements for running the job when creating the dynamic pool, for example you can include in the dynamic pool all workstations with Windows operating system and DB2 installed and maximum CPU utilization at 50%. The dynamic pool is then populated with the workstations which match your requirements and is ready for the job to be submitted.
About this task
Procedure
- Log in to the Dynamic Workload Console.
- From the Design menu, select Workload Designer
- Select an engine and click Create new Workstation.
- Select Dynamic Pool from the list
- Complete the required fields.
-
In the field Requirements specify what follows:
- Select the operating system in the Operating System pane.
- Select CPU utilization and the Maximum value percentage.
- Select the required logical resource in the File Systems . To include workstations with DB2 installed, click Add and specify your requirement in the Requirements pane.
- Optionally, select the required optimization policy.
- Click OK to save your requirements.
- Click Save to save the dynamic pool.
-
Create a job and define general information about it:
- From the Design menu, click Workload Designer page, and then select the engine.
- In Explore area, click Create new + and select Job.
- Click the Executable job.
- In General Info, in Folder, select IT_operations.
- In General Info, in Name, type UPGRADE_JAVA_VERSION.
- In General Info, in Workstation, select BK_server.
- In General Info, in Description, type Java upgrade to version 11.
- In Task, in Command text or script name, type apt install --only-upgrade openjdk-11-jre-headless -y.
-
Specify an engine name, either distributed or z/OS
The Workload Designer opens. Job types and characteristics vary depending on whether you select a distributed or z/OS engine.
- Select .
- Complete the required fields and specify the dynamic pool you previously created in the Workstation field.
- Type your SQL instructions in the SQL tab.
- Click to save the job.
- From the navigation toolbar, click .