[rabbitmq-discuss] HA-aware clients?
Matthias Reik
matthias.reik at gmail.com
Mon Sep 24 10:20:23 BST 2012
If you are using Spring, the latest version (1.1.1 IIRC) is allowing you to
specify several servers, and it will handle the reconnect should one of the
connections go down. We are using this in our production env and it works
very nicely.
Cheers
Maze
On Mon, Sep 24, 2012 at 10:57 AM, Tim Watson <tim at rabbitmq.com> wrote:
> Hi Alex,
>
> You'll need to handle reconnecting explicitly in the client(s) yourself.
> What HA does is ensure that any time you connect to a node on which a queue
> is mirrored, you get a consistent view of the queue and obviously it deals
> with failover when a node dies.
>
> HTH
>
> Tim
>
>
> On 09/24/2012 08:41 AM, Alex Shneyderman wrote:
>
>> Hi all!
>>
>>
>> There is something I do not really understand about how client is
>> taking advantage of the HA features of RabbitMQ. So, I setup two
>> servers. And I have a queue that is mirrored. My client connects to
>> one server. (I can give it an array of addresses but the documentation
>> says it will connect to the first server that is not down). So say I
>> have that client talking to server1 for a while. Server1 goes down, is
>> there a way for the client to re-establish connection to server2 while
>> server1 is being fixed up? I mean I am pretty sure client can I am
>> just not sure if this is the logic that is already implemented on the
>> client that is provided by rabbit (Java in my case, but I would also
>> be interested to know if erlang client works automagically) or is this
>> something I have to do on my own (I guess I could listen to shutdown
>> event and reconnect manually)?
>>
>> Cheers,
>> Alex.
>> ______________________________**_________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>
>
> ______________________________**_________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<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/20120924/762c7eb5/attachment.htm>
More information about the rabbitmq-discuss
mailing list