Managing HP Serviceguard A.12.00.00 for Linux, June 2014

pkg6 and pkg4 are placed on Node 3 which is of weight 33
pkg5 which has different node dependency from pkg6 and is placed on the least loaded
node out of Node 1, Node 2, and Node 4 since pkg6 is running on Node 3. So, pkg5
is placed on Node 2.
Similarly, the remaining packages are placed according to the dependency condition and load
as follows:
On Node 1: mnpkg1, pkg3, and mnpkg2
On Node 2: pkg2, pkg5, pkg1, and mnpkg2
On Node 3: pkg6, pkg4, and mnppkg2
On Node 4: mnpkg1 and mnpkg2
NOTE: In rare scenarios, you might happen to see that even though the packages are sorted
according to the weight, they do not start on the nodes they are expected to. This is because there
might be a delay in starting the package due to dependency conditions not being satisfied. This
might result in starting a package of lesser weight before a heavy weight package.
For example, in scenario 3 the load sensitive placement tries to place pkg6 and assigns Node3.
Since it is unable to start the package, pkg4 is considered for placement since it has different node
dependency and pkg6 is not considered. Therefore, the placement of package is as follows:
On Node 1: mnpkg1 and mnpkg2
On Node 2: pkg2, pkg3, pkg1, and mnpkg2
On Node 3: pkg5, pkg6, pkg4, and mnppkg2
On Node 4: mnpkg1 and mnpkg2
CAPACITY_VALUE parameter set to finite
Scenario 1: Starting packages with cmrunpkg a command
1. Set the LOAD_BALANCING parameter to ON:
Parameters in cluster configuration:
LOAD_BALANCING ON
2. Create a cluster with nodes having CAPACITY_VALUE parameter set to a finite value:
NODE1 test1
CAPACITY_NAME test_capacity
CAPACITY_VALUE 11
NODE2 test2
CAPACITY_NAME test_capacity
CAPACITY_VALUE 14
NODE3 test3
CAPACITY_NAME test_capacity
CAPACITY_VALUE 8
NODE4 test4
CAPACITY_NAME test_capacity
CAPACITY_VALUE 7
3. Create packages with weight_name and weight_value in the package configuration file:
weight_name test_capacity
weight_value <value>
For example, consider creating five packages with different weight_value as shown:
package:pkg1|weight:test_capacity|name=test_capacity
package:pkg1|weight:test_capacity|value=4
package:pkg2|weight:test_capacity|name=test_capacity
package:pkg2|weight:test_capacity|value=3
package:pkg3|weight:test_capacity|name=test_capacity
4.9 Package Configuration Planning 133