haproxy backup backup list. ( L4 작동)
global
daemon # 백그라운드에서 동작
user haproxy
group haproxy
maxconn 40960
defaults
## 너무 짧게 설정하면 강제로 timeout이 빈번히 발생한다
timeout connect 5s
timeout server 5s
timeout client 5s
timeout http-request 10s
timeout http-keep-alive 10s
listen stats
bind *:8080
mode http
stats enable
stats uri /
stats hide-version
stats auth admin:admin
frontend web
bind *:80
default_backend servers
option forwardfor
log global
backend servers
balance roundrobin
## option httpchk GET /status
cookie SERVERID insert indirect nocache
default-server inter 100 rise 2 fall 5 # 검사 조건 (확인 주기 100/ms, 2번이상 성공시 정상 확인, 5번이상 실패 시 제외)
server web1 vopier.co.kr:80 check
server web2 anvil-ict.com:80 check