Minimal config that duplicates this:
--
global chroot /var/lib/haproxy user haproxy group haproxy daemon maxconn 4096
defaults log global option dontlognull option redispatch retries 3 timeout client 50s timeout connect 10s timeout http-request 5s timeout server 50s maxconn 4096
frontend test-front bind *:80 mode http default_backend test-back
backend test-back mode http stick store-request src stick-table type ip size 256k expire 30m server www.ubuntu.com 91.189.89.115:80
Then:
# curl http://127.0.0.1/ curl: (52) Empty reply from server
and you see in /var/log/haproxy.log:
Nov 20 13:52:11 localhost haproxy[43712]: [ALERT] 323/135209 (43712) : Current worker 43713 exited with code 135 Nov 20 13:52:11 localhost haproxy[43712]: [ALERT] 323/135209 (43712) : exit-on-failure: killing every workers with SIGTERM Nov 20 13:52:11 localhost haproxy[43712]: [WARNING] 323/135209 (43712) : All workers exited. Exiting... (135)
Minimal config that duplicates this:
--
global
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
maxconn 4096
defaults
log global
option dontlognull
option redispatch
retries 3
timeout client 50s
timeout connect 10s
timeout http-request 5s
timeout server 50s
maxconn 4096
frontend test-front
bind *:80
mode http
default_backend test-back
backend test-back
mode http
stick store-request src
stick-table type ip size 256k expire 30m
server www.ubuntu.com 91.189.89.115:80
--
Then:
# curl http:// 127.0.0. 1/
curl: (52) Empty reply from server
and you see in /var/log/ haproxy. log:
Nov 20 13:52:11 localhost haproxy[43712]: [ALERT] 323/135209 (43712) : Current worker 43713 exited with code 135
Nov 20 13:52:11 localhost haproxy[43712]: [ALERT] 323/135209 (43712) : exit-on-failure: killing every workers with SIGTERM
Nov 20 13:52:11 localhost haproxy[43712]: [WARNING] 323/135209 (43712) : All workers exited. Exiting... (135)