<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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>
<br>
No that's not the case. RabbitMQ clusters replicate *all* entities
across *all* nodes (in the cluster), so it doesn't matter where you
_create_ the queue/exchange. Mirroring is somewhat orthogonal to
clustering, in that if you create a queue Foo then it will exist on
all the nodes anyway, but only if you mirror the queues across some
nodes will messages arriving at the said queue on one particular
node get replicated to the same queue on the other (mirrored) nodes.<br>
<br>
HTH<br>
<br>
Tim<br>
<br>
<blockquote
cite="mid:CAAN_EDqTb++DU5CVQWjT_Dw0nh7qShNrJMkhVM9NX=OyhsTLkg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Thank you,</div>
<div style="">Adam</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>