Hi.
Sorry, I'm newbie with the ejabberd. I've configured the ejabberd cluster according to docs on this site. The cluster contains two nodes on the different servers. I guess that configuration is ok. For example, i can ping a node from other node, start remote shell, i can see two running nodes in the mnesia:info()'s output.
So what's the next step to build a cluster? Do i need to install additional software(for example, smth like load balancing stuff)? How does an ejabberd cluster spread users load between nodes?
Thanks.
Re: Question about an ejabberd cluster
Do i need to install additional software(for example, smth like load balancing stuff)? How does an ejabberd cluster spread users load between nodes?
Thanks.
Yes, you need some load balancing solution. This can be software or hardware. You also can play with DNS SRV Records to do load balancing, but AFAIK no clients implement it, so that's useless.
Re: Question about an ejabberd cluster
How does an ejabberd cluster spread users load between nodes?
ejabberd doesn't spread users. Users themselves connect to a specific node. Nodes never swap or share connections between them.
Once both ejabberd nodes are connected, and sharing the relevant Mnesia tables as described in the ejabberd Guide, the user can select to which node to connect (indicating the machine address as 'connect using this host' on the Jabber client. If the Jabber client does not indicate any preference, it will connect to the default host.
Do i need to install additional software(for example, smth like load balancing stuff)?
If you want load balancing, yes. But it isn't strictly required.