Ejabberd: Load balancing of ejabberd server

Created on 20 Mar 2017  路  3Comments  路  Source: processone/ejabberd

I am new to ejabberd server. I have install 2 instances of ejabberd on Ubunto -16.04
apt-get install ejabberd.

My Configuration with cluster is also successful by following https://docs.ejabberd.im/admin/guide/clustering/

Now I want to have load balancing between these two nodes like round-robin for my clients

I read in one post that ejabberd does not support load balancing but I found one document which specify something about default load balancing
https://docs.ejabberd.im/admin/guide/advanced/

but not clear what it is. Can you help me to specify how to perform load balancing in ejabberd

Question

Most helpful comment

There are two common way to accomplish the task

  1. Use SRV DNS balancing: it's pretty straightforward, just set up several SRV records pointing to your nodes.
  2. Use balancing proxies, such as haproxy. Here is a good blogpost about it.

All 3 comments

There are two common way to accomplish the task

  1. Use SRV DNS balancing: it's pretty straightforward, just set up several SRV records pointing to your nodes.
  2. Use balancing proxies, such as haproxy. Here is a good blogpost about it.

Thanks zinid for sharing the details. I will look into haproxy

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings