RabbitMq cluster and Retain Message Replication

173 views
Skip to first unread message

Tushar

unread,
Jun 24, 2019, 12:26:18 PM6/24/19
to rabbitmq-users
version: 3.6.0
plugin: mqtt

We are using rabbitmq cluster and with two nodes. When pusblishing to a topic with retain flag it did not get replicated to other node.
Subscribing to any node shows the retain message that was published to that particular node.


Please suggest how we can get the retain mesasge to be replicated through out the cluster.

Arman Petrosyan

unread,
Jun 24, 2019, 12:28:26 PM6/24/19
to rabbitm...@googlegroups.com
You need HA Queue

--
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 post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/ed103e1b-5332-4f12-ab7f-dd78a052f047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tushar Sharma

unread,
Jun 24, 2019, 10:31:52 PM6/24/19
to rabbitm...@googlegroups.com
We have ha queues but its not working.

Arman Petrosyan

unread,
Jun 25, 2019, 2:10:49 AM6/25/19
to rabbitm...@googlegroups.com
Just use this Policy ---> 
"policies":[{"vhost":"/","name":"ha","pattern":"", "definition":{"ha-mode":"all","ha-sync-mode":"automatic","ha-sync-batch-size":5}}

вт, 25 июн. 2019 г. в 06:31, Tushar Sharma <tusharsh...@gmail.com>:

Tushar Sharma

unread,
Jun 25, 2019, 6:28:10 AM6/25/19
to rabbitm...@googlegroups.com
Hi Arman,

Thanks for you time.

But issue still persistes.

Each nodes only show the retain message that were directed to that particular node, it seems using above configiration retain messages are and replicated throughout the cluster.





Arman Petrosyan

unread,
Jun 25, 2019, 6:41:46 AM6/25/19
to rabbitm...@googlegroups.com
Ok, try to make durable queue

Arman Petrosyan

unread,
Jun 25, 2019, 6:45:06 AM6/25/19
to rabbitm...@googlegroups.com
When do you create cluster then only queue metadata will save in node, but queue content be on master node( who crated queue

Arman Petrosyan

unread,
Jun 25, 2019, 6:46:52 AM6/25/19
to rabbitm...@googlegroups.com
But when do you make queue durable on mirror node, then him content also save in miror node

Tushar

unread,
Jun 25, 2019, 7:25:45 AM6/25/19
to rabbitmq-users
Hi,

My use case is bit different.

The queues are made by subscribers e.g:- mobile app, they can come and go any time.

Now assume their is no subscriber and hence no queue, a pusblisher publish a messages with retain flag. After few minutes a subscriber subscribers and hence a new queue (durable and auto delete is created).

Now retain message is not same if client connect on different nodes. 

Tushar

unread,
Jun 26, 2019, 7:10:32 AM6/26/19
to rabbitmq-users
Hi,

Any pointers.

Can you guide me to setup retain message store as discussed in below link.


Will this store be only for retained message.

Michael Klishin

unread,
Jun 30, 2019, 5:50:25 PM6/30/19
to rabbitmq-users
As answered elsewhere, currently the only provided retained message store implementation is a per-node one (in RAM or on disk).

It should be reasonably easy to provide more implementations as the interface is a couple of operations (set and get a key). We plan on
making the store cluster-wide in a future release. There is no ETA.

--
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 post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages