[rabbitmq-discuss] Federation setup query

Jain, Punit Punit.Jain at emc.com
Mon Sep 23 07:23:27 BST 2013



> -----Original Message-----
> From: Simon MacMullen [mailto:simon at rabbitmq.com]
> Sent: Friday, September 20, 2013 9:22 PM
> To: Jain, Punit
> Cc: Discussions about RabbitMQ
> Subject: Re: [rabbitmq-discuss] Federation setup query
> 
> On 20/09/2013 1:26PM, Jain, Punit wrote:
> > Hi, We are using federation setup with two URIs defined in an
> > upstream, as suggested by you. I simulated link failure by closing one
> > of the Ethernet port. I observed that it takes around 15-20 minutes to
> > switch link. Why is it taking this much time? Is there a way I can
> > decrease the switch time?
> 
> It should switch as soon as the "old" AMQP connection goes down - so check
> your heartbeat settings.
> 

I think it was set to default value which is 600. I changed it to 30 seconds on upstream.
Now it detects the failure in around a minute and changes the link.


> > One more question: on the same setup, I stopped RabbitMQ server on
> > downstream and started it after few seconds. Sometimes the messages
> > published to upstream exchange during that duration are lost. Though,
> > they were present in the upstream queue during that period, but lost
> > after the downstream broker was started.
> 
> Hmm.
> 
> Of course that shouldn't be happening. How do you know they are lost? In
> particular, it's possible for the downstream bindings to change while a link is
> down, in which case messages can be queued on the upstream, then when the
> link comes back they get transferred over and then dropped.
> Could something like that be happening? The tracer might be helpful to see if
> these messages are indeed getting published downstream.
>


This behavior was observed when both links were up, but we just stopped and started the downstream broker. 
Bindings were not changed, there was only one queue listening to downstream stream with '#' routing key.
I will use tracer when I observe this next time.
 
Thank you, Simon.

> Cheers, Simon
> 
> --
> Simon MacMullen
> RabbitMQ, Pivotal



More information about the rabbitmq-discuss mailing list