[Linux-HA] Possible bug in Score calculation?
dk at in-telegence.net
Thu Dec 6 23:47:18 MST 2007
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:
>> <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"/>
>> When I look at the scores, I see
>> drbd2:0 node1 0
>> drbd2:0 node2 676
>> 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?
More information about the Linux-HA