-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline Messages Queues by User #1369
Comments
Hi @jonathanve It is possible but there is no convenient API to extract such information. Offline queues are stored as single records per-user in Mnesia table and in case of SQL storage - one message per row. If you need quick solution to check it once, I could prepare a snippet for you to execute in MongooseIM console. If you'd like to check it periodically... well, it involves developing a new admin function. :) |
Hi @fenek The snippet would be OK. Thanks a million! |
Important question: do you use Mnesia or ODBC backend for |
Mnesia @fenek |
You may execute it in Erlang shell. Depending on how much of spare processing power and memory your server has, it should be safe for up to tens of thousands of users. Above this threshold I can't promise anything since it is a very simple iteration over whole table. :) |
HI @fenek , Thanks! I run mongooseimctl debug to start the erlang shell. When running the command I got:
|
Can you please double check in |
It is using mnesia.
I am using mysql just for muc light groups ;) |
Can you please paste the output of |
Sure:
|
Are you using MongooseIM in a Docker container? |
Yes, @fenek |
It seems you are the second user we know of that has some issues with debug console in Docker. We definitely need to investigate it. I'll get back to you as soon as we learn something new about it. |
Hi @jonathanve I've finally had time to check our Docker image and the debug console seems to work fine. How do you start it? I've used |
Hi @fenek I am executing:
When I run the snippet you provided, I still get:
Thanks for your help! |
What image tag have you used to create your container? Is it |
It is an image we have built on our own. Our reference was https://github.com/esl/mongooseim-docker in order to build an image taking the open source code as the basis plus some custom features we needed in erlang for muc light groups. |
OK, it looks like your custom image doesn't attach the debug process to the remote shell. Is Let's see some debug. Can you please enter container shell with |
My colleague, @michalwski, suggested it may be caused by container not being started with TTY enabled (-t option in Docker). Can you please check if this parameter is enabled in your deployment scripts? |
MongooseIM version: 2
Installed from: source
Hi @michalslaski and @fenek ,
Is there any friendly way to get how many offline messages are stored in the queues, by user, when using mod_offline module? We are trying to define a good max_user_offline_messages value and get to know which clients are most often offline :)
Thanks for your help!
The text was updated successfully, but these errors were encountered: