<div dir="ltr">Thanks Simon!<div><br></div><div>I'm not sure how I manage to misconfigure my federation to include the internal queues.</div><div><br></div><div>If it helps, here's what my Policies page shows for the federation:</div>
<div><br></div><div><table class="" style="border-collapse:collapse;border-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);margin-bottom:0px;font-family:Verdana,sans-serif"><tbody><tr class=""><td style="font-size:12px;line-height:17px;font-family:Verdana,sans-serif;padding:4px;vertical-align:top;min-width:5em;width:auto;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);background-image:-webkit-gradient(linear,0% 0%,0% 100%,from(rgb(248,248,248)),to(rgb(255,255,255)))">
<a href="http://tuk5r1mqvip1.mgt.integ.skytap.com:15672/#/policies/%2F/skytap-federation" style="display:block;width:119px;color:black;font-weight:bold;text-decoration:none">skytap-federation</a></td><td style="font-size:12px;line-height:17px;font-family:Verdana,sans-serif;padding:4px;vertical-align:top;min-width:5em;width:auto;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);background-image:-webkit-gradient(linear,0% 0%,0% 100%,from(rgb(248,248,248)),to(rgb(255,255,255)))">
skytap</td><td style="font-size:12px;line-height:17px;font-family:Verdana,sans-serif;padding:4px;vertical-align:top;min-width:5em;width:auto;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);background-image:-webkit-gradient(linear,0% 0%,0% 100%,from(rgb(248,248,248)),to(rgb(255,255,255)))">
all</td><td style="font-size:12px;line-height:17px;font-family:Verdana,sans-serif;padding:4px;vertical-align:top;min-width:5em;width:auto;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);background-image:-webkit-gradient(linear,0% 0%,0% 100%,from(rgb(248,248,248)),to(rgb(255,255,255)))">
<table class="" style="border-collapse:collapse"><tbody><tr><th style="font-weight:normal;color:black;padding:0px 2px 2px;vertical-align:top;min-width:5em;width:auto;border:none;text-align:right">federation-upstream-set:</th>
<td style="font-family:Verdana,sans-serif;padding:0px 2px 2px;vertical-align:top;min-width:5em;width:auto;border:none"><acronym class="" title="string" style="background-image:none;color:inherit;padding:0px;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;border-style:none none dotted;border-bottom-width:1px;border-bottom-color:rgb(221,221,221)">all</acronym></td>
</tr><tr><th style="font-weight:normal;color:black;padding:0px 2px 2px;vertical-align:top;min-width:5em;width:auto;border:none;text-align:right">ha-mode:</th><td style="font-family:Verdana,sans-serif;padding:0px 2px 2px;vertical-align:top;min-width:5em;width:auto;border:none">
<acronym class="" title="string" style="background-image:none;color:inherit;padding:0px;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;border-style:none none dotted;border-bottom-width:1px;border-bottom-color:rgb(221,221,221)">all</acronym></td>
</tr></tbody></table></td><td style="font-size:12px;line-height:17px;font-family:Verdana,sans-serif;padding:4px;vertical-align:top;min-width:5em;width:auto;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);background-image:-webkit-gradient(linear,0% 0%,0% 100%,from(rgb(248,248,248)),to(rgb(255,255,255)))">
0</td></tr></tbody></table></div><div><br></div><div><br></div><div>And her are the snippets of python code I use to set up federation:</div>
<div><br></div><div><div>rabbitmq_invoke_http_api(broker_host,</div><div>                                      'PUT',</div><div>                                      '/api/parameters/federation-upstream/%%2f/upstream-%s' % (quote_plus(federated_broker)),</div>

<div>                                      '{"value":{"uri":"amqp://%(username)s:%(password)s@%(host)s:%(port)s"}}' % (federated_settings))</div><div><br></div><div>then,</div><div><br>
</div><div><div>rabbitmq_invoke_http_api(broker_host,</div><div>                                      'PUT',</div><div>                                      '/api/policies/%2f/skytap-federation',</div><div>
                                      '{"pattern":"skytap", "definition":{"federation-upstream-set":"all","ha-mode":"all"}}')</div></div>
</div><div><br></div><div><br></div><div><br></div><div>Thanks again,</div><div><br></div><div>Matt</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 10:21 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt.<br>
<br>
Federated exchanges declare queues for internal use. These are the queues with names beginning "federation: " which you have probably already seen.<br>
<br>
It looks like in your case those internal queues are themselves becoming federated. This is unlikely to be a useful thing.<br>
<br>
You should review your federation policies and make sure those queues are not included in them. If you don't intend to federate queues at all then the easiest way is to set the federation policy to only apply to exchanges.<br>

<br>
I'll also file a bug to prevent those queues from ever federating, regardless of policy...<br>
<br>
Cheers, Simon<div class="im"><br>
<br>
On 13/01/2014 18:08, Matt Pietrek wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
We have a bi-directional federation setup between three nodes like this<br>
on RabbitMQ 3.2.2:<br>
<br>
mq_integ/sea <===> mq_integ <===> mq_integ/tuk<br>
<br>
<br>
All three nodes use a "skytap" exchange and the mq_integ/sea<br></div>
and mq_integ/tuk are *_not_* federated with each other<br>
<br>
Here's what's interesting. In the *mq_integ/sea* broker, the "Federation<div class="im"><br>
Upstreams" page is what I'd expect it to be, that is, a connection to<br>
mq_integ:<br>
Name    URI     Expiry  Message TTL     Max Hops        Prefetch Count  Reconnect Delay<br>
Ack mode        Trust User-ID<br>
upstream-integ<br></div>
<<a href="http://tuk5r1mq1.mgt.integ.skytap.com:15672/#/federation-upstreams/%2F/upstream-integ" target="_blank">http://tuk5r1mq1.mgt.integ.<u></u>skytap.com:15672/#/federation-<u></u>upstreams/%2F/upstream-integ</a>><div class="im">
<br>
amqp://foo:bar@sea_m2:5672                                              ?       ?<br>
<br>
<br></div>
However, in the "Federation Status" page for *mq_integ/sea* looks<div class="im"><br>
strange (see below). In particular, I see four entries, whereas in<br>
RabbitMQ 3.0.2 I only saw one line.<br>
<br>
In addition, the third entry references the mq_integ/tuk broker, even<br>
though I haven't configured mq_integ/sea to know anything about<br>
mq_integ/tuk:<br>
<br>
<br>
Connection      URI     Exchange / Queue        Node    State   Inbound message rate    Last<br>
changed<br></div>
upstream-integ  amqp://sea_m2:5672      federation: skytap -> mq_integ_queue<div class="im"><br>
rabbit@sea_r2   <br>
running<br>
                2014-01-11 1:35:28<br>
upstream-integ  amqp://sea5_m2:5672     federation: skytap -><br></div>
mq_integ/sea_queue      rabbit@sea_r2   <br><div class="im">
running<br>
                2014-01-11 1:35:28<br>
upstream-integ  amqp://sea_m2:5672      federation: skytap -><br></div>
mq_integ/tuk_queue      rabbit@sea_r2   <br><div class="im">
running<br>
                2014-01-11 1:35:29<br></div>
upstream-integ  amqp://sea_m2:5672      skytap_exchange         rabbit@sea_r2   <br><div class="im">
running<br>
        0.00/s  2014-01-11 1:35:29<br>
<br>
<br>
Is this what you'd expect to see? Am I not understanding something?<br>
<br>
Thanks,<br>
<br>
Matt<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>