Created
April 26, 2013 23:26
-
-
Save huangxiangdan/5471095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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