Skip to content

Instantly share code, notes, and snippets.

@bfleming-ciena
Forked from Philmod/storifyeditor-haproxy.cfg
Last active August 29, 2015 14:18
Show Gist options
  • Save bfleming-ciena/233d59e5e19515a2d656 to your computer and use it in GitHub Desktop.
Save bfleming-ciena/233d59e5e19515a2d656 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1:514 local1
defaults
mode http
log global
option httplog
option http-server-close
option dontlognull
option redispatch
option contstats
retries 3
backlog 10000
timeout client 25s
timeout connect 5s
timeout server 25s
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 meteor_frontend
bind *:8080 accept-proxy name meteor_frontend
maxconn 1000
default_backend meteor_backend
backend meteor_backend
timeout check 7070
option httpchk GET /
balance source
server websvr1 <IP/DNS>:7070 check maxconn 1000 weight 10 cookie srvcookie check inter 10000 rise 1 fall 3
server websvr2 <IP/DNS>:7070 check maxconn 1000 weight 10 cookie srvcookie check inter 10000 rise 1 fall 3
# Enable HAProxy UI.
listen stats *:1936
stats enable
stats uri /
stats hide-version
stats auth someuser:somepasswd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment