简体   繁体   中英

RabbitMQ clustering mirrored queue behaviour

I am using RabbitMQ clustering. My queues are in "across all nodes" and "durable" state. But, when I kill master node(with 1000 messages in queue, for example), my slave node continue working, but in queue I can see only 0 or small number of mesages. Is it bug?

Did you declare the queue as HA?

Eg

Map args = new HashMap(); args.put("x-ha-policy", "all"); channel.queueDeclare("myqueue", false, false, false, args);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM