HAProxy is a free, open-source software that provides a high availability load balancer.
Step1. Install apache
yum install httpd -y
Step2. Create a file
vi /var/www/html/index.html techservicedoc
Step3. Restart service
systemctl restart httpd
Step4. Install HAProxy
yum install haproxy
Step5. Configure HAProxy server
vi /etc/haproxy/haproxy.cfg frontend haproxy_inbound bind *:80 default_backend haproxy_httpd backend haproxy_httpd balance roundrobin server 192.168.106.128:80 check (NoteL Here you can add more servers) server *...*:80 check
Step6. Restart service
systemctl restart haproxy systemctl status haproxy
Step7. Access via browser HAProxy server
http://haproxy server ip/