Using HP-UX Workload Manager: A quick reference

14
With the workload groups defined, the remainder of this section explores how processes can be
placed in the workload groups.
Application records: Workload separation by binary name
One mechanism for separating workloads is the apps statement. This statement names a particular
application binary and the group in which it should be placed. You can specify multiple
binary-workload group combinations, separated by commas, in a single apps statement.
In the following prm structure, the apps statement causes the PRM application manager to place any
newly running /opt/hpws/apache/bin/httpd executables in the group apache_grp.
prm {
groups = OTHERS : 1,
servers_grp : 2,
apache_grp : 3;
apps = apache_grp : /opt/hpws/apache/bin/httpd;
}
NOTE
For polling, understand that the process is not placed in the workload
group immediately after starting. Rather, the PRM application manager
periodically polls for newly started processes that match records in the
apps statement. Each matched process is placed in its designated
workload group at that time.
User records: Workload separation by process owner
You can place processes in workload groups according to the user IDs (UIDs) of the process owners.
Specify your user-workload group mapping in the users statement. For example:
prm {
groups = OTHERS : 1,
testers : 2,
coders : 3,
surfers : 4;
users = moe : coders surfers,
curly : coders surfers,
larry : testers surfers;
}
Besides the default OTHERS group, this example has three groups of users: testers, coders, and
surfers. The user records cause processes started by users moe and curly to be run in group
coders by default and user larry’s processes to be run in group testers by default. Each user is
also given permission to run jobs in group surfers if they want, using the prmrun or prmmove
commands discussed in subsequent sections. Users not belonging to either group are placed in
OTHERS by default.
As previously noted, application records take precedence over user records.
For more information on users’ access to workload groups, see the HP-UX Workload Manager User’s
Guide.