[rabbitmq-discuss] can we implement high availability without using DRBD?

Brendan Hay brendan at soundcloud.com
Thu May 17 13:24:53 BST 2012


The clustering + mirrored queue approach you've already got is what is
required to make RabbitMQ HA, you don't (additionally) need the
Heartbeat/DRBD shenanigans, get rid of that as it just complicates things.

Since you also mention making this transparent to the clients (which is
a separate issue), you will need to either embed the failover logic in the
client code (making clients aware of every node in the cluster), or use a
VIP, Proxy or something similar to present a single address/endpoint to the
clients.

Many people have success using a TCP load-balancing mechanism like LVS or
HAProxy in front of RabbitMQ.

This way if one of the nodes in your cluster goes down, the clients TCP
connection to the dead node is reset and when they reconnect to the Proxy
they will be directed to the healthy node, upon which the mirrored queue
would be master.


On Thu, May 17, 2012 at 2:08 PM, sameekmishra <sameek at arosys.com> wrote:

>
> I have implement the following points :
>
> 1.clustering with two node
> 2.mirror queue
> 3. installation and configuration of heartbeat on both nodes
> 4. installation of pacemaker.
>
> I need to implement: if any node is failed to switch to other node without
> know the client.
>
> as you say i have read it document-http://www.rabbitmq.com/pacemaker.html
> but i can't able to find out without using DRBD.
> please help me how i configure it.
>
>
>
> Brendan Hay-2 wrote:
> >
> > The document that you must have read which refers to DRBD is:
> > http://www.rabbitmq.com/pacemaker.html
> >
> > Please read about M*irrored Queue Behaviour* via the link Simon mentioned
> > here: http://www.rabbitmq.com/ha.html
> >
> > This will give you information about creating a highly available
> > active/active setup *without* using something like DRBD.
> >
> > - Brendan
> >
> > On Thu, May 17, 2012 at 12:56 PM, sameekmishra <sameek at arosys.com>
> wrote:
> >
> >>
> >> I have already read this document.i want to know that DRBD required
> >> partition
> >> or it uses any free space in hard disk to stored file.if we can do then
> >> please explain it.otherwise tell me the approach to followed to achieve
> >> high
> >> availability without using DRBD.
> >>
> >> Thanks
> >>
> >>
> >>
> >> Simon MacMullen-2 wrote:
> >> >
> >> > On 17/05/12 05:27, sameekmishra wrote:
> >> >> can we manage the high availability without using DRBD,because have
> >> not
> >> >> created any shared partition for DRBD device.please help how can i
> >> >> implment
> >> >> high  availability.
> >> >
> >> > See http://www.rabbitmq.com/ha.html
> >> >
> >> > Cheers, Simon
> >> >
> >> > --
> >> > Simon MacMullen
> >> > RabbitMQ, VMware
> >> > _______________________________________________
> >> > rabbitmq-discuss mailing list
> >> > rabbitmq-discuss at lists.rabbitmq.com
> >> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/can-we-implement-high-availability-without-using-DRBD--tp33862277p33863431.html
> >> Sent from the RabbitMQ mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> rabbitmq-discuss mailing list
> >> rabbitmq-discuss at lists.rabbitmq.com
> >> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >>
> >
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/can-we-implement-high-availability-without-using-DRBD--tp33862277p33863776.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120517/ce7801a9/attachment.htm>


More information about the rabbitmq-discuss mailing list