HP-UX Workload Manager User's Guide
Example configuration files
manual_entitlement.wlm
Chapter 9300
# the specific allocation.
# Components:
# Uses the wlmsend and wlmrcvdc tools to relay a metric from
# an outside user.
#
# Dependencies:
# This example was designed to run with HP-UX WLM version A.01.02 or
# later. It uses the cpushares keyword introduced in A.01.02, so
# is incompatible with earlier versions of HP-UX WLM.
#
#
#
# prm structure
# Create a workload group called grp1 and define the binaries that
# make it up. In this example, the apache webserver binary
# /opt/hpws/apache/bin/httpd and the apache benchmark utility
# /opt/hpws/apache/bin/ab are used as the workloads. This
# also illustrates how to place two different binaries into
# the same workload group. See the example configurations in
# /opt/wlm/toolkits/apache/config/ for more WLM configurations
# to place and control apache.
#
# See wlmconf(4) for complete HP-UX WLM configuration information.
#
prm {
groups = OTHERS : 1, grp1 : 2;
apps = grp1 : /opt/hpws/apache/bin/httpd,
grp1 : /opt/hpws/apache/bin/ab;
}
#
# Have HP-UX WLM manage the CPU allocation such that the workload group
# grp1 gets 1 share per metric. That is, setting the metric
# myapp.desired.allocation to 20 results in 20 shares for grp1,
# setting the metric myapp.desired.allocation to 50 results in 50
# shares for grp1, and so forth.
#
slo grp1 {
pri = 1;
entity = PRM group grp1;
cpushares = 1 total per metric myapp.desired.allocation;
}