HAProxy configuration for RabbitMQ

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

 

你可能感兴趣的:(haproxy,rabbitmq)