[ejabberd] Maximum History Size from MUC

Deepender Singla deepender281190 at gmail.com
Tue Dec 16 14:41:47 MSK 2014


thanks Badlop.

On 16 December 2014 at 17:09, Badlop <badlop at gmail.com> wrote:
>
> 1)
> mod_muc_room implements a software limit, that you can modify easily.
> There isn't any other limit, except of course the scalability of the
> implementation: with one thousand of stored elements, the
> implementation will be slower than with a hundred. And one million
> even slower.
>
> You can test yourself: use a room bot that sends messages, and
> evaluate memory consumption and response time when it reaches key
> values (one hundred, one thousand, or maybe it can reach one million).
> One of this will happen at some time:
> A) Memory consumption will increase until consuming all possible memory
> B) Response time will increase for some operation (storing new
> message, or retrieving stored messages), and it will be unusuable.
>
> 2)
> mod_last stores the timestamp when a local user disconnected from ejabberd.
>
> --
> Badlop
> ProcessOne
>
>
> On 14 December 2014 at 12:43, Deepender Singla
> <deepender281190 at gmail.com> wrote:
> > Hello Folks
> >
> > First off, I want to thanks to all of you in writing modular and easy to
> > customize source code of ejabberd, I was actually scared when my boss
> gave
> > me ejabberd customization never touched erlang and this code base before.
> > But I was surprised with the modularity have been written, its very easy
> to
> > customized even without erlang  (though because of this project, i
> started
> > learning erlang looks very interesting)
> >
> > Back to what I am doing, From in MUC i am not making user leave the room
> > when he leaves the room, this is i did by changing behaviour of
> > "unavailable" type so that it doesn't remove_users, the other thing
> which I
> > am currently stuck is:
> >
> > 1) I need to send the client the messages they missed when they were
> > offline, can I use send_history method for this. As I see send_history
> can
> > store  20 by default but this can be increased to any number, My first
> > question What is the upper limit for this , if any?
> >
> > 2) Does anywhere apart from in the room does server store when was the
> user
> > was connected and disconneted, some time stamp of user?
> >
> > thanks
> > deep
> >
> > _______________________________________________
> > ejabberd mailing list
> > ejabberd at jabber.ru
> > http://lists.jabber.ru/mailman/listinfo/ejabberd
> >
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20141216/03a349f4/attachment.html>


More information about the ejabberd mailing list