@MayankRSG wrote:
Hi
I am looking for setting in haproxy config file (/etc/haproxy/haproxy.cfg) by which haproxy server gets disabled as soon as all its backend servers are DOWN automatically . Similarly , HA Proxy server should get enabled automatically as soon as even 1 backend server is UP.My Config file below:
global
log 127.0.0.1:514 local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemondefaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000#frontend
#---------------------------------
frontend http_front
bind *:80
stats uri /haproxy?stats
default_backend http_back#round robin balancing backend http
#-----------------------------------
backend http_back
balance roundrobin
#balance leastconn
mode http
#server webserver1 10.10.31.179:8000 check
server webserver2 10.10.31.171:8080 check
server webserver3 10.10.31.172:8080 check
Posts: 2
Participants: 2