HP-UX Workload Manager User's Guide
Example configuration files
usage_stretch_goal.wlm
Chapter 9334
usage_stretch_goal.wlm
This example shows the use of stretch goals in addition to base CPU
usage goals for several different workload groups. A priority 1 SLO
specifies a base CPU usage goal for the OTHERS group to ensure that it
receives between 1 and 100 CPU shares. Additional priority 1 SLOs are
defined for three additional groups to ensure that they receive between 1
and 200 CPU shares. For each of these three groups, an additional
priority 10 SLO defines a stretch goal calling for between 1 and 800 CPU
shares if any remain after the priority 1 SLOs are satisfied.
#
# Name:
# usage_stretch_goal.wlm
#
# Version information:
#
# (C) Copyright 2003-2006 Hewlett-Packard Development Company, L.P.
#
# $Revision: 1.6 $
#
# Caveats:
# DO NOT MODIFY this file in its /opt/wlm/examples/wlmconf location!
# Make modifications to a copy and place that copy outside the
# /opt/wlm/ directory, as items below /opt/wlm will be replaced
# or modified by future HP-UX WLM product updates.
#
# Purpose:
# Demonstrate workload groups with multiple SLOs at different
# priority levels, creating a base goal and a “stretch” goal (a goal
# that we’d like to have met if all other higher-priority SLOs are
# being met). All the SLOs are based on usage goals.
#
# With a usage goal, WLM adjusts a workload group’s number of CPU
# shares to keep its CPU utilization within a certain range. For
# example, if a workload group’s processes are using 20 CPU shares
# and have a 50 CPU share allocation, the group’s utilization is
# 20/50 or 40%. WLM attempts to keep a workload group’s utilization
# between a low and high bound--50% and 75% by default. To bring our
# example group’s utilization up to 50%, WLM would change its
# allocation from 50 shares to 40 shares. The utilization is
# then 20/40, or 50%.
#
#