erlang - How to do ejabberd cluster load balancing the right way? -
I installed a cluster (node 1 and node 2) through the following steps in the same domain (talk.example.com) Have done
I tested the cluster with two clients, which are connected to different nodes' IP (not the domain talk.example.com). But I want to know if I want to add the client to the DNS record (talk.example.com) to distribute the client in the cluster, not the IP for the nodes in the cluster?
DNS round robin? I do not know whether this work for the same client if different IPs come back for the same client, because XMPP protocol is static. Or Linux Virtual Server? I've never done this before.
I have read, but which node frontend (which will connect the client)?
You must load either the DNS balance or the balloner, such as the haproxy or both.
DNS is actually the simplest but remember that this SRV record is _xmpp-client._tcp. {Your domain} should be balanced, not your actual domain.
Comments
Post a Comment