Closed surfkansas closed 6 years ago
Thank you for your time.
Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. GitHub issues are not used for questions, investigations, root cause analysis, discussions of potential issues, etc (as defined by this team).
We get at least a dozen of questions through various venues every single day, often light on details. At that rate GitHub issues can very quickly turn into a something impossible to navigate and make sense of even for our team. Because GitHub is a tool our team uses heavily nearly every day, the signal/noise ratio of issues is something we care about a lot.
Please post this to rabbitmq-users.
Thank you.
Connections to virtual hosts within a node are no different to federation than connections to remote nodes. Thanks for the upstream and policy examples, please also provide a runnable example of the topology on the mailing list and explain what the end goal is.
The rabbitmq-federation plugin appears to have a bug with multi-hop federation. When trying to set up federation on a single node with multiple v-hosts, the max_hops property appears to be ignored.
The attempted setup is described here with max_hops > 1 https://www.rabbitmq.com/federated-exchanges.html
Setup commands for this test are:
Upon setting up this environment and verifying that upstream status are working, we then create queues on the different environments and bind to the
amq.fanout
exchange.When sending a message to the
amq.fanout
onfirst
, it will be propagated to theamq.fanout
exchange onsecond
. All queues bound to either of these fanout exchanges will receive their messages. However, queues bound toamq.fanout
onthird
will not receive messages.If the message is sent to
amq.fanout
onsecond
, bothsecond
andthird
receive messages.The expected behavior would be that messages sent to
first
would propagate both tosecond
andthird
, as the federation upstream is setup withmax-hops
equal to 3.When setting this same design up across three nodes (and not with three virtual hosts), the expected behavior works perfectly.
As such, one of two changes should occur: