Use Ha-Proxy for RabbitMQ

The following block of the configuration can be used to distribute requests between the RabbitMQ servers: listen rabbitmq-webapi *:15672 mode tcp balance roundrobin option tcplog server server-01 server-01:15672 check port 15672 server server-02 server-02:15672 check port 15672 server server-03 server-03:15672 check port 15672 listen rabbitmq-backend *:5672 mode tcp balance roundrobin option tcplog server server-01 server-01:5672 […]

Continue reading ...
Share Button

Enable Ha-Proxy stats page

To enable status page in your ha-proxy loadbalancer, add the following ingo the /etc/haproxy/haproxy.cfg file: listen stats :9000 # Listen on localhost:9000 mode http stats enable # Enable stats page stats hide-version # Hide HAProxy version stats realm Haproxy\ Statistics # Title text for popup window stats uri /haproxy_stats # Stats URI stats auth admin:admin […]

Continue reading ...
Share Button

Using HaProxy for MySQL

You can also use HaProxy for MySQL traffic if you have master-master replication configured. This can be implemented in tcp mode. As I stated in the previous article, in the tcp mode HaProxy simply delivers all traffic on the server behind the balancer. If you have a master-slave replication I’d recommend to use mysql-proxy to […]

Continue reading ...
Share Button

HaProxy configuration examples

I want to consider a few examples of setting HaProxy for balancing traffic in this article.

Continue reading ...
Share Button

A brief overview of HaProxy configuration

HaProxy is a very flexible tool for balancing traffic. It has a whole bunch of options and customization options. Also it has its quirks. It would be very hard to describe the contents of all of my drafts on this subject in this article, because it might get big and heavy to digest.

Continue reading ...
Share Button