<div dir="ltr">I just published a message to an exchange with 2^16 bindings. My Macbook fan is humming :) Beam is still using over 220% CPU.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 8:32 PM, Jerry Kuch <span dir="ltr">&lt;<a href="mailto:jerryk@rbcon.com" target="_blank">jerryk@rbcon.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Was there really expected to be an exchange with the misspelled name &quot;<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">getNotificaions&quot; or did a typo in something seeking it yield a surprise?</span><br>

<br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 18, 2013 at 5:45 AM, Florian M�ller <span dir="ltr">&lt;<a href="mailto:max06.net@googlemail.com" target="_blank">max06.net@googlemail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br><br><div class="gmail_quote"><div>2013/2/18 Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Hi,<br>
<br>
On 18/02/13 10:53, Florian M�ller wrote:<br>
&gt; (Using only one exchange crashes when reaching 64k bindings)<br>
<br>
Do you have a crash report or a logfile entry from this crash? If you<br>
can explain the precise nature of the difficulty encountered at this<br>
point then it might apply in the 120k case as well.<br></blockquote><div><br></div></div><div>Sadly no system log. Just an own snippet:</div><div><br></div><div>17:57:<a href="tel:12316599977%20%2313371" value="+12316599977" target="_blank">12316599977 #13371</a> 17:56:49: bind_65534<br>

#13371 17:56:49: =============&gt; EXCEPTION: Error: NOT_FOUND - no exchange &#39;getNotificaions&#39; in vhost &#39;/websocket&#39;</div>
<div>(The exchange disappeared completely - It happened on Dec. 3rd 2012, it might be already fixed in newer version, we didn&#39;t test it)</div><div><br></div><div>When we started this project, we used only one exchange (direct) for all messages. At exactly the 64k th (+1?) Binding on this one exchange, the whole thing crashed. So we decided to split the exchange up to 100, and distribute the users to specific ones (for example User ID xxxxxxxx817 -&gt; exchange17). That balances the bindings well.</div>

<div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
&gt; Problem:<br>
&gt; Queues are starting to fill up when reaching 120k Bindings (130-140k<br>
&gt; unique Websocket-Connections). 4-6k delivered Msg/s.<br>
<br>
Queues getting longer is not normally a cause for concern, unless your<br>
hardware spec is not sufficient to deal with so many queues when they<br>
get longer. Queues will consume more broker resources when they get<br>
longer. Consider setting a TTL limit to make sure queues don&#39;t grow very<br>
long: <a href="http://www.rabbitmq.com/ttl.html" target="_blank">http://www.rabbitmq.com/ttl.html</a><br></blockquote><div><br></div></div><div>Hardware-Specs of the &quot;big&quot; one should be more than enough... 2* Xeon E5645  2.40 GHz, 24GB ram, 50G SSD (not in use), GBit Ethernet. Ram usage stays below 40% all the time.</div>


<div><br></div><div>We&#39;re already using TTL, every Messageis being redirected after 5 seconds to a separate Queue (for debugging).</div><div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<br>
Queues getting longer could be a sign that consumers are not able to<br>
keep up, or some other bottleneck between the broker and consumers. Make<br>
sure the network is not saturated.<br></blockquote><div><br></div></div><div>Every consumer (Nodejs-Sockets, 16 per Host, 3 Hosts) is fine at crashing time. Load is below 30%. Ram is far away from limit.</div><div>(Network bandwidth needs to be checked, but reproduction is not a good idea, because we can only reach this load in production environment)</div>

<div>
<div>�</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Do changes to the consumption patterns make any difference to limit for<br>
maximum number of bindings? E.g. What happens when you change the<br>
prefetch count, or switch between server-side and client-side<br>
acknowledgements?<br></blockquote><div><br></div></div><div>Forwarding this to dev...�</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><font color="#888888"><br>
<br>
<br>
-Emile<br>
<br>
<br></font></span></blockquote><span><font color="#888888"><div>Florian</div><div>�</div></font></span></div><br>
<br></div></div><div class="im">_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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></div></blockquote></div><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>
<br></blockquote></div><br></div>