Managing HP Serviceguard A.12.00.00 for Linux, June 2014

1. Configure a cluster-wide default weight and let the package use that default.
2. Configure a cluster-wide default weight but override it for this package in its package
configuration file.
3. Do not configure a cluster-wide default weight, but assign a weight to this package in its
package configuration file.
4. Do not configure a cluster-wide default weight and do not assign a weight for this package
in its package configuration file.
NOTE: Option 4 means that the package is “weightless” as far as this particular capacity is
concerned, and can run even on a node on which this capacity is completely consumed by other
packages.
(You can make a package weightless for a given capacity even if you have defined a cluster-wide
default weight; simply set the corresponding weight to zero in the package's cluster configuration
file.)
Pursuing the example started under “Defining Capacities” (page 121), we can now use options 1
and 2 to set weights for pkg1 through pkg4.
4.9.10.4.2.2.1 Example 4
In pkg1's package configuration file:
weight_name A
weight_value 60
In pkg2's package configuration file:
weight_name A
weight_value 40
In pkg3's package configuration file:
weight_name B
weight_value 35
weight_name A
weight_value 0
In pkg4's package configuration file:
weight_name B
weight_value 40
IMPORTANT: weight_name in the package configuration file must exactly match the
corresponding CAPACITY_NAME in the cluster configuration file. This applies to case as well as
spelling: weight_name a would not match CAPACITY_NAME A.
You cannot define a weight unless the corresponding capacity is defined: cmapplyconf will fail
if you define a weight in the package configuration file and no node in the package's node_name
list (page 186) has specified a corresponding capacity in the cluster configuration file; or if you
define a default weight in the cluster configuration file and no node in the cluster specifies a
capacity of the same name.
Some points to notice about this example:
Since we did not configure a B weight for pkg1 or pkg2, these packages have the default B
weight (15) that we set in the cluster configuration file in Example 3 (page 122). Similarly,
pkg4 has the default A weight (20).
We have configured pkg3 to have a B weight of 35, but no A weight.
4.9 Package Configuration Planning 123