In a RabbitMQ cluster, I know that the queues can be created with their masters on different nodes, using the "min-masters" strategy of the "queue_master_locator" policy. This would mean that the queues are no longer mirrored(ha-mode policy cant be applied), as only one policy can be applied at a time. Is there a way to accomplish both? I basically want to have the queues distributed across cluster nodes, so the memory footprint on a single node is reduced.
Asked
Active
Viewed 2,529 times
1 Answers
3
queue_master_locator=min-masters
policy means that the master queue node is automatically assigned using the rabbitmq node with less masters.
This is not related to ha-mirror policy.
you have 3 ways to solve the problem:
create only the ha policy and add the arg
x-queue-master-locator
to each single queue:create only the ha policy and use the rabbitmq config file to define the
x-queue-master-locator
, see here for more details: https://www.rabbitmq.com/configure.html#configuration-file
Also suggesto to read this blog post about that.

Gabriele Santomaggio
- 21,656
- 4
- 52
- 52
-
Thanks Gabriele, I went ahead with the third approach, and it seems to work as expected – chaitra.kear Nov 23 '18 at 06:10