Ничего хитрого log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid user haproxy group haproxy daemon maxconn 20000 nbproc 2 cpu-map 1 0 cpu-map 2 1 # turn on stats unix socket stats socket /var/lib/haproxy/stats level admin process 1 expose-fd listeners stats bind-process 1 defaults mode http log global option tcplog option dontlognull option forwardfor except 127.0.0.0/8 option redispatch option http-use-proxy-header retries 3 timeout http-request 120s timeout queue 30s timeout connect 4s timeout client 120s timeout server 120s timeout http-keep-alive 120s frontend proxy bind *:3128 maxconn 20000 bind-process 1 default_backend proxy_pool backend proxy_pool bind-process 2 balance roundrobin stats enable option httpchk GET http://ya.ru/ HTTP/1.0 http-check expect status 302 server px08 10.33.64.112:3128 check inter 1000 rise 2 fall 3 on-marked-down shutdown-sessions on-marked-up shutdown-backup-sessions server px01 10.33.64.174:3128 check inter 1000 rise 2 fall 3 backup on-marked-down shutdown-sessions Это сейчас на тесте, поэтому проверка простая и режим master-backup
Обсуждают сегодня