Adrian Chapela wrote:
Dominik Klein escribió:
Hi

during the writeup of ScoreCalculation on the wiki, I noticed something strange. It'd be nice to know whether this is on purpose or a bug.

Test setup is:

2 nodes, 1 drbd device, a group of 3 resource which are to run on top of the drbd master.

resource_stickiness is set to 100

If I use a colocation constraint with a score of infinity, the master receives a stickiness bonus of 600.

If I change the colocation score to a numeric value (I tested 1000 and 5000), the bonus is reduced to 400.

I could explain the 600 as 2 * num_resources * stickiness, but I cannot see where those 400 come from.

Is this a bug or (why?) is this intended?
I think there is a BUG related with master_slave resources. I have opened this bug: http://developerbugs.linux-foundation.org/show_bug.cgi?id=1852 and today I have no response... :(

Is this which are you talking about ?

No, but I experienced that as well. I don't know why it happens, but I think you can get around it.

Please try this:

       <!-- make clone instance :0 run on node1 -->
       <rsc_location id="rscloc-ms-drbd1:0" rsc="drbd1:0">
         <rule id="rscloc-ms-drbd1:0-rule1" score="500">
<expression id="rscloc-ms-drbd1:0-rule1-expr" attribute="#uname" operation="eq" value="node1"/>
         </rule>
         <rule id="rscloc-ms-drbd1:0-rule2" score="-500">
<expression id="rscloc-ms-drbd1:0-rule2-expr" attribute="#uname" operation="eq" value="node2"/>
         </rule>
       </rsc_location>
       <!-- make clone instance :1 run on node2 -->
       <rsc_location id="rscloc-ms-drbd1:1" rsc="drbd1:1">
         <rule id="rscloc-ms-drbd1:1-rule1" score="500">
<expression id="rscloc-ms-drbd1:1-rule1-expr" attribute="#uname" operation="eq" value="node2"/>
         </rule>
         <rule id="rscloc-ms-drbd1:1-rule2" score="-500">
<expression id="rscloc-ms-drbd1:1-rule2-expr" attribute="#uname" operation="eq" value="node1"/>
         </rule>
       </rsc_location>

Solved that problem for me.

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

Reply via email to