From 285eefc056409732ca93b47757408e4d4906b227 Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk Date: Mon, 17 Feb 2025 15:58:20 +0100 Subject: [PATCH] Update queue-messages and queue-message-body-bytes tooltips Only large messages delivered to multiple CQs are stored once for multiple queues. Non-durable queues are deprecated and will be removed, so don't even mention them. We don't "page out" messages anymore. (cherry picked from commit 4b309351824cd4c1556f10db51e9ed857cfc03a1) --- deps/rabbitmq_management/priv/www/js/global.js | 4 ++-- deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/rabbitmq_management/priv/www/js/global.js b/deps/rabbitmq_management/priv/www/js/global.js index 0e3f59025d55..406e5dc7b8b6 100644 --- a/deps/rabbitmq_management/priv/www/js/global.js +++ b/deps/rabbitmq_management/priv/www/js/global.js @@ -250,7 +250,7 @@ var HELP = { 'Set the queue type, determining the type of queue to use: raft-based high availability or classic queue. Valid values are quorum or classic. It defaults to classic.
', 'queue-messages': - '

Message counts.

Note that "in memory" and "persistent" are not mutually exclusive; persistent messages can be in memory as well as on disc, and transient messages can be paged out if memory is tight. Non-durable queues will consider all messages to be transient.

', + '

Message counts.

Note that some messages can be in memory and on disk at the same time.', 'queue-messages-stream': '

Approximate message counts.

Note that streams store some entries that are not user messages such as offset tracking data which is included in this count. Thus this value will never be completely correct.

', @@ -262,7 +262,7 @@ var HELP = { 'The number of times a message can be returned to this queue before it is dead-lettered (if configured) or dropped.', 'queue-message-body-bytes': - '

The sum total of the sizes of the message bodies in this queue. This only counts message bodies; it does not include message properties (including headers) or metadata used by the queue.

Note that "in memory" and "persistent" are not mutually exclusive; persistent messages can be in memory as well as on disc, and transient messages can be paged out if memory is tight. Non-durable queues will consider all messages to be transient.

If a message is routed to multiple queues on publication, its body will be stored only once (in memory and on disk) and shared between queues. The value shown here does not take account of this effect.

', + '

The sum total of the sizes of the message bodies in this queue. This only counts message bodies; it does not include message properties (including headers) or metadata used by the queue.

Note that some messages can be in memory and on disk at the same time.

For classic queues, if a message larger than queue_index_embed_msgs_below (4KB by default) is routed to multiple queues, its body will be stored only once and shared between queues. The value shown here does not take this optimization into account.

', 'queue-process-memory': 'Total memory used by this queue process. This does not include in-memory message bodies (which may be shared between queues and will appear in the global "binaries" memory) but does include everything else.', diff --git a/deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs b/deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs index 7f2c9e131a55..c605b8b68019 100644 --- a/deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs +++ b/deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs @@ -147,7 +147,7 @@ <% if (is_classic(queue)) { %> In memory Persistent - Transient, Paged Out + Transient <% } %>