Problem to connect RMq with Address resolver #302
-
I have 3 hosts (nodes of rmq), like this: host1.com , host2.com , host3.com . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The client needs to resolve the hostnames. If the client can resolve the host names you use the endpoint list:
if there is a load balancer, you need the address resolver like:
|
Beta Was this translation helpful? Give feedback.
You need to set the
advertised_host
in situations like:https://rabbitmq.com/stream.html#advertised-host-port
( here for more details https://blog.rabbitmq.com/posts/2021/07/connecting-to-streams/ )
The client cannot look up the hostname, so you need
advertised_host
in that case.An example is using docker: