Using Serviceguard Node Capacities and Package Weights, April 2009
3
Figure 1: Capacity and weight example
Node1
Pkg1
foo1 capacity = 70
foo2 capacity = 30
foo1 weight = 30
foo2 weight = 10
Pkg2
foo1 weight = 10
foo2 weight = 15
Pkg3
foo1 weight = 20
foo2 weight = 10
Pkg1 weight = 10
Capacity remaining = 5
Pkg1 weight = 15
Pkg1 weight = 30
Capacity remaining = 30
Pkg1 weight = 10
Node Capacity parameters
The node parameters, capacity_name and capacity_value, defined in the cluster configuration
file, are used to define a node capacity. The capacity_name sets the name and the
capacity_value sets the limit for that capacity for the node.
If you do not specify a capacity for a given node, Serviceguard assumes the capacity is infinite on
that node.
See Table 1 below for an example.
Weight parameters
There are two methods for defining weight for packages:
1. You can define weight for a specific package by means of the weight_name and
weight_value parameters in the package configuration file.
• The weight_name sets the name of the weight.
Note: A package weight corresponds to a node capacity of the same name. This
weight_name must exactly match the corresponding capacity_name for the node.
• The weight_value sets capacity usage for that capacity for the package.
• See the following Table 1 for an example.