[Linux-HA] new feature weak colocation testing using Andrew's
CRM-Stable-190294c11946
Andrew Beekhof
beekhof at gmail.com
Fri Oct 20 00:43:14 MDT 2006
On 10/20/06, Alex and Gill Strachan <asgks at yahoo.com> wrote:
> I have three groups, each with multiple resources.
>
> Added colocation rules to associate one group with either of the other two in a preference order.
>
> e.g.
> <rsc_colocation id="colocation_sinfids3_sinfids3A" from="group_sinfids3" to="group_sinfids3A" score="900000"/>
> <rsc_colocation id="colocation_sinfids3_sinfids3B" from="group_sinfids3" to="group_sinfids3B" score="100000"/>
>
> Do I need to add in <expressions> and match on #uname?
no. not required.
> On using "crm_verify -L -V -V -V -V -V -V" I see that the colocation rules are unpacked but there is no evidence that any weight value has been added to nodes as with location rules.
>
> Is there another way to see how colocation rules affect the nodes values ?
Look for entries like this:
ptest[666]: 2006/10/20_08:35:14 debug: native_assign_node: Color
lsb_dummy, Node[0] c001n03: 0
ptest[666]: 2006/10/20_08:35:14 debug: native_assign_node: Color
lsb_dummy, Node[1] c001n02: 0
ptest[666]: 2006/10/20_08:35:14 debug: native_assign_node: Assigning
c001n03 to lsb_dummy
It will list every allowed node and what score it had.
In this case we chose c001n03 and both nodes had the same score (0).
Changing the constraint's weight should also change the end score.
btw. thanks for including your exact version number - it makes helping
so much easier :)
>
> Output:
> (An exmaple of location - show weight assignment)
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: generate_location_rule: Processing rule: prefered_run_sinfids3_sinfids3b1
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: generate_location_rule: Processing expression: ada90b6d-1443-4de0-bf3e-0859257bcfe5
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: test_expression: Expression ada90b6d-1443-4de0-bf3e-0859257bcfe5 passed on sinfids3b1
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: generate_location_rule: node sinfids3b1 now has weight 1000
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: test_expression: Expression ada90b6d-1443-4de0-bf3e-0859257bcfe5 failed on sinfids3a2
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug2: test_expression: Expression ada90b6d-1443-4de0-bf3e-0859257bcfe5 failed on sinfids3a1
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: generate_location_rule: prefered_run_sinfids3_sinfids3b1: 1 nodes matched
>
> (An example of tyhe output for colocation)
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: unpack_constraints: Processing constraint rsc_colocation colocation_sinfids3_sinfids3A
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: unpack_constraints: Processing constraint rsc_colocation colocation_sinfids3_sinfids3B
>
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: cleanup_alloc_calculations: deleting order cons: (nil)
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: cleanup_alloc_calculations: deleting node cons: 0x9c18e80
>
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: cleanup_calculations: deleting actions
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: cleanup_calculations: deleting resources
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing group_sinfids3
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child resource_sinfids3_vip
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child list
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing group_sinfids3A
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child resource_sinfids3A_vip
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child resource_sinfids3A_drbd
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child resource_sinfids3A_fs
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child list
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing group_sinfids3B
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child resource_sinfids3B_vip
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: group_free: Freeing child list
> crm_verify[24290]: 2006/10/20_10:40:38 debug: debug3: cleanup_calculations: deleting nodes
> crm_verify[24290]: 2006/10/20_10:40:38 debug: cib_native_signoff: Signing out of the CIB Service
>
>
>
> ---------------------------------
> On Yahoo!7
> Messenger: Share up to 1GB of files in the IM window
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list