<div dir="ltr">We will have approximately 300 open active connections due to the shovel configurations setup. �These are the IN/OUT queues setup. �I have a consumer service on the client side that'll open the conn/channel, get messages from the queue, �ack it, and then close the connection. �If the client fail to issue the close connection service, RabbitMQ should close that specific channel/connection if I set the "setRequestedHeartBeat" in the open connection service, right?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 4:59 PM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 3 Dec 2013, at 01:10, cw storm <<a href="mailto:cwstorm@gmail.com">cwstorm@gmail.com</a>> wrote:<br>
<br>
> So if I set heartbeat timeout, if the specific conn/channel hasn't been closed for a specified time, then the rabbit server will close that connection/channel, right? �Is there any harm in putting this in the code? �I want to make sure that this is good practice and such.<br>

<br>
</div>Hearbeats allow RabbitMQ and compliant clients detect peer disappearance quicker<br>
(than via TCP connection closure). It only affects connections.<br>
<br>
There is no harm in using heartbeats, just make sure that the value is not too high<br>
or two low. Lower values means quicker connection loss detection but increase network traffic<br>
and slightly increase server load per connection.<br>
Heartbeat frames will be sent at roughly half the interval (so, if the timeout is set to<br>
100 seconds, a little bit of data will be sent every ~50 seconds from both ends). After<br>
two missed heartbeats (full interval duration), RabbitMQ will consider the connection closed.<br>
<br>
Unless you have hundreds of connections, any value between 60 and 180 should be fine.<br>
<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<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>
</div></div></blockquote></div><br></div>