Managing HP Serviceguard A.12.00.00 for Linux, June 2014
First, pkg3 is on Node 1, as this is the first node with least used capacity. Then, pkg5 is placed
on Node 4.
Scenario 3: Packages with dependency are placed in load sensitive placement.
1. Set the LOAD_BALANCING parameter to ON:
Parameters in cluster configuration:
LOAD_BALANCING ON
2. Create a cluster with four nodes, and CAPACITY_VALUE parameter for each node set to
INFINITE:
NODE_NAME node1
CAPACITY_NAME test_capacity
CAPACITY_VALUE INFINITE
3. Create four packages with the following weight_name and weight_value and dependency
conditions:
package:pkg1|weight:test_capacity|name=test_capacity
package:pkg1|weight:test_capacity|value=1
package:pkg2|weight:test_capacity|name=test_capacity
package:pkg2|weight:test_capacity|value=2
package:pkg3|weight:test_capacity|name=test_capacity
package:pkg3|weight:test_capacity|value=3
package:pkg4|weight:test_capacity|name=test_capacity
package:pkg4|weight:test_capacity|value=4
For pkg1 following are the dependencies:
dependency_name: pkg2dep
dependency_condition: pkg2=up
dependency_location: same_node
For pkg3 following are the dependencies:
dependency_name: pkg4dep
dependency_condition: pkg4=up
dependency_location: different_node
The packages are sorted according to the cumulative weight of the dependency tree, where,
pkg1 and pkg2 have cumulative weight of 3 and pkg3 and pkg4 have cumulative weight of
7.
4. Run the cmrunpkg -a command:
cmrunpkg -a pkg1 pkg2 pkg3 pkg4
Now, pkg4 is placed on Node 1 as this is the leaf package with weight of 4 and pkg2 is
placed on Node 1 as this has the same node dependency with weight of 2. Based on the
increasing weight, pkg3 is placed on Node 3 with weight of 3 and pkg1 is placed on Node
4 as this has different node dependency with weight of 1.
Scenario 4: Packages with and without dependencies configured for load sensitive placement:
1. Set the LOAD_BALANCING parameter to ON:
Parameters in cluster configuration:
LOAD_BALANCING ON
2. Create a cluster with four nodes, and CAPACITY_VALUE parameter for each node set to
INFINITE:
NODE_NAME test1
CAPACITY_NAME test_capacity
CAPACITY_VALUE INFINITE
4.9 Package Configuration Planning 131