[rabbitmq-discuss] Keeping idle connections alive in EC2

Laing, Michael P. Michael.Laing at nytimes.com
Fri Mar 8 15:50:19 GMT 2013


We keep connections alive for long periods in EC2.

We set the heartbeat to 25 secs to achieve this, as elastic load
balancers, in particular, have short timeouts.

I would recommend upgrading to the latest rabbitmq and setting the
heartbeat in the configuration.

Look to see that it shows up in the management console. It's possible for
client interface code to not agree to heartbeat w the server.

Michael

On 3/8/13 4:56 AM, "Emile Joubert" <emile at rabbitmq.com> wrote:

>
>Hi,
>
>On 07/03/13 22:59, Nishanth wrote:
>
>> While they process the message, rabbitmq drops their connection silently
>> as it considers them to have been idle for a long time.
>
>The broker will not drop connections silently. The culprit is more
>likely a firewall and enabling heartbeats is the correct way to solve
>the problem.
>
>> I tried to set up heartbeat interval in worker connections but it didn't
>> resolve the issue. It keeps timing out. I am not able to understand how
>> this heartbeat work or how to debug to find out why its timing out.
>
>You can check that the heartbeat is indeed recognised in the broker by
>issuing "rabbitmqctl list_connections timeout".
>
>If the heartbeat is set too long then connections may of course still be
>dropped, e.g. if an intervening firewall has a 10 minute timeout and the
>AMQP heartbeats are exchanged every 15 minutes then connections will
>still be dropped.
>
>
>
>-Emile
>
>
>
>
>
>
>
>
>_______________________________________________
>rabbitmq-discuss mailing list
>rabbitmq-discuss at lists.rabbitmq.com
>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list