[Pacemaker] designing a load balancer - request for comments

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Mon Feb 14 13:45:11 UTC 2011


On 02/14/2011 02:37 PM, Klaus Darilion wrote:
> Somehow pacemaker does not react as I would expect it. My config is:
> 
> primitive failover-ip ocf:heartbeat:IPaddr \
>         params ip="83.136.32.161" \
>         op monitor interval="3s"
> primitive kamailio lsb:kamailio \
>         meta migration-threshold="2" failure-timeout="60" \
>         op monitor interval="15" timeout="15"
> clone cloneKamailio kamailio
> colocation colo_ip_with_kamailio inf: failover-ip cloneKamailio
> property $id="cib-bootstrap-options" \
>         dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="5"
...
> So, what am I doing wrong? I would expect that after 60s the
> failure-count is resetted.

there is no "cluster-recheck-interval" in your properties:

property $id="cib-bootstrap-options" \
        dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
        stonith-enabled="true" \
        cluster-infrastructure="openais" \
...
        cluster-recheck-interval="1min"

try to set this and redo your testing.

cheers,
raoul

ps. i'd very much love to see a ocf compatible ra instead of the lsb
script ;)
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________




More information about the Pacemaker mailing list