Let me admit up front that this is a weird one, but I'll press ahead on the chance there's something there.<br><br>I've got two brokers I'm using the federation plugin with. I create a single exchange 'skytap' on each broker, and make the 'skytap' exchange on the other broker its upstream.<br>
<br>I create the rabbitmq.config file dynamically before starting each broker. Starting from a blank slate (blowing away the mnesia directory), I launch the two nodes concurrently.<br><br>When I go to the Exchange tab in either broker, I see two Exchanges as expected:<br>
<ul><li><span class="object">federation: skytap -> <a href="mailto:rabbit@mq2.skytap.com">rabbit@mq2.skytap.com</a> B</span></li><li><span class="object">skytap</span></li></ul><span class="object"><br>The type of the exchanges is x-federation-upstream and x-federation, respectively. However, when first starting up, the type column is a red color indicating a problem, and hovering over it, I get a message to the effect of "unknown exchange type x-federation. Messages published to this exchange won't work."<br>
<br>Now, here's the interesting thing: I<b>f I wait long enough (usually around 10-15 minutes) </b></span><span class="object"><b><span class="object">and without doing anything, </span>the error state eventually goes away</b> and the Exchanges seem happy. This has happened at least three times, so it doesn't seem like a random fluke or that I accidentally did something.<br>
<br>Here's my config file, FWIW...<br><br>[<br>{rabbit, [{cluster_nodes, [rabbit@mq1]}, {disk_free_limit, 104857600}]},<br>{mnesia, [{debug, trace}]},<br>{rabbitmq_federation, [{exchanges, [[{type, "topic"}, {upstream_set, "skytap_upstreams"}, {virtual_host, "/"}, {exchange, "skytap"}]]}, <br>
{upstream_sets, [{"skytap_upstreams", [[{connection, "upstream-mq2"}, {max_hops, 1}, {exchange, "skytap"}]]}]}, <br>{connections, [{"upstream-mq2", [{host, "mq2"}, {port, 5672}]}]}]}<br>
].<br><br>Again, I realize this sounds a bit wonky, but it's happened enough times to make me not think I'm crazy.<br><br>Thanks,<br><br>Matt<br></span>