Clustering join_cluster command

Hi,
I have some doubts in clustering.
Scenario:
1. A load balancer with domain name ( abc.com )
2. 2 ejabberd servers running on nodes ejabberd@node1 and ejabberd@node2
3. Both ejabberd servers ejabberd.yml file contain host - abc.com
4. Both ejabberd servers are connected to main database which is mysql.

Questions:
1. Is the command 'join_cluster' enough for proper clustering. Or we have to perform some mnesia replication steps?
2. How will both servers communicate with each other? I have opened the s2s port 5269. Do I need to add each others public IP in the yml file under hosts?
3. Any extra steps involved?

1. It's enough, looking at

1. It's enough, looking at the source code and the Guide: https://docs.ejabberd.im/admin/guide/clustering/#clustering-setup

2. The Mnesia replication uses epmd and erlang node connection, see which ports you need to open: https://docs.ejabberd.im/admin/guide/security/
Also, each machine must know where the other machine is. If you use node names like "node1" and "node2", then you should add them to /etc/hosts. So that a conventional "ping" to the erlang node name works correctly.

3. See the Guide links I mentioned.

Thanks @badlop

Thanks @badlop

Syndicate content