Skip to content

Instantly share code, notes, and snippets.

@huangxiangdan
Created April 26, 2013 23:26
Show Gist options
  • Save huangxiangdan/5471095 to your computer and use it in GitHub Desktop.
Save huangxiangdan/5471095 to your computer and use it in GitHub Desktop.
global
daemon
maxconn 490000
log 127.0.0.1 local0
pidfile /tmp/haproxy-queue.pid
defaults
log global
mode tcp
option redispatch
timeout connect 5s
timeout client 5m
timeout server 1m
listen access_clients
maxconn 490000
bind 0.0.0.0:xx
balance roundrobin
server master x.x.x.x:x weight 1 check inter 10s
server slave1 x.x.x.x:x weight 2 check inter 10s
listen stats :xx
mode http
stats enable
stats uri /admin
stats auth test:test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment