How to manually change the leader of a quorum queue ?

71 views
Skip to first unread message

John Paul

unread,
Nov 1, 2025, 9:58:14 AMNov 1
to rabbitmq-users
Hello members,

I have a big rabbitmq cluster running 3.13 with 100 quorum queues and 3 nodes. I see that the rabbitmq connections are quite unevenly distributed across the nodes because some of my busy queues share same node as the quorum leader. Then I try to rebalance the quorum and could learn that this has no effect, because the leaders of the whole queues are already evenly distributed and rebalancing would ignore the load on each queue while balancing the quorum.

I would like to know if there is a way to manually change the leader of a quorum queue or any other way to fix this problem ?

Thanks!
John Paul K J

Michal Kuratczyk

unread,
Nov 3, 2025, 5:06:44 AMNov 3
to rabbitm...@googlegroups.com
While technically possible, this operation is not exposed through the CLI (it can be accomplished
with `rabbitmqctl eval` and some function calls). However, the way you framed the question suggests an assumption, which is not correct:
"connections are quite unevenly distributed across the nodes because some of my busy queues share same node as the quorum leader".
How connections are distributed does not depend on how the leaders are distributed[1]. If you indeed have the leaders of the busiest queues
on a single node, rebalancing them could be beneficial, but it's more complex than that - eg. if we spread the leaders more evenly,
but some publishers are currently co-located with the leaders, they wouldn't be after the rebalancing, so the overall
effect could be negative.

[1] for completeness: Stream protocol has a built-in leader discovery mechanism and publishers automatically connect to the stream leader node,
while consumers try to connect to the followers; so stream connection distribution would be impacted by stream leader distribution

--
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 visit https://groups.google.com/d/msgid/rabbitmq-users/71a34a90-5dc7-4097-b307-19432338b15fn%40googlegroups.com.


--
Michal
RabbitMQ Team
Reply all
Reply to author
Forward
0 new messages