[rabbitmq-discuss] one exchange and different nodes

chen-hongqin chen-hongqin at 163.com
Thu Mar 8 12:30:28 GMT 2012


Thanks, Simon.
If I want two non-mirrored queues and each of them is in different nodes, I can create two connections and declare them separately, is that right? Or does have any other convenient way to do this work in the cluster?


2012-03-08



chen-hongqin



On 08/03/12 04:07, Techq wrote: 
> hi, may be it is a simple question, but it puzzled me a lot. I am 
> setting up a RabbitMQ Cluster. My question is can i declare a exchange 
> which mapping to different nodes? In my case, there are several nodes, 
> like a at rabbit, b at rabbit, c at rabbit, and now i declare two queues which 
> bind with an exchange(just in the same Channel), so can these two 
> queues be in different nodes? 

I'm not sure I understand your question, but: 

* Exchanges live on all nodes by definition 
* Non-mirrored queues live on the node on which they were first declared 
* Mirrored queues live on whichever nodes their mirroring policy implies 
* Therefore declaring two non-mirrored queues on the same channel will  
put them on the same node 

Cheers, Simon 

--  
Simon MacMullen 
RabbitMQ, VMware 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120308/cc53dd68/attachment.htm>


More information about the rabbitmq-discuss mailing list