Quorum Queue, so they don't need a policy for replication/mirroring any more?

373 views
Skip to first unread message

Andrew P

unread,
Jun 28, 2022, 4:28:56 AM6/28/22
to rabbitmq-users
Hi

Sorry for what may be a silly question but not found the answer for this question yet, the question is:

Previously before quorum queues you had to declare a policy with a ha-mode in order to mirror the data onto other nodes in the cluster. Am I correct in thinking that quorum queues define the x-quorum-initial-group-size argument, so mirroring/replication is done directly from the queue declaration, and we no longer need to define a policy for this? 

e.g.:

rabbitmqadmin -u andrew -p test declare queue --vhost=/ name=MyQuorumQueue queue_type=quorum durable=true arguments='{"x-quorum-initial-group-size": 2}'

Many thanks

Andrew

Michal Kuratczyk

unread,
Jun 28, 2022, 4:32:22 AM6/28/22
to rabbitm...@googlegroups.com
Hi,

Yes, you don't need any policy. The default of x-quorum-initial-group-size is 3, so in most cases you don't have to specify anything at all.
However, this value should be an odd number. Do not set it to 2.

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/e4cb7616-2d66-4262-ac1d-b0bac4a5a3fcn%40googlegroups.com.


--
Michał
RabbitMQ team

Andrew P

unread,
Jun 28, 2022, 4:37:57 AM6/28/22
to rabbitmq-users
Perfect, thanks for that Michał

All the best, Andrew

Reply all
Reply to author
Forward
0 new messages