rabbitmq - When does it page out to disk? #10992
-
First of all, excuse me for opening this discussion as maybe it is trivial but I can not find in rabbitmq docs information about this (if there is , just point me out to the right place)🙏 Afaik, rabbitmq considers My use case is that from time to time:
I would appreciate if you could point me out in the right direction 🙏 🚀 I share screenshots of a real situation that started at 9am:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Quorum queues move data to disk immediately but keep a certain number of WAL entries in memory. Streams always move data to disk "straight from the socket" and keep very little in memory. Classic queues v2 act as classic queues v1 in lazy mode if we oversimplify, that is, they generally move data to disk quickly. |
Beta Was this translation helpful? Give feedback.
-
I don't know how to interpret these charts, "message pipeline" is not a metric that RabbitMQ exposes and not a part of our own Grafana dashboards. According to the chart, there is a massive backlog build-up that then very quickly clears, possibly because a consumer shows up. There can be any number of reasons for that, and "slow RabbitMQ" very often turns out to be a slow group of consumers which publishers easily outpace. One way or another resource use (even if you use streams) will grow until there's enough consumers online or publishers are throttled heavily enough to make the inflow/outflow more balanced. There are also storage layer recommendations and certain tuning recommendations for quorum queues that may benefit the QQs running at close to their peak throughput. We have no details on the queue types used, their durability, on whether applications publish messages as transient (the latter two are important for CQv1s) to offer an informed hypothesis. We do no guess in this community. When in doubt, use quorum queues, streams and CQv2s, and fast disks. |
Beta Was this translation helpful? Give feedback.
I don't know how to interpret these charts, "message pipeline" is not a metric that RabbitMQ exposes and not a part of our own Grafana dashboards. According to the chart, there is a massive backlog build-up that then very quickly clears, possibly because a consumer shows up.
There can be any number of reasons for that, and "slow RabbitMQ" very often turns out to be a slow group of consumers which publishers easily outpace. One way or another resource use (even if you use streams) will grow until there's enough consumers online or publishers are throttled heavily enough to make the inflow/outflow more balanced.
There are also storage layer recommendations and certain tuning recommendations …