Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am a complete newbie to XMPP and ejabberd. I would be very thankful if some expert could tell me, how the ejabberd "clustering" works. I searched a lot, but could not find any specs about this.

Does it simply replicate all it's data via http (so it doesn't matter where a client connects)? Or will it be done via DNS RR?

share|improve this question

2 Answers 2

It uses the clustering capabilities of Erlang : - The ability to message any process on a any node in the erlang cluster - it also uses mnesia, erlang's distributed database for storing the routing table, which contains the JID <-> client process id mapping.

When a message enters ejabberd, it looks up the recipient JID in this table, and sends it to the PID it finds. This process can be anywhere in the cluster, erlang takes care of routing it.

share|improve this answer
up vote 0 down vote accepted

It seems that clustering is done on an DNS Level (or frontend LB) and the basis being a clustered database / persistence layer. They provide several implementations for this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.