HP-UX Workload Manager User's Guide
Introduction
Examples of solutions that WLM provides
Chapter 1 53
Priority. 1
CPU shares. 800 shares
Condition. 15th or 28th
Reserving CPU resources based on a condition or event
This SLO is enabled only part time and conditionally. Rather than
allocating CPU resources on a specific date or time, they are allocated
when a specified condition is met, in this case when the system
accounting program is running. When the SLO is active, it works to
ensure the system accounting program completes quickly by reserving
600 CPU shares for the associated workload. When the program is
completed, the SLO is disabled. At that point, the SysAcct workload gets
a specific percentage (usually 1%) of the total CPU resources, as
explained in the section “Specifying when the SLO is active (optional)” on
page 205.
Workload. SysAcct
Priority. 1
CPU shares. 600 shares
Condition. System accounting program is running
Ensuring resources in an HP Serviceguard failover
This SLO is enabled based on a conditional metric. This example
illustrates an SLO that is active only if the Serviceguard package pkgA
is active on the current server. WLM provides a utility that generates a
metric indicating whether a package is active. When the metric has
value 1, the package is active, thus enabling the SLO. The SLO then
causes WLM to attempt to allocate 300 CPU shares to the associated
workload.
Workload. Failover_pkgA
Priority. 1
CPU shares. 300 shares
Condition. pkgA is active on the current server