[rabbitmq-discuss] How to use HAProxy as a load balancer in RabbitMQ cluster?

Rajasekhar P sekhar434145 at gmail.com
Wed Nov 6 11:18:42 GMT 2013


Hi MK,

am using 5670 port in HAProxy configuration as below in configuration file
(haproxy,cfg) and this port is enabled.
listen rabbitmq_local_cluster 127.0.0.1:5670
        mode tcp
        balance roundrobin
        server rabbit 192.168.xx.xx:5672 check inter 5000 rise 2 fall 3
        server rabbit2 192.168.xx.xx:5672 check inter 5000 rise 2 fall 3

Thanks


On Wed, Nov 6, 2013 at 4:38 PM, Michael Klishin <mklishin at gopivotal.com>wrote:

> On 6 Nov 2013, at 14:59, Rajasekhar P <sekhar434145 at gmail.com> wrote:
>
> > connectionFactory.setPort(5670);
>
> If you want to connect to the proxy, you should use the port HAproxy
> listens on.
>
> From your earlier emails that port is 5720.
>
> MK
>
> Software Engineer, Pivotal/RabbitMQ
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131106/34f734cc/attachment.htm>


More information about the rabbitmq-discuss mailing list