<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Adam - sorry, ignore me, I'm talking nonsense here... :/<br>
<br>
On 01/11/2013 10:59 AM, Tim Watson wrote:
<blockquote cite="mid:50EFF090.8010005@rabbitmq.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Adam,<br>
<br>
On 01/10/2013 01:24 PM, Adam Rabung wrote:
<blockquote
cite="mid:CAAN_EDqTb++DU5CVQWjT_Dw0nh7qShNrJMkhVM9NX=OyhsTLkg@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div style="">After reading <a moz-do-not-send="true"
href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-January/017297.html">this</a>
and <a moz-do-not-send="true"
href="http://rabbitmq.1065348.n5.nabble.com/Are-queues-replicated-across-a-cluster-td4670.html">this</a>,
I understand that connecting to random nodes of a cluster
does not really help spread the processing cost across all
of the nodes - processing happens in the master (and
slaves), regardless of what node I connect to. </div>
<div style=""><br>
</div>
<div style="">Does this suggest that I should take great care
of what node I connect to when _creating_ a queue? If I use
ConnectionFactory.newConnection(Address[]) with the same
array each time, won't a majority of queues be created on
the first node of that array, creating a load balance
problem? This scenario assumes we mirror only to a subset of
nodes.</div>
<div style=""><br>
</div>
</div>
</blockquote>
</blockquote>
<br>
I should have taken more notice of Address[] here, but also if
you're *not* mirroring then whilst the queue records get replicated
throughout the cluster, the queue process (which actually handles
messages) only resides on the one node. So yes, you should
Random.shuffle (or something like that) the Address[] or load
balance. Also even with mirror queues the master is where the bulk
of the work is taking place, so the same applies.<br>
<br>
Sorry for the confusion!<br>
<br>
Cheers,<br>
Tim
</body>
</html>