[rabbitmq-discuss] Federated Exchange Advice
Ilya Volodarsky
ilya at segment.io
Thu Sep 6 19:58:27 BST 2012
Thanks Simon. I was using RabbitMQ management console to set up the
exchange to exchange bindings, and the upstream exchanges showed up as
"production-ingestion from rabbit at hostname", and when I tried to bind
ingestion to production-ingestion, it wouldn't let me saying that the
exchange didnt exist. I had to give the full upstream exchange name which
looked precarious since it contained the actual hostname of the connecting
computer.
Do you think that doing that / or using RMQ management console could have
something to do with it?
Thanks,
Ilya
On Thu, Sep 6, 2012 at 2:43 AM, Simon MacMullen <simon at rabbitmq.com> wrote:
> So this certainly sounds like it *should* work. At the very least, part of
> our test suite asserts that e2e bindings get routed upstream just like
> queue bindings :-)
>
> I think one way to simplify what you're doing would be for the staging
> broker to just contain a federated "ingestion" exchange, with an upstream
> of the production server's "ingestion" exchange, with no extra intermediate
> exchanges. (The upstream exchange does not need to be federated, unless it
> in turn has upstreams.) That sounds like a simpler way to get what you
> want, but what you are trying *should* work.
>
> One possibility is that you haven't set up some of the intermediate
> bindings correctly? If you want to proceed with your current setup you
> could try binding queues to each exchange in the chain and seeing how far
> messages are getting.
>
> Cheers, Simon
>
> On 05/09/2012 11:19PM, Ilya Volodarsky wrote:
>
>> Hi,
>>
>> I was trying to set up a federated exchange topology today, and had a
>> bit of trouble. I have a /production /broker with an exchange called
>> *ingestion*, which receives tasks from our API servers. There are queues
>> bound to this exchange that consume it and process the API tasks.
>>
>> I then created a mirror cluster with a /staging /broker, and also
>> created an exchange called *ingestion. *I wanted to route everything
>> going from the /production/ broker's *ingestion* exchange to
>> the/staging/ broker's *ingestion* exchange.
>>
>> I created a federated exchange called*production-ingestion* on the
>> /staging/ broker, and that created a*staging-ingestion* upstream
>> exchange on the/production/ broker.
>>
>> I first did an exchange-bind on the /staging/ broker:
>> *production-ingestion *=> *ingestion*
>> I then did an exchange-bind on the/production/ broker with source:
>> *ingestion* => *staging-ingestion*
>>
>> I saw no traffic going between the computers. I read that the federation
>> plugin only transfers things it has subscriptions for, but is an
>> exchange binding not counted as a subscription? If so, it feels like I
>> am setting this up wrong. Some guidance would be very appreciated.
>>
>> Thanks,
>>
>> Ilya
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120906/461c0ccd/attachment.htm>
More information about the rabbitmq-discuss
mailing list