How can I deploy the ejabberd cluster over internet?

Hello, I'm using ejabberd as IM server for part of internet service, currently I'm able to deploy the cluster in LAN, but I tried the same steps to configure the cluster in two machine over gateway(internet), it does not connect, not sure if there is anyway to make it connectable?

(With the offical steps, no need to specify which server/ip need to connect as a cluster node, but in internet, I think we have to specify which node is a cluster node, where should we point out it? in configuration? or somewhere else?)

This is very important for us, if you can provide any idea about the solution or point, it would be a great help, thanks in advance.

Put hostnames of your cluster

Put hostnames of your cluster nodes into /etc/hosts on each node… For example, if your node is called “ejabberd@second”, the machine “first” should have a line like this in it’s hosts file…
123.123.123.123 second

Thank you very much, I'm

Thank you very much, I'm still testing and encounter some problems, it appear to unable to invoke mnesia:change_table_copy_type(schema, node(), disc_copies). Not sure what the wrong it is, but I will try to finger out what happened.. (It previously works well while I configured the cluster node with the IP 10.0.6.0, 10.0.6.1, well I'm trying 10.0.6.0 and 10.0.8.122 now)

BTW, can you show me more info about this configuration related doc or source code? I could not find any more information about it, is it related with erlang or designed by ejabberd?

Thanks again for your help~

Ah, I finally worked it out

Ah, I finally worked it out now, I defined the host name is sh15-122, the ejabberdctl detect the node name is ejabberd@sh15-122, without ".", so it decide to start the erl node with "erl -sname", but it should be "erl -name".... Very funny...

Thanks again for your help... I think there are still some stuff need to investigate, how to set the tables copy types.. to improve the proformance....Do you have any suggestion?

Syndicate content