ejabberd - Comments for "Clustering design and hardware requirements" https://www.ejabberd.im/node/3543 en Another question https://www.ejabberd.im/node/3543#comment-54390 <p>When you add more than two servers, do you need to put every server in the shared node field, and also in the .hosts.erlang file?</p> Wed, 24 Jun 2009 04:11:06 +0000 crash2burn comment 54390 at https://www.ejabberd.im It is impossible. https://www.ejabberd.im/node/3543#comment-54348 <p>If user1 registered at node1, when node1 is down. He can go to node2. But he has to register at node2.<br /> The only benefit of clustering is that when both node1 and node2 are up, user1 at node1 can invite and chat with user2 at node2.</p> <p>Me, too, wish register at one node of the cluster should automatically register at all nodes of the cluster.</p> Sat, 13 Jun 2009 22:41:48 +0000 breakevilaxis comment 54348 at https://www.ejabberd.im You can try ODBC postgresql https://www.ejabberd.im/node/3543#comment-54347 <p>I tried but I do not like the way it relies on one master database. And there could be some other problems. You have to test yourself.<br /> All you have to do is to replace mnesia with ODBC postgresql. All nodes connect to one database. When the user register at one node it will register at all nodes because they share the same database. (Also you have to set up Mnesia cluster. The rest of the tables have to be done by Mnesia. This is what I did and this is another thing why I do not like external DB).</p> <p>I am using internal mnesia now. User has to register at all nodes.</p> Sat, 13 Jun 2009 22:28:53 +0000 breakevilaxis comment 54347 at https://www.ejabberd.im thanks for your reply! If https://www.ejabberd.im/node/3543#comment-54346 <p>thanks for your reply!</p> <p>If user1 belongs to west-coat.abc.com and if west-coat.abc.com is down due to internet provider, so user1 won't be able to connect to east-coast.abc.com and continue chatting? thinking that user1 is user from internet.<br /> Or i need to make 2 accounts <noindex><a href="mailto:user1@east-coast.abc.com" rel="nofollow" >user1@east-coast.abc.com</a></noindex> and <noindex><a href="mailto:user1@west-coast.abc.com" rel="nofollow" >user1@west-coast.abc.com</a></noindex>? But user1 will need to change it's JID before connecting to east-coast.abc.com or west-coast.abc.com and need somehow to synchronize contact list..</p> <p>This looks not good design for me..</p> <p>What king of isues are there in clustering over wan?</p> Fri, 12 Jun 2009 14:06:43 +0000 c0re comment 54346 at https://www.ejabberd.im Cluster & WANs https://www.ejabberd.im/node/3543#comment-54345 <p>ejabberd has issues with unstable connections between nodes so connecting between both offices wouldn't work.<br /> You would be better served by using a sub-domain for each branch office ( west-coat.abc.com, east-coast.abc.com ) and facilitating connections using S2S between the two. At each office you could make use of a multi-node cluster and distribute connections through a load balancer or DNS round-robin.<br /> I make use of mnesia (the DB 'engine' that ejabberd uses) as it clusters nicely and find the ODBC implementation for multiple virtual-hosts in ejabberd to be lacking. I would assume that each node would just connect to the same DB server &amp; database and let the DB Server handle the locking and requests handling.</p> Fri, 12 Jun 2009 11:26:08 +0000 tlaramie comment 54345 at https://www.ejabberd.im