@sali wrote:
Hello,
Is there any options to call an url (http) from ha-proxy config once it detects that the active server is down and before it starts serving backup servers? For example, I’m playing with the following config. The frontend is at 8085. LS1/GS1 are active servers and once they are down, it will start serving LS2/GS2. What I need it from is to call an url once haproxy detects that LS1 is down.
defaults log global mode tcp option tcplog option dontlognull timeout connect 20s timeout client 20s timeout server 20s listen stats bind 127.0.0.1:8084 mode http log global stats enable stats realm Haproxy\ Statistics stats uri / listen LS bind 127.0.0.1:8085 balance roundrobin option clitcpka option tcplog option dontlognull server LS1 127.0.0.1:20001 check inter 2s fall 2 rise 99999999 server LS2 127.0.0.1:20011 check inter 2s backup listen GS bind 127.0.0.1:8086 balance roundrobin option clitcpka option tcplog option dontlognull server GS1 127.0.0.1:20006 check inter 2s fall 2 rise 99999999 server GS2 127.0.0.1:20016 check inter 2s backup
Posts: 1
Participants: 1