Hi,


> backend b_catchall
> log global
> mode http
> option httplog
> option http-server-close
>
> #--- speedtest
> use-server www.speedtest.net if { hdr_dom(host) -i speedtest }
> server www.speedtest.net *:80

This is an unsupported configuration, you cannot specify an asterisk
as address.

This particular configuration makes HAProxy open <maxconn> connections,
which is 20000 in your case, which saturates CPU and RAM until the
oom-killer intervenes.

The fix in haproxy will be to refuse to start when using this kind of
configuration (there is probably another bug here as well, but that
doesn't mean this is a supported configuration).


Note that HAProxy is not a forward proxy and it will probably never be
one. Take a look at squid and those kind of proxies.



Regards,

Lukas                                     

Reply via email to