Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 'global
- log 127.0.0.1 local2
- chroot /var/lib/haproxy
- pidfile /var/run/haproxy.pid
- maxconn 4000
- user haproxy
- group haproxy
- daemon
- stats socket /var/lib/haproxy/stats
- defaults
- mode http
- maxconn 8000
- log global
- option httplog
- option dontlognull
- option http-server-close
- retries 3
- timeout http-request 20s
- timeout queue 1m
- timeout connect 10s
- timeout client 1m
- timeout server 1m
- timeout http-keep-alive 10s
- timeout check 10s
- listen stats
- bind *:8080 interface ens160
- mode http
- stats enable
- stats uri /stats
- stats realm HAProxy\ Statistics
- stats admin if TRUE
- listen web-backend
- bind *:80
- balance roundrobin
- cookie SERVERID insert indirect nocache
- mode http
- option httpchk
- option httpclose
- option httplog
- option forwardfor
- server controller01 192.168.10.122:8081 check cookie controller01 inter 5s fastinter 2s rise 3 fall 3
- server controller02 192.168.10.123:8081 check cookie controller02 inter 5s fastinter 2s rise 3 fall 3' > /etc/haproxy/haproxy.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement