Hello,
i have a TCP backend with two servers. I want to check both, but with
different checks, like below:
backend foo
mode tcp
server srv1 192.168.0.1 check # <-- do a TCP check
server srv2 192.168.0.2 check backup # <-- do a HTTP check
I could imagine something like:
frontend foo
...
use_backend foo:srv1 if { srv_is_up(be:srv1/srv1) }
use_backend foo:srv2 if { srv_is_up(be:srv2/srv2) }
...
backend be:srv1
mode tcp
server srv1 192.168.0.1 check
backend be:srv2
mode tcp
option httpchk GET /health HTTP/1.0\r\n
server srv2 192.168.0.2 check
but it would be nice to find a clean and direct way. Any ideas are welcome.
thx, stephan