Skip to content

HAProxy config example for Heimdallr

Edward J. Yoon edited this page Nov 7, 2018 · 2 revisions
  mode http
  log global
  log 127.0.0.1 local2 debug
  option httplog
  option  http-server-close
  option  dontlognull
  maxconn 1000000
  option  redispatch
  option  contstats
  retries 3
  backlog 10000
  timeout client          25s
  timeout connect          5s
  timeout server          25s
# timeout tunnel available in ALOHA 5.5 or HAProxy 1.5-dev10 and higher
  timeout tunnel        3600s
  timeout http-keep-alive  1s
  timeout http-request    15s
  timeout queue           30s
  timeout tarpit          60s
  default-server inter 3s rise 2 fall 3
  option forwardfor

frontend ft_web
  log global
  bind 0.0.0.0:80 name http
  maxconn 1000000
  default_backend bk_web

backend bk_web
  #log global
  balance roundrobin
  server websrv1 1.209.47.155:8080 maxconn 100000 weight 10 cookie websrv1 check source 172.31.22.11
  #server websrv2 1.209.73.201:8080 maxconn 100000 weight 10 cookie websrv2 check #source 172.31.27.2
  #server websrv3 5.18.91.74:8080 maxconn 100000 weight 10 cookie websrv3 check #source 172.31.27.2
  #server websrv4 1.125.253.21:8080 maxconn 100000 weight 10 cookie websrv4 check #source 172.31.27.2
Clone this wiki locally