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. My goal is to serve from LS1 as long as its running. Once LS1 is down, haproxy will start serving backup server LS2. I want it to call an url once LS1 is down.
defaults log global mode tcp option tcplog option dontlognull timeout connect 20s timeout client 20s timeout server 20s 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