[Pacemaker] monitoring redis in master-slave mode

ESWAR RAO eswar7028 at gmail.com
Fri Dec 13 07:06:06 EST 2013

Hi All,

I have a 3 node setup with HB+pacemaker. I wanted to run redis in
master-slave mode using an ocf script.

But with the below configuration , I am able to start in master-slave mode
but pacemaker is not monitoring the redis.
I killed the redis-server on node-1 (slave node/master node) but pacemaker
is not re-starting it .
In the crm status I could see it as:
     Masters: [ oc-vm ]
     Slaves: [ oc-vm1 oc-vm2 ]

even though it's not running on oc-vm1.

# crm configure primitive cluster-ip ocf:IPaddr2 params ip=
cidr_netmask=32 nic=eth1 op monitor interval=30s
# crm configure primitive oc_redis ocf:redis op monitor role="Master"
interval="3s" timeout="5s" op monitor role="Slave" interval="3s"
# crm configure ms redis_clone oc_redis meta notify="true" master-max="1"
master-node-max="1" clone-node-max="1" interleave="false"
# crm configure colocation ip-on-redis inf: cluster-ip redis_clone:Master

Can someone help me in fixing it???

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131213/407948be/attachment-0002.html>

More information about the Pacemaker mailing list