<p dir="ltr">Got it, thanks for the clarifications!</p>
<div class="gmail_quote">On Dec 3, 2013 12:05 PM, "Simon MacMullen" <<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You'd need to configure the consumer processes to take the consumer priority they should use from a command line parameter or similar then.<br>
<br>
It's not really possible to say "the first process in it's list that's available for processing" since the consumers are not considered to be in any order (except priority order) within RabbitMQ.<br>

<br>
Cheers, Simon<br>
<br>
On 03/12/13 11:35, Luis Rasc�o wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was referring to the rabbit priorities, in my scenario i have a<br>
process consumer.exe that connects to rabbit and consumes messages from<br>
a queue, suppose i launch this process 5 times, i end up with 5<br>
consumers for the queue, if i specify the same priority for all of them<br>
they will end up receiving the messages in round robin, because that's<br>
the way rabbit distributes them.<br>
What i'm looking for is a way to tell rabbit to forget about round robin<br>
and just send the message to the first process in it's list that's<br>
available for processing<br>
<br>
<br>
On Tue, Dec 3, 2013 at 11:31 AM, Simon MacMullen <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a><br>
<mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>>> wrote:<br>
<br>
� � These are not OS priorities - the priority is set by an argument to<br>
� � the basic.consume method. Multiple consumers within the same OS<br>
� � process can have different priorities.<br>
<br>
� � Cheers, Simon<br>
<br>
<br>
� � On 03/12/13 11:27, Luis Rasc�o wrote:<br>
<br>
� � � � If i understood correctly multiple consumers with the same high<br>
� � � � priority<br>
� � � � will receive the messages in round-robin.<br>
� � � � This is easier if the processes were different binaries, they are in<br>
� � � � fact the same binary, to use priorities i would have to<br>
� � � � attribute higher<br>
� � � � priorities as i launch the multiple instances of the binary, is<br>
� � � � there<br>
� � � � some other way?<br>
<br>
<br>
<br>
� � � � On Tue, Dec 3, 2013 at 11:23 AM, Simon MacMullen<br>
� � � � <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a> <mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>><br>
� � � � <mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a> <mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>>>> wrote:<br>
<br>
� � � � � � �Is this what you are looking for?<br>
<br>
� � � � <a href="http://www.rabbitmq.com/____consumer-priority.html" target="_blank">http://www.rabbitmq.com/____<u></u>consumer-priority.html</a><br>
� � � � <<a href="http://www.rabbitmq.com/__consumer-priority.html" target="_blank">http://www.rabbitmq.com/__<u></u>consumer-priority.html</a>><br>
<br>
� � � � � � �<<a href="http://www.rabbitmq.com/__consumer-priority.html" target="_blank">http://www.rabbitmq.com/__<u></u>consumer-priority.html</a><br>
� � � � <<a href="http://www.rabbitmq.com/consumer-priority.html" target="_blank">http://www.rabbitmq.com/<u></u>consumer-priority.html</a>>><br>
<br>
� � � � � � �Cheers, Simon<br>
<br>
� � � � � � �On 03/12/13 11:19, Luis Rasc�o wrote:<br>
<br>
� � � � � � � � �Hi all,<br>
� � � � � � � � �Supose you have 3 processes consuming messages from a<br>
� � � � queue, i<br>
� � � � � � � � �guess by<br>
� � � � � � � � �default the messages will be distributed to the<br>
� � � � consumers in a<br>
� � � � � � � � �round-robin fashion (p1, p2, p3, p1, etc). Is there a<br>
� � � � way to<br>
� � � � � � � � �change this<br>
� � � � � � � � �distribution policy so that always the first free process<br>
� � � � � � � � �handles the<br>
� � � � � � � � �message? For example if p1 is always available then it<br>
� � � � would<br>
� � � � � � � � �handle all<br>
� � � � � � � � �the queued messages.<br>
� � � � � � � � �thanks in advance<br>
<br>
<br>
� � � � � � � � �______________________________<u></u>_____________________<br>
� � � � � � � � �rabbitmq-discuss mailing list<br>
� � � � � � � � �rabbitmq-discuss@lists.__<a href="http://rabbi__tmq.com" target="_blank">rabbi<u></u>__tmq.com</a><br>
� � � � <<a href="http://rabbitmq.com" target="_blank">http://rabbitmq.com</a>><br>
� � � � � � � � �<mailto:<a href="mailto:rabbitmq-discuss@" target="_blank">rabbitmq-discuss@</a>__<a href="http://lists.rabbitmq.com" target="_blank">lis<u></u>ts.rabbitmq.com</a><br>
� � � � <mailto:<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@<u></u>lists.rabbitmq.com</a>>><br>
� � � � <a href="https://lists.rabbitmq.com/____cgi-bin/mailman/listinfo/____rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/___<u></u>_cgi-bin/mailman/listinfo/____<u></u>rabbitmq-discuss</a><br>
� � � � <<a href="https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/__<u></u>cgi-bin/mailman/listinfo/__<u></u>rabbitmq-discuss</a>><br>
<br>
<br>
� � � � <<a href="https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/__<u></u>cgi-bin/mailman/listinfo/__<u></u>rabbitmq-discuss</a><br>
� � � � <<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a>>><br>
<br>
<br>
<br>
� � � � � � �--<br>
� � � � � � �Simon MacMullen<br>
� � � � � � �RabbitMQ, Pivotal<br>
<br>
<br>
<br>
<br>
� � --<br>
� � Simon MacMullen<br>
� � RabbitMQ, Pivotal<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</blockquote></div>