Skip to content

Instantly share code, notes, and snippets.

@nedludd
Created March 25, 2013 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nedludd/5240803 to your computer and use it in GitHub Desktop.
Save nedludd/5240803 to your computer and use it in GitHub Desktop.
QA HAProxy Config
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log 127.0.0.1 local2
pidfile /var/run/haproxy.pid
maxconn 500
user haproxy
group haproxy
daemon
#debug
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
mode http
option tcplog
option logasap
log global
option dontlognull
option redispatch
retries 3
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen stats :8888
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
listen rabbitmq 10.255.156.185:5672
mode tcp
balance roundrobin
option tcpka
server rabbit01 10.255.156.192:5672 check inter 5000 downinter 500
server rabbit02 10.255.156.186:5672 check inter 5000 downinter 500
listen rabbitmq-api 10.255.156.185:55672
mode tcp
balance roundrobin
option tcpka
server rabbit01 10.255.156.192:55672 check inter 5000 downinter 500
server rabbit02 10.255.156.186:55672 check inter 5000 downinter 500
listen storm-drpc 10.255.156.185:33772
balance roundrobin
mode tcp
server storm-drpc1 10.255.156.185:3772 check
server storm-drpc2 10.255.156.186:3772 check
server storm-drpc3 10.255.156.187:3772 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment