[Pacemaker] monitoring redis in master-slave mode

Andrew Beekhof andrew at beekhof.net
Wed Jan 8 22:19:06 UTC 2014


On 13 Dec 2013, at 11:06 pm, ESWAR RAO <eswar7028 at gmail.com> wrote:

> 
> Hi All,
> 
> I have a 3 node setup with HB+pacemaker. I wanted to run redis in master-slave mode using an ocf script.
> https://groups.google.com/forum/#!msg/redis-db/eY3zCKnl0G0/lW5fObHrjwQJ
> 
> 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=192.168.101.205 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" timeout="3s"

use a different interval for the two recurring operations.

> # crm configure ms redis_clone oc_redis meta notify="true" master-max="1" master-node-max="1" clone-node-max="1" interleave="false" globally-unique="false"
> # crm configure colocation ip-on-redis inf: cluster-ip redis_clone:Master
> 
> Can someone help me in fixing it???
> 
> Thanks
> Eswar
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140109/45e06ce5/attachment-0003.sig>


More information about the Pacemaker mailing list