Skip to content

Instantly share code, notes, and snippets.

@davewongillies
Forked from dakatsuka/haproxy.cfg
Last active August 29, 2015 14:23
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 davewongillies/f7176b15c110006bdf39 to your computer and use it in GitHub Desktop.
Save davewongillies/f7176b15c110006bdf39 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