'HaProxy, RabbitMQ nodes in cluster, Docker - load ist not distributed equally
I have docker network, run rabbitmq containers which are clustered and HA, have HaProxy in front of my Publisher aka rabbitmq_local_cluster.
I was expecting the load to be distributed equally on all the nodes in the cluster. What I am getting is that only 1 node is loaded (based on my interpretation of HAProxy stats..). See my HaProxy setup on rabbtimq_local_cluster and stats (first stats picture) from HAProxy when 3 nodes are running. If I stop_app rabbit-1 (meaning 2 and 3 is on) I get (second stats picture) all the load on rabbit-2 (see no change in Bytes in on rabbit-3). Interestingly, after stopping rabbit-2 (only rabbit-3 is running), messages get transferred, but no extra Bytes in get registered (third stats picture and yes, my refresh passed. Set on 5s).
Will be grateful for any suggestions why rabbit-1 is under such disproportionate load when round robinning...
bind :5672
mode tcp
balance roundrobin
server rabbit-1 127.0.0.1:8085 check inter 5s rise 2 fall 3
server rabbit-2 127.0.0.1:8086 check inter 5s rise 2 fall 3
server rabbit-3 127.0.0.1:8087 check inter 5s rise 2 fall 3
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|



