ejabberd - Comments for "Ejabberd scaling/clustering" https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering en Perfect, thank you badlop! https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67534 <p>Perfect, thank you badlop!</p> Mon, 19 Jun 2017 22:23:00 +0000 brian225 comment 67534 at https://www.ejabberd.im I assume yes. Let's think: https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67528 <p>I assume yes. Let's think: the XMPP client will connect to one of the nodes (or the other), so whatever it connects, it must be correctly configured: accept its username+password (you accomplish that by mnesia database replication), same features (you accomplish that by having the same modules configuration in each nodes), and I satisfactory encryption (which probably means the same certificates and cert config).</p> Fri, 16 Jun 2017 10:02:02 +0000 badlop comment 67528 at https://www.ejabberd.im Oh,one more question, would https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67527 <p>Oh,one more question, would the two servers need to use the same certificate/dhparam files?</p> Fri, 16 Jun 2017 03:17:46 +0000 brian225 comment 67527 at https://www.ejabberd.im Yeah, I intended on using https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67526 <p>Yeah, I intended on using them on VPSs so they would have a reliable network! And that makes sense, thank you!</p> Fri, 16 Jun 2017 02:49:42 +0000 brian225 comment 67526 at https://www.ejabberd.im The erlang nodes can be in https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67522 <p>The erlang nodes can be in different machines, like <noindex><a href="mailto:ejabberd4@machine.domain.com" rel="nofollow" >ejabberd4@machine.domain.com</a></noindex> and <noindex><a href="mailto:ejabberd5@machine2.domain.com" rel="nofollow" >ejabberd5@machine2.domain.com</a></noindex>. It's preferable if they are in a reliable network, not broad internet, but any way will work.</p> <p>Regarding the exact node name, you can set it in the file ejabberdctl.cfg. Remember to do that before starting ejabberd the first time, otherwise you have to delete the Mnesia database, or convert it to the new node name.</p> Thu, 15 Jun 2017 08:15:19 +0000 badlop comment 67522 at https://www.ejabberd.im Thank you for the reply! So https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67521 <p>Thank you for the reply! So in order to cluster, the nodes need to be on the same machine? I was thinking of having them run on separate machines (in case of hardware failure for instance). How would that differ?</p> <p>Also, how would I achieve the name in front of the @ (<noindex><a href="mailto:ejabberd@machine.domain.com" rel="nofollow" >ejabberd@machine.domain.com</a></noindex>, <noindex><a href="mailto:ejabberd4@machine.domain.com" rel="nofollow" >ejabberd4@machine.domain.com</a></noindex>)?</p> Wed, 14 Jun 2017 11:49:49 +0000 brian225 comment 67521 at https://www.ejabberd.im Let's clarify terms: - the https://www.ejabberd.im/forum/28856/ejabberd-scalingclustering#comment-67520 <p>Let's clarify terms:<br /> - the machine name is, for example, machine7.domain.com<br /> - in a machine, you can have one or several erlang nodes running, each one with a different name, for example: <noindex><a href="mailto:ejabberd@machine7.domain.com" rel="nofollow" >ejabberd@machine7.domain.com</a></noindex>, <noindex><a href="mailto:ejabberd4@machine7.domain.com" rel="nofollow" >ejabberd4@machine7.domain.com</a></noindex><br /> - then, in each erlang node (that is running a different ejabberd, installed in a different path, with different configuration file), you can serve several XMPP domains, for example aus.domain.com, anon.domain.com</p> <p>1. In this sense, in join_cluster you must provide the erlang node name, in my example <noindex><a href="mailto:ejabberd@machine7.domain.com" rel="nofollow" >ejabberd@machine7.domain.com</a></noindex><br /> 2. Depending on what you want to do. Probably yes.<br /> 3. Sorry, no idea<br /> 4. join_cluster will tel mnesia of one node to sync with the other node, and it will do automatically when any of those databases change.<br /> 5. yes<br /> 6. Depends. You can even configure as hosts in ejabberd.yml "example.com", and then set DNS x.domain.com and y.domain.com, and tell your client to login to "example.com" with host "x.domain.com" and port "5222".</p> <p>Sorry I can't help you more with DNS setup, better search tutorials over Internet about ejabberd (or other Jabber servers) domain setup.</p> Wed, 14 Jun 2017 08:10:25 +0000 badlop comment 67520 at https://www.ejabberd.im