Doesn't quorum queue support idle_since in management plugin?

113 views
Skip to first unread message

Peter

unread,
Nov 16, 2022, 1:38:10 AM11/16/22
to rabbitmq-users
Hello,
When I requested the quorum queue using /api/queues, the idle_since field does not exist, so the queue always comes out as running.

here is)
curl -s -u id:pw http://localhost:15672/api/queues

i can't find idle_since.
Doesn't quorum queue support idle_since in management plugin?

스크린샷 2022-11-16 15.37.37.png

thank you.

Michal Kuratczyk

unread,
Nov 16, 2022, 12:40:31 PM11/16/22
to rabbitm...@googlegroups.com
Hi,

Yes, quorum queues currently don't expose this metric (this metric is related to Erlang process hibernation and quorum queues don't hibernate).
What do you use this metric for?

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/8c7f64df-36b9-434c-83f7-d5663cd58314n%40googlegroups.com.


--
Michał
RabbitMQ team
Message has been deleted
Message has been deleted

Peter

unread,
Nov 16, 2022, 11:23:39 PM11/16/22
to rabbitmq-users
Thanks for answer.
As I understand it, when the queue status tab shows running, it means queue producing and consuming.
but when quorum queue not doing anything, it only shows runing. ( in rabbitmq web-management(localhost:15672) )
so i wonder when the quorum queue becomes idle.( in rabbitmq web-management(localhost:15672) )

Best,

2022년 11월 17일 목요일 오전 2시 40분 31초 UTC+9에 mkura...@gmail.com님이 작성:

Michal Kuratczyk

unread,
Nov 17, 2022, 3:56:28 AM11/17/22
to rabbitm...@googlegroups.com
Hi,

It depends on the definition of "idle". :) There is no universally accepted definition of an idle queue, it's just that years ago someone on the RabbitMQ
team decided that after 5 seconds of idleness (no new messages being published to the queue and no consumers receiving messages from the queue),
the queue is marked as idle and the Erlang process for this queue is hibernated to save some resources (you can learn more about this

5 seconds is a completely arbitrary value. For example, if you run "perf-test -ad false -f persistent -qa x-queue-version=2 -u cq -c 1 -P 4"
(using https://perftest.rabbitmq.com/), a message is published every 4 seconds, so the queue will never be marked as idle, even though
it's idle almost all the time (accepting the message and delivering it to the user takes a fraction of a second and for the rest of the time,
this queue process has nothing to do).

Screenshot 2022-11-17 at 09.09.40.png
The same queue would be marked as idle often, if you published at a slightly lower frequency.

Quorum queues currently never hibernate. It's just a technical decision that can be revisited in the future. As with everything, it's a trade-off:
you save some resources while a process is idle, but you increase the latency when a message is published to a hibernated queue and you risk
a lot of additional work in some scenarios (eg. some users have large fan-out use cases: a message is delivered to many queues at the same time,
if all those queues are hibernated when this happens, there will be a sudden increase in resource usage when all of them are de-hibernated to accept the message).

If you are interested in the metric or hibernation of quorum queues, please share some details of your scenario and what you'd use this metric for.

Best,


Peter

unread,
Nov 23, 2022, 10:58:45 PM11/23/22
to rabbitmq-users
Thank you for your kind and detailed reply.
Can I refer the code for this explanation?

===
There is no universally accepted definition of an idle queue, it's just that years ago someone on the RabbitMQ
team decided that after 5 seconds of idleness (no new messages being published to the queue and no consumers receiving messages from the queue),
the queue is marked as idle and the Erlang process for this queue is hibernated to save some resources
===

I would like to see implemented code in github.

Best,

2022년 11월 17일 목요일 오후 5시 56분 28초 UTC+9에 mkura...@gmail.com님이 작성:

Michal Kuratczyk

unread,
Nov 24, 2022, 2:09:37 AM11/24/22
to rabbitm...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages