title: Proper scaling of ejabberd cluster
body: <p>I have gone through the following url regarding ejabberd clustering and have some doubts.
  <a href="https://docs.ejabberd.im/admin/guide/clustering/#clustering-setup" rel="nofollow noreferrer">https://docs.ejabberd.im/admin/guide/clustering/#clustering-setup</a></p>
  <p>Scenario:
  I have 2 severs both connected to internet via NIC1 and connected to each other via NIC2.</p>
  <p>Since ejabberd cluster can load balance the traffic through its connected nodes, I want each server to be accessible via my domain. I made 2 sub domains records xmpp1.mydomain.com and xmpp2.mydomain.com.</p>
  <p>Both servers are connected to internet and have 1gbps connection and static public ips. Now I want to load balance them at dns level and current dns load balancers are bit expensive to use.</p>
  <p>Is there a cheap alternative to use bandwidth of both servers.
  I heard about srv records but they do not load balance according to my knowledge as resolving them is a 2 step process and service discovery will return both servers ip rather than least busy one.</p>
  <p>Expectation:
  2 servers in cluster config with 1 gbps inetenet connectivity each act like 2gbps server.Which can be reachable by a single url.</p>