Message Archiving Benchmark: General Statistics
Posted by Alexey Shchepin on July 08, 2007A few days ago I updated mod_archive (XEP-0136) ejabberd module to support PostgreSQL with text search feature (tsearch2). Simple benchmarks looked good, so to benchmark it on real traffic I ran it with enabled automated archiving on one of two jabber.ru nodes for 24 hours on business day. It worked smoothly and I didn't notice any performance downgrades or higher CPU load.
Here are some results:
Database size: 197,096,948 bytes Messages: 474,562 Collections: 39,836Another node should show the same results, so to support enabled by default automated archiving jabber.ru would require 400MB/day or about 120-140GB/year (I don't know weekend statistics). Only "normal" and "chat" message types were handled. Note, that messages between two users on this node were accounted twice. Each message requires on the average 415 bytes on disk.
Collection is a set of messages between the same user and full JID with intervals between consecutive messages not more than 15 minutes. The biggest collection contains 1657 messages and 6 hours 45 minutes long. :)
Numbers of incoming and outgoing messages are almost equal:
Messages sent: 241044 Messages received: 233518
Soon I'll publish more detailed statistics about the collected messages.
Categories: Jabber / XMPP
Share article:
Tweet this
Make delicious
Stumble upon
Comments
Was there any optimization, like compression, applied in the database backend during that test phase?
Posted by Tobias Markmann on 08 Jul 2007 at 08:45No, it just extracts body from messages and INSERTs it with direction and seconds since last message info.
Posted by Alexey Shchepin on 08 Jul 2007 at 09:08
Add comment

Stay Informed
Subscribe to our RSS feed or follow us on Twitter to receive alerts when we post new news stories and blogs.
Subscribe to ProcessOne RSS feed
Follow ProcessOne on Twitter
Follow Mickaël on Twitter
Search our blogs
To make it easier for you to find blogs on topics that you are interested in, we have grouped them into categories depending on the different themes addressed in each blog. Categories include:
ProcessOne
Jabber / XMPP
ejabberd
Erlang
CEAN
Information Technology
Misc
Tsung
French
Mozilla
Employment opportunities
IMtrends
All categories
Become a ProcessOne partner
Find out about the benefits of joining ProcessOne’s partnership programme.
Click here
Our products and services
We offer packaged solutions comprising all of the server-side and client-side technology necessary to create valuable new instant messaging applications. In addition, we offer a range of services for delivering customised solutions.
Click here for full details