Cluster Rabbitmq - VIP

341 views
Skip to first unread message

mcse test

unread,
Sep 6, 2022, 11:21:34 AM9/6/22
to rabbitmq-users
Hi everyone, I just joined the group.
I'm starting to "study and test" Rabbitmq with single node installations in test environments. Apparently without problems...
I would like to try a clustered configuration in quorum queue mode now, but I cannot find documentation or info on managing a (mandatory ???? ) Virtual IP that the senders or recipients of the messages will have to use.
Should the VIP be managed externally with a service such as keepalive or other solution?
Thanks in advance
bye.
Michael

Michal Kuratczyk

unread,
Sep 6, 2022, 2:36:07 PM9/6/22
to rabbitm...@googlegroups.com
Hi,

It's not mandatory - most client libs support passing multiple endpoints and will connect to the first available (I guess some libs will randomly pick one, I'm not sure).
Anyway, you don't need a virtual IP. But if you want one, basically any TCP load balancer / proxy can be used for that purpose.

Best,

--
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/4e23861a-2e02-4dcc-9fa6-02bf0f2a9503n%40googlegroups.com.


--
Michał
RabbitMQ team

Mcse Operations

unread,
Sep 7, 2022, 2:41:16 AM9/7/22
to rabbitm...@googlegroups.com
Hi, thanks for reply and  explanation !have a good day. bye
Michael

Mcse Operations

unread,
Sep 9, 2022, 4:40:15 AM9/9/22
to rabbitmq-users
Sorry, but there are some tutorial or best practices document\info to configure haproxy load balancer  for rabbitmq use?
Or configuration is a simple TCP connection balancing?

thanks

Michal Kuratczyk

unread,
Sep 9, 2022, 4:59:07 AM9/9/22
to rabbitm...@googlegroups.com
Hi,

It's a long-lived TCP connection.

Best,



--
Michał
RabbitMQ team
Message has been deleted

Mcse Operations

unread,
Sep 9, 2022, 9:37:22 AM9/9/22
to rabbitmq-users
Hi, thx. 
I am using haproxy with various http, https and many tcp protocols. For tcp connections I am using these configurations which work regularly with many services:

frontend rabbit_test
    bind 192.168.0.1:5672
    mode tcp
    default_backend rabbit_servers

backend rabbit_servers
    balance roundrobin
    mode tcp
    s1 server 192.168.0.2:5672
    s2 server 192.168.0.3:5672
    s3 server 192.168.0.4:5672

but it doesn't work with rabbitmq.
TCP port 5672 is open but no packets are forwarded to nodes belonging to the backend. Should any particular configuration be set?
Thx . Michael

Host Cache

unread,
Sep 9, 2022, 8:53:34 PM9/9/22
to rabbitm...@googlegroups.com
can you run the tool of package capture for analyzing this?

Thanks

Mcse Operations

unread,
Sep 12, 2022, 5:28:00 AM9/12/22
to rabbitm...@googlegroups.com

Yes, I analyzed the traffic with both iptraf and with
 tcpdump but using the haproxy's VIP (bonding IP) I don't get any connection on ports 5672

--
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.
Reply all
Reply to author
Forward
0 new messages