[Linux-HA] Re: pingd problem
Dominik Klein
dk at in-telegence.net
Thu Apr 3 03:53:44 MDT 2008
Achim Stumpf wrote:
> Hi,
>
> Now it works. I have changed in cib.xml:
>
> <rsc_location id="group_1:connected" rsc="group_1">
> <rule id="group_1:connected:rule"
> score_attribute="pingd" >
> <expression
> id="group_1:connected:expr:defined" attribute="pingd" operation="defined"/>
> </rule>
> </rsc_location>
>
>
> to
>
>
> <rsc_location id="group_1:connected" rsc="group_1">
> <rule id="group_1:connected:rule"
> score="-INFINITY" boolean_op="or">
> <expression
> id="group_1:connected:expr:undefined" attribute="pingd"
> operation="not_defined"/>
> <expression
> id="group_1:connected:expr:zero" attribute="pingd" operation="lte"
> value="0"/>
> </rule>
> </rsc_location>
>
>
> Now it works as expected. Those two setups were described on:
>
> http://www.linux-ha.org/pingd
>
> But still it would be nice to get pingnodes working with scores as made
> in my first example or described on taht page in "Quickstart - Run my
> resource on the node with the best connectivity".
>
> Does anyone have any hints how to get that stuff working?
That should work - what did you see (and what did you expect)? You
propably need to adjust the pingd multiplier. showscores.sh helps a lot
here to figure out what's not as expected (see
http://www.linux-ha.org/ScoreCalculation )
Regards
Dominik
More information about the Linux-HA
mailing list