[rabbitmq-discuss] RabbitMQ broker behind an ELB
Dhinesh Kumar
dhinesh.ravi at gmail.com
Thu Jun 30 06:02:15 BST 2011
Hi Marek,
Later i found out that the Amazon ELB has a 60 seconds period of inactivity.
So the connection was getting closed after 60 seconds.
Setting the heartbeat in the connection factory helped in not losing the
connection.
Thanks,
Dhinesh Kumar
On Wed, Jun 29, 2011 at 9:31 PM, Marek Majkowski <majek04 at gmail.com> wrote:
> I'm afraid we don't have much experience with Amazon ELB. Maybe there
> is some kind of timeout after which the connection is broken?
>
> Cheers,
> Marek
>
>
> On Wed, Jun 22, 2011 at 13:00, Dhinesh Kumar <dhinesh.ravi at gmail.com>
> wrote:
> > Hi,
> >
> > I am trying to run a RabbitMQ broker behind an ELB.
> > The amqp connection gets established but it is getting closed after
> > sometime.
> >
> > with this kind of message:
> >
> > =ERROR REPORT==== 22-Jun-2011::11:27:59 ===
> > ** Generic server <0.149.0> terminating
> > ** Last message in was socket_closed
> > ** When Server state == {state,amqp_network_connection,
> >
> > {state,#Port<0.651>,0,<0.153.0>,131072,undefined,
> > false},
> > <0.148.0>,<0.151.0>,
> > {amqp_params,<<"guest">>,<<"guest">>,<<"/">>,
> >
> > "BrokerHostname",
> > 5672,nonode at nohost,0,0,0,none,
> > [#Fun<amqp_auth_mechanisms.plain.3>,
> > #Fun<amqp_auth_mechanisms.amqplain.3>],
> > none,[]},
> > 0,
> > [{<<"capabilities">>,table,
> > [{<<"publisher_confirms">>,bool,true},
> >
> {<<"exchange_exchange_bindings">>,bool,true},
> > {<<"basic.nack">>,bool,true},
> >
> {<<"consumer_cancel_notify">>,bool,true}]},
> > {<<"copyright">>,longstr,
> > <<"Copyright (C) 2007-2011 VMware,
> Inc.">>},
> > {<<"information">>,longstr,
> > <<"Licensed under the MPL. See
> > http://www.rabbitmq.com/">>},
> > {<<"platform">>,longstr,<<"Erlang/OTP">>},
> > {<<"product">>,longstr,<<"RabbitMQ">>},
> > {<<"version">>,longstr,<<"2.4.1">>}],
> > #Fun<amqp_connection_sup.0.110528238>,
> > #Fun<amqp_connection_sup.2.116782220>,false}
> > ** Reason for termination ==
> > ** socket_closed_unexpectedly
> >
> >
> > If i do the same without ELB, the connection is stable.
> > Is there any setting which i am missing?
> >
> > Thanks in advance,
> > Dhinesh Kumar
> >
> >
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > 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/20110630/cd49e401/attachment.htm>
More information about the rabbitmq-discuss
mailing list