Skip to content

Instantly share code, notes, and snippets.

@ric03uec
Last active August 29, 2015 14:12
Show Gist options
  • Save ric03uec/fa3ac7ea163d1036aefa to your computer and use it in GitHub Desktop.
Save ric03uec/fa3ac7ea163d1036aefa to your computer and use it in GitHub Desktop.
haproxy configuration
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
retries 3
option redispatch
maxconn 4096
timeout connect 5000
timeout client 50000
timeout server 50000
frontend rabbitmq-server
bind *:5672
default_backend rabbitmq_backend
backend rabbitmq_backend
# rabbitmq server runs on localhost
server rabbit-01 <container_ip>:5672 check inter 5s rise 2 fall 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment