Skip to content

Instantly share code, notes, and snippets.

@trungv0
trungv0 / haproxy.sh
Last active April 29, 2024 14:54
RabbitMQ cluster with HAProxy & Keepalived for high availability
# install haproxy
yum install -y haproxy
# config haproxy for rabbitmq
cat > /etc/haproxy/haproxy.cfg << "EOF"
global
log 127.0.0.1 local0 notice
maxconn 10000
user haproxy