<div dir="ltr">Yeah, I picked 1000 because that seemed like a reasonable max... at some point the TCP buffer fills up? Basic.qos sounds like it is the answer to all my concerns. I look forward to seeing this feature!<br>
<br>Cheers,<br><br>Chris<br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 4:03 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@lshift.net">matthias@lshift.net</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;">
Chris,<div class="Ih2E3d"><br>
<br>
Chris Van Pelt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if I do a passive declare on a queue my message count is 0 even though I may have 1000 items waiting in the TCP buffer of my consumer. This becomes a big issue if my items are taking more than 5 seconds to complete. The reason I want this information is so that I can intelligently add more consumers as load fluctuates.<br>
</blockquote>
<br></div>
By the time there are 1000 items in the TCP buffer of the existing consumer isn't it too late to add more consumers?<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The simplest way to solve this issue in my mind would be for rabbitmq to be able to return the number of un-acked items in a given queue. Has there been any discussion of this?<br>
</blockquote>
<br></div>
With basic.qos (which has been on our todo list for a while - sorry, some other items have higher priority) one can limit the number of unacknowledged messages per channel. Down to one if you wanted to, i.e. a client would have to ack a message before the server sends it another one.<br>
<br>
That provides a fine degree of control over the maximum number of messages to keep in flight, and allows messages to stay queued up where they belong - at the server. It also makes the message count returned by queue.declare a reasonable parameter to guide consumer creation in the way you envisage.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, rabbitmq kicks ass!!<br>
</blockquote>
<br>
Thanks. Glad you like it. Keep the questions coming.<br>
<br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br></div>