[rabbitmq-discuss] create queues in the cluster

Doug doug at hacks.perl.sh
Thu May 2 09:31:25 BST 2013


But the book says:

the cluster tries to evenly distribute queue creation amongst the nodes

it seems the cluster creates the queue on a random node?

Thanks.

2013/5/2 Theo Hultberg <theo at iconara.net>:
> Queues are created on the node you're connected to when you create the
> queue.
>
> T#
>
>
> On Thu, May 2, 2013 at 4:08 AM, Doug <doug at hacks.perl.sh> wrote:
>>
>> Hello,
>>
>> From the rabbitmq in action book:
>>
>> The minute you join one node to another to form a cluster something
>> dramatically changes: not every node has a full copy of every queue.
>> In a single node setup all of the information about a queue (metadata,
>> state, and contents) is fully stored in that node (Figure 5.1).
>> However, in a cluster when you create queues, the cluster only creates
>> the full information about the queue (metadata, state, contents) on a
>> single node in the cluster rather than on all of them (the cluster
>> tries to evenly distribute queue creation amongst the nodes). The
>> result is that only the “owner” node for a queue knows the full
>> information about that queue. All of the “non-owner” nodes only know
>> the queue’s metadata and a pointer to the node where the queue
>> actually lives. So when a cluster node dies that node’s queues and
>> associated bindings disappear. Consumers attached to those queues lose
>> their subscriptions, and any new messages that would have matched that
>> queue’s bindings become blackholed.
>>
>>
>> Does this mean, when a client create a queue in the cluster, this
>> queue is created on a random(?) node of the cluster, not the connected
>> node  for the client?
>>
>> Thanks.
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


More information about the rabbitmq-discuss mailing list