[rabbitmq-discuss] HA Client for RabbitMQ?
sandeep kumar
sandy.sandeeep at gmail.com
Mon Jul 22 11:40:13 BST 2013
On Monday, November 7, 2011 4:06:53 AM UTC+5:30, Konstantin Kalin wrote:
>
> On Oct 2, 9:12 am, Matthew Sackman <matt... at rabbitmq.com> wrote:
> > On Sat, Oct 01, 2011 at 09:18:17AM -0700, Alex Grönholm wrote:
> > > I noticed that the hot new feature in RabbitMQ 2.6 is Active/Active HA
> on
> > > the server side. How can I take advantage of this on the client side?
> AFAIK
> > > the client only knows how to connect to a single server -- you can't
> give it
> > > a list of servers for failover purposes.
> >
> > Correct. The Active/Active HA work does not address the issue of client
> > connectivity. There are a number of solutions that you could use:
> >
> > o) Change the DNS on failure
> > o) a plain TCP load balancer like haproxy or a router-based one
> > o) mobile IP addresses as can be done with something like pacemaker
>
> I think there is one more valuable option. If a client knows cluster's
> nodes (IP addresses) the client can reconnect to another node. I
> implemented this in ~150 lines in Java code when I decided to test
> RabbitMQ Active/Active. And it works fine in my opinion
>
> Thank you,
> Konstantin.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq... at lists.rabbitmq.com <javascript:>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
On Monday, November 7, 2011 4:06:53 AM UTC+5:30, Konstantin Kalin wrote:
>
> On Oct 2, 9:12 am, Matthew Sackman <matt... at rabbitmq.com> wrote:
> > On Sat, Oct 01, 2011 at 09:18:17AM -0700, Alex Grönholm wrote:
> > > I noticed that the hot new feature in RabbitMQ 2.6 is Active/Active HA
> on
> > > the server side. How can I take advantage of this on the client side?
> AFAIK
> > > the client only knows how to connect to a single server -- you can't
> give it
> > > a list of servers for failover purposes.
> >
> > Correct. The Active/Active HA work does not address the issue of client
> > connectivity. There are a number of solutions that you could use:
> >
> > o) Change the DNS on failure
> > o) a plain TCP load balancer like haproxy or a router-based one
> > o) mobile IP addresses as can be done with something like pacemaker
>
> I think there is one more valuable option. If a client knows cluster's
> nodes (IP addresses) the client can reconnect to another node. I
> implemented this in ~150 lines in Java code when I decided to test
> RabbitMQ Active/Active. And it works fine in my opinion
>
> Thank you,
> Konstantin.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq... at lists.rabbitmq.com <javascript:>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
Hi Konstantin,
I have deployed RabbitMQ cluster with three nodes.
I wan to connect to any of the active nodes in case of node failure.
I have tried TCP load balancer where I was unsuccessful.
Could you please support me with some ideas how it can be done from java
client.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130722/46961481/attachment.htm>
More information about the rabbitmq-discuss
mailing list