HP-UX Workload Manager User's Guide
Example configuration files
user_application_records.wlm
Chapter 9 339
#
#
# prm structure
# Create workload groups. Designate which workload binaries
# and users will be placed in each. We will be managing
# two workloads, apache and netscape, and two groups of users,
# testers and coders. Users not belonging to either group
# are placed in OTHERS.
#
# The users section places individuals into a workload group based
# on their login. Users not listed will run in OTHERS. Because
# application records take precedence over user records, if user larry
# runs netscape, that process will run in workload group ‘surfers’
# rather than ‘testers’. In a similar manner, if user larry runs
# httpd, it will run in ‘servers’ because the app record is used
# even though the user, larry, does not have permission to
# explicitly start or move other jobs to ‘servers’. Consult
# wlmconf(4) and prmconf(4) for more information.
#
#
# Note that netgroups can be used in the users record. For
# instance, if all development staff belonged to a netgroup
# ‘devel_netgrp’, this line could be used to place them all in
# workload group ‘coders’:
#
# users = +devel_netgrp : coders surfers,
# +test_netgrp : testers surfers;
#
# See wlmconf(4) for complete HP-UX WLM configuration information.
#
prm {
groups = OTHERS : 1,
testers : 2,
coders : 3,
servers : 4,
surfers : 5;
apps = servers : /opt/hpws/apache/bin/httpd,
surfers : /opt/netscape/netscape;
users = moe : coders surfers,
curly : coders surfers,
larry : testers surfers;
}