shadyonline
10/23/2019 - 11:44 PM

haproxy configuration for SSL benchmark

haproxy configuration for SSL benchmark

global
  maxconn 100000

defaults
 option  http-server-close
 option  dontlognull
 option  redispatch
 option  contstats
 retries 3
 timeout connect 5s
 timeout http-keep-alive 1s
 timeout http-request 15s
 timeout queue 30s
 timeout tarpit 1m
 backlog 10000
 option tcp-smart-accept
 option tcp-smart-connect

frontend front
  bind :80 accept-proxy
  mode http
  maxconn 100000
  timeout client 25s
  default_backend back

backend back
  balance roundrobin
  mode http
  option forwardfor
  timeout server 25s
  server  srv1 172.31.208.2:80 check
  server  srv2 172.31.209.2:80 check
  server  srv3 172.31.210.2:80 check
  server  srv4 172.31.211.2:80 check