Changing Queue type Classic to Quorum

1,199 views
Skip to first unread message

srikanth ambadipudi

unread,
Apr 30, 2021, 12:58:38 AM4/30/21
to rabbitmq-users
Hi Team,

I am using currently using " RabbitMQ 3.8.14"  "Erlang 23.3.1"

Ec2 instance type: Ubuntu

I have couple of queries.

1) Currently we are using Queue type as "classic" without mirroring. We have some plans to change queue type to "Quorum". Will i loose any existsings queue messages? Any docs or suggestions will be appreciated.

2) Can i restore the RabbitMq DB into a new node (on same version) without loosing any messages?

Michal Kuratczyk

unread,
Apr 30, 2021, 11:09:58 AM4/30/21
to rabbitm...@googlegroups.com
Hi,

1. You can't change the type of a queue - you need to create a new queue of type quorum. Therefore you will not lose messages - they will be still available in the classic queue. You can then use shovel to move messages from one queue to another or just consume messages from the old queue until it's empty and then switch over to the new queue.

2. Not clear if that's related to the main topic. Do you mean to restore a DB to a cluster where the same queue is now a quorum queue? If that's your question then no - on-disk representation of a quorum queue is different from a classic queue. You can use blue-green strategy to migrate to a new cluster if you want: https://www.rabbitmq.com/blue-green-upgrade.html

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/0cfc05ff-fe92-4529-9e86-3ae59b9f24can%40googlegroups.com.


--
Michał
RabbitMQ team

srikanth ambadipudi

unread,
Apr 30, 2021, 2:59:00 PM4/30/21
to rabbitm...@googlegroups.com
Hi,
Thanks for your reply. It really helps.

(new topic)I would like to know about back and restore of rabbitmq db. Any suggestions/practices

--

Michal Kuratczyk

unread,
May 3, 2021, 5:38:40 AM5/3/21
to rabbitm...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages