Mnesia

287 views
Skip to first unread message

sarju Garg

unread,
Sep 23, 2021, 11:31:16 PM9/23/21
to rabbitmq-users
Hi,

I want to know the use case where mnesia is used in Rabbit MQ.

I understand it maintain the user/queue information but I also feel it is used in following case

1. When the queue fill up, and memory foot print is low, the queue data is written in disk and a history/record is maintained in mnesia db as well.

The reason is that the mnesia db size was 9.4 GB which cannot be if it only save configuration data. It is also saving other data. It looks like it save the details about unacknowledged message... Is this also shown as one of the parameter on Management GUI

Can someone help with this? or suggest some good links.

Regards
Sarju


Loïc Hoguin

unread,
Sep 24, 2021, 3:36:19 AM9/24/21
to rabbitm...@googlegroups.com

Hello,

 

RabbitMQ does not store messages in Mnesia.

 

The main use of Mnesia is to store users, permissions, vhosts, routes/bindings, topics, exchanges, parameters and queue metadata.

 

There’s also some information about classic queue mirrors if you use those.

 

To investigate a potential issue you can run:

 

rabbitmq-diagnostics observer_cli

 

Then press M to have the Mnesia tables. Sort by memory if necessary.

 

Cheers,

 

-- 

Loïc Hoguin

--
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/1bd0ef2a-23fa-4c58-9588-0b4c21a73550n%40googlegroups.com.

sarju Garg

unread,
Sep 24, 2021, 5:41:44 AM9/24/21
to rabbitmq-users
Hi,

While reading I believe in case of memory pressure, even for non persistment message, the transient messages are stored on disk and I think some information is managed in the mnesia DB for same.

I think we do not have any management UI to show the memory/disk pressure as those are coming in logs file.

Regards
Sarju

Loïc Hoguin

unread,
Sep 24, 2021, 6:07:36 AM9/24/21
to rabbitm...@googlegroups.com

When there is memory pressure the classic queue messages are pushed to disk in the queue index or store. No information is written to Mnesia.

Reply all
Reply to author
Forward
0 new messages