Skip to content

Instantly share code, notes, and snippets.

@jaymecd
Forked from dakatsuka/haproxy.cfg
Last active August 29, 2015 14:10
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 jaymecd/a436b2bd426a1548bae9 to your computer and use it in GitHub Desktop.
Save jaymecd/a436b2bd426a1548bae9 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
listen rabbitmq 0.0.0.0:5672
mode tcp
log global
retries 3
contimeout 5000
clitimeout 0
srvtimeout 0
option tcplog
option persist
balance leastconn
server disk0001 disk0001.localhost.localdomain:5672 check
server disk0002 disk0002.localhost.localdomain:5672 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment