Connect RabbitMQ cluster using LoadBalance(For Ex f5 LoadBalancer)

191 views
Skip to first unread message

Nitesh Soni

unread,
Jan 7, 2020, 8:17:09 AM1/7/20
to rabbitmq-users
Hi,
Currently my rabbitmq publisher application connects to rabbitMQ cluster using HAProxy. Is it possible to replace HAProxy with f5 Loadbalancer? If yes, then is there any article to implement it?

Regards,
Nitesh

William C

unread,
Jan 7, 2020, 8:22:03 AM1/7/20
to rabbitm...@googlegroups.com
Sure, we use F5 for balancing. Any TCP based proxy can do the job well, such as haproxy, LVS, radware and F5.


Regards
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/c0920f57-4a5d-49d0-965b-5a7b3a815320%40googlegroups.com.

Nitesh Soni

unread,
Jan 7, 2020, 8:39:38 AM1/7/20
to rabbitm...@googlegroups.com
Thanks William,

Is there any article that can help to connect RabbitMQ Publisher App with RabbitMQ Cluster using F5 loadbalancer?

Regards,
Nitesh

William C

unread,
Jan 7, 2020, 8:47:23 AM1/7/20
to rabbitm...@googlegroups.com
Hallo

You need to configure F5 for balancing the backend IP/ports.

Then your producer program connect to F5’s virtual IP/port for publishing. There is no special skills behind it.

Regards
> > https://groups.google.com/d/msgid/rabbitmq-users/trinity-ff2a38b4-ee35-4ff1-88cd-bc9f047fef14-1578403317291%40msvc-mesg-eue005
> > .
> >
>
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/CAC7Usp0Gy4kio7gfkAZt_auPizFUs4E41Cm7YgnDpZn4JEvm3w%40mail.gmail.com.

Michael Klishin

unread,
Jan 8, 2020, 7:19:10 AM1/8/20
to rabbitmq-users
There isn't much RabbitMQ specific. Make your client connect to the load balancer
and the load balancer aware of the upstreams it should proxy to.

[1][2] are two relevant doc sections. The use of proxy protocol is entirely optional.




--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Nitesh Soni

unread,
Jan 8, 2020, 8:09:37 AM1/8/20
to rabbitm...@googlegroups.com
Thanks for responses.
Please let me know which one is most recommended load balancer for RabbitMQ cluster between HAProxy and F5 and why?

Regards,
Nitesh

William C

unread,
Jan 8, 2020, 8:16:33 AM1/8/20
to rabbitm...@googlegroups.com
I suggest personally to use F5 which is a hardware load balancer with
better performance than HAProxy.

We bought F5 BIG-IP LTM for about 10,000,0 USD that's not cheap.
HAProxy just need a PC server for installation, it's cheap at cost,
while not has as high throughput as F5 BIG-IP.

Regards.

Michael Klishin

unread,
Jan 8, 2020, 9:57:08 AM1/8/20
to rabbitmq-users
You can go with whatever your team is most familiar with. HAproxy and F5 products are both
mature and widely used options, and honestly, services such as RabbitMQ do not care what load balancer you use.

Reply all
Reply to author
Forward
0 new messages