How to install load balance in Linux
Step 1: Install Haproxy yum install haproxy -y
-Start & Enable their Services systemctl start haproxy
systemctl enable haproxy
Step 2:Configure Haproxy file vim /etc/haproxy/haproxy.cfg
-Add the below lines in the file
# HAProxy Load Balancer for Apache Web Server
frontend
bind *:8080
backend
balance roundrobin
server server1 192.168.0.178:80 check
server server2 192.168.0.128:80 check
-Restart the Haproxy systemctl restart haproxy
by RoFat
linux web server