Skip to content

Instantly share code, notes, and snippets.

@martin-g
Last active July 16, 2020 11:15
Show Gist options
  • Save martin-g/9576bec4e352ab6eb81aea2c6a69f0ba to your computer and use it in GitHub Desktop.
Save martin-g/9576bec4e352ab6eb81aea2c6a69f0ba to your computer and use it in GitHub Desktop.
global
log stdout format raw local0 err
# nbproc 8
nbthread 32 # don't set this manually. See Update 4 below
cpu-map 1/all 0-7 # don't set this manually. See Update 4 below
tune.ssl.default-dh-param 2048
tune.ssl.capture-cipherlist-size 1
ssl-server-verify none
maxconn 32748
daemon
defaults
timeout client 60s
timeout client-fin 1s
timeout server 30s
timeout server-fin 1s
timeout connect 10s
timeout http-request 10s
timeout http-keep-alive 10s
timeout queue 10m
timeout check 10s
mode http
log global
option dontlog-normal
option httplog
option dontlognull
option http-use-htx
option http-server-close # don't set this!!! See Update 4 below
option http-buffer-request
option redispatch
retries 3000
frontend test_fe
bind :::8080
#bind :::8080 ssl crt /home/ubuntu/tests/tls/server.pem
default_backend test_be
backend test_be
#balance roundrobin
balance leastconn
#balance random(2)
server go1 127.0.0.1:8081 no-check
server go2 127.0.0.1:8082 no-check
server go3 127.0.0.1:8083 no-check
server go4 127.0.0.1:8084 no-check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment