On Dec 7, 2007, at 7:47 AM, Dominik Klein wrote:

Good morning Andrew

sorry I have to bother again about score calculation but I came across something I don't understand and that might be a bug.

I have a master-slave drbd resource called ms-drbd (primitive is called drbd2) and a group named testdb (4 primitives, "mount" being the first primitive).
pingd multiplier is 300 (5 ping nodes)
default-resource-stickiness is 200

And these are my constraints:
<constraints>
<rsc_order id="drbd2_before_testdb" from="testdb" action="start" to="ms-drbd2" to_action="promote"/> <rsc_colocation id="testdb_on_drbd2" to="ms-drbd2" to_role="master" from="testdb" score="300"/>
</constraints>

When I look at the scores, I see

drbd2:0 node1 0
Okay.

drbd2:0 node2 676
Weird
This looks like the crm_master value from the drbd OCF RA plus stickiness times (number_of_group_items - 1).
that would make sense.
How I come to think this has to do with the group? Because if I add another item to the group, the score increases by 1 x stickiness.

Guess this shouldn't be, should it?
it should.
the group needs to go with the master... so it makes sense that you should take the groups location preferences into account when deciding where to place and promote drbd

Full ack on that, but I didn't configure it (at least not that I knew of - yet). So it's known and wanted to work this way. Sweet!

Just curious: I suppose its my first constraint that does this job?

second - the colocation one



Regards
Dominik
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to