Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shadyonline/ba3ca935945be0adb9f5bd2b2ee03f47 to your computer and use it in GitHub Desktop.
Save shadyonline/ba3ca935945be0adb9f5bd2b2ee03f47 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment