ELMA365 On-Premises > Other > ELMA365 high availability cluster / HAProxy load balancer

HAProxy load balancer

Step 1: Install HAProxy

  1. Install HAProxy by running the following command:

sudo apt install haproxy -y

  1. Run the haproxy service and add it to startup:

sudo systemctl enable --now haproxy

Step 2: Configure HAProxy

  1. Move the default configuration file:

sudo mv /etc/haproxy/haproxy.cfg{,.original}

  1. Create a new configuration file and open it for editing by running the following command:

sudo nano /etc/haproxy/haproxy.cfg

Example configuration for balancing the postgresql, rabbitmq, and web services:

  1. Restart haproxy:

sudo systemctl restart haproxy

Found a typo? Highlight the text, press ctrl + enter and notify us