Hi Marek,<br><br>Later i found out that the Amazon ELB has a 60 seconds period of inactivity. So the connection was getting closed after 60 seconds.<br>Setting the heartbeat in the connection factory helped in not losing the connection. <br>
<br>Thanks,<br>Dhinesh Kumar <br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 9:31 PM, Marek Majkowski <span dir="ltr"><<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm afraid we don't have much experience with Amazon ELB. Maybe there<br>
is some kind of timeout after which the connection is broken?<br>
<br>
Cheers,<br>
Marek<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Jun 22, 2011 at 13:00, Dhinesh Kumar <<a href="mailto:dhinesh.ravi@gmail.com">dhinesh.ravi@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to run a RabbitMQ broker behind an ELB.<br>
> The amqp connection gets established but it is getting closed after<br>
> sometime.<br>
><br>
> with this kind of message:<br>
><br>
> =ERROR REPORT==== 22-Jun-2011::11:27:59 ===<br>
> ** Generic server <0.149.0> terminating<br>
> ** Last message in was socket_closed<br>
> ** When Server state == {state,amqp_network_connection,<br>
><br>
> {state,#Port<0.651>,0,<0.153.0>,131072,undefined,<br>
> false},<br>
> <0.148.0>,<0.151.0>,<br>
> {amqp_params,<<"guest">>,<<"guest">>,<<"/">>,<br>
><br>
> "BrokerHostname",<br>
> 5672,nonode@nohost,0,0,0,none,<br>
> [#Fun<amqp_auth_mechanisms.plain.3>,<br>
> #Fun<amqp_auth_mechanisms.amqplain.3>],<br>
> none,[]},<br>
> 0,<br>
> [{<<"capabilities">>,table,<br>
> [{<<"publisher_confirms">>,bool,true},<br>
> {<<"exchange_exchange_bindings">>,bool,true},<br>
> {<<"basic.nack">>,bool,true},<br>
> {<<"consumer_cancel_notify">>,bool,true}]},<br>
> {<<"copyright">>,longstr,<br>
> <<"Copyright (C) 2007-2011 VMware, Inc.">>},<br>
> {<<"information">>,longstr,<br>
> <<"Licensed under the MPL. See<br>
> <a href="http://www.rabbitmq.com/" target="_blank">http://www.rabbitmq.com/</a>">>},<br>
> {<<"platform">>,longstr,<<"Erlang/OTP">>},<br>
> {<<"product">>,longstr,<<"RabbitMQ">>},<br>
> {<<"version">>,longstr,<<"2.4.1">>}],<br>
> #Fun<amqp_connection_sup.0.110528238>,<br>
> #Fun<amqp_connection_sup.2.116782220>,false}<br>
> ** Reason for termination ==<br>
> ** socket_closed_unexpectedly<br>
><br>
><br>
> If i do the same without ELB, the connection is stable.<br>
> Is there any setting which i am missing?<br>
><br>
> Thanks in advance,<br>
> Dhinesh Kumar<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
><br>
><br>
</blockquote></div><br>