Hi,
I'd like to understand if I've made a mistake in configuration or there
might be a bug in HAproxy 1.7.11.
defaults section has "option redispatch".
backend load_balancer
mode http
option httplog
option httpchk HEAD /load_balance_health HTTP/1.1\r\nHost:\ foo.bar
balance url_param file_id
hash-type consistent
acl status0 path_beg -i /dl/
acl status1 path_beg -i /haproxy
use-server local_http_frontend if status0 or status1
force-persist if status0 or status1
server local_http_frontend /var/run/haproxy.sock.http-frontend check
send-proxy
server remote_http_frontend 192.168.1.52:8080 check send-proxy
The idea here is that HAproxy statistics page, some other backend
statistics and also some remote health checks running against path under
/dl/ would always reach only local_http_frontend, never go anywhere else
even when local really is down, not just marked as down.
This config does not work, it forwards /haproxy?stats request to
remote_http_frontend when local_http_frontend is really down.
Is it expected? Any ways to overcome this limitation?
Thanks in advance,
Veiko