Last active
August 29, 2015 14:12
-
-
Save ric03uec/fa3ac7ea163d1036aefa to your computer and use it in GitHub Desktop.
haproxy configuration
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 | |
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