[Pacemaker] Location with ping resource and stickiness

Viacheslav Biriukov v.v.biriukov at gmail.com
Fri May 6 19:01:22 EDT 2011


Hello!

Does ping resource and stickiness may work together?

For example I have next resources:

primitive P_INTRANET ocf:pacemaker:ping \
params host_list="192.168.56.1 192.168.56.100" multiplier="111"
name="ping_intranet" \
op monitor interval="5s" timeout="20s"
clone CL_INTRANET P_INTRANET \
meta target-role="Started" globally-unique="false"
location L_DRBD_MASTER_01 msDRBD \
rule $id="L_DRBD_MASTER_01-rule" 100: #uname eq first.local
location L_DRBD_MASTER_02 msDRBD \
rule $id="L_DRBD_MASTER_02-rule" 10: #uname eq second.local
location L_DRBD_MASTER_PING msDRBD \
rule $id="L_DRBD_MASTER_03-rule" ping_intranet: defined ping_intranet
rsc_defaults $id="rsc-options" \
resource-stickiness="10000"

So when master node doesn't ping ip address -- resource moves to other node.
But when ip will up -- resource moves back (cause it location rate:
100+111+111 > 10+111+111) How can I prevent this behavior?
Tnx.

-- 
Viacheslav Sov1et Biriukov
BR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110507/9ce5a222/attachment-0002.html>


More information about the Pacemaker mailing list