Setup HAProxy for Cluster
HAProxy can be set up to distribute load among the Search servers within the Cluster.
HAProxy Installation
For CentOS 7
yum install haproxy
For Ubuntu 18.04
apt-get install haproxy
Update Configuration File
Update the configuration /etc/haproxy/haproxy.cfg
vi /etc/haproxy/haproxy.cfg
![haproxy1.png 739](https://files.readme.io/467ae7d-haproxy1.png)
Based on the number provided in the preceding screenshot, the corresponding details are as follows:
-
To Enable HA Proxy dashboard configuration
Note: You can enable HAProxy Dashboard if required -
Enabling the Load Balancer for HTTPS applications
Note: You will need to provide the SSL certificate. -
For adding the servers into load balancing configuration
Start HA Proxy Server
To start haproxy
systemctl start haproxy
To get status of haproxy
systemctl status haproxy
![haproxy2.png 1363](https://files.readme.io/958112e-haproxy2.png)
Updated over 2 years ago