Hi,<div><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I&#39;m running RabbitMQ 3.0.1 on two cluster of Linux servers.<br>
<br>
Let&#39;s name the two clusters :<br>
- downstream cluster running a federation to get messages from upstream<br>
cluster<br>
- upstream cluster<br>
<br>
The documentation explains well if a node fails, links to upstream<br>
exchanges will be recreated on a surviving node.<br>
There is no problem for the &quot;client&quot; side of the federation.<br>
<br>
I cannot use a load balancer if fail over mode to have high avaibility<br>
of the upstream cluster.<br>
<br>
What would be the recommended solution in this case ?<br>
<br>
</blockquote>
<br></div>
I&#39;m struggling to understand what the question is here Vladislav. The &#39;failover&#39; that is being described in the federation plugin documentation is applied when using federation in a cluster, so if the node on which the downstream link is running dies, then another downstream node will take over (i.e., re-establish the links). There is a choice between clustering (i.e., ha/mirror queues) and federation - you do not get &#39;ha of the upstream cluster&#39; in the same sense that mirror queues in a cluster are &#39;ha&#39;. You have federated exchanges which copy data using AMQP (with ACKs enabled and some other guarantees) and the ability to try and re-establish links and so. Federation however, provides only the Availability and Partition tolerance parts of the CAP theorem, not the same Consistency guarantees as clustering/ha.</blockquote>
<div><br></div><div>I did get that, no problem for the downstream side who hold the federation, it works well.</div><div>Question is really : I have two nodes in the &quot;remote&quot; or upstream cluster, I want to get messages of one exchange in a reliable way and the network stream has to be establish by the downstream cluster ; how can I be tolerant to failure of one remote node ? That is what I have called high avaibility on the upstream cluster, but only regarding the transmission of the exchange messages to the downstream cluster.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have tried to set up two upstream and group them in a upstream set,<br>
</blockquote>
<br></div>
Can you post the configuration you&#39;re using to do that?</blockquote><div><br></div><div>The configuration has been done using the HTTP API.</div><div><br></div><div><div>curl -i -w %{http_code} -k -u &quot;XXX:XXXX&quot; -XPUT -H &quot;content-type:application/json&quot; -d &#39;{</div>
<div>&quot;pattern&quot;:&quot;downstream-exchange&quot;,&quot;definition&quot;:{&quot;federation-upstream-set&quot;:&quot;upstreamset-test&quot;}</div><div>}&#39; <a href="https://localhost:15671/api/policies/%2f/federate-me">https://localhost:15671/api/policies/%2f/federate-me</a></div>
</div><div><br></div><div><div>curl -i -w %{http_code} -k -u &quot;XXX:XXXX&quot; -XPUT -H &quot;content-type:application/json&quot; -d &#39;{</div><div>&quot;name&quot;:&quot;local-nodename&quot;,&quot;value&quot;:&quot;federation-local&quot;</div>
<div>}&#39; <a href="https://localhost:15671/api/parameters/federation/%2f/local-nodename">https://localhost:15671/api/parameters/federation/%2f/local-nodename</a></div></div><div><br></div><div><div>curl -i -w %{http_code} -u &quot;XXX:XXXX&quot; -k -s -XPUT -H &quot;content-type:application/json&quot; -d &quot;{</div>
<div>        &quot;value&quot;:{</div><div>            &quot;uri&quot;:\&quot;amqps://XXX:XXX@remote-server1?certfile=XXXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false&quot;</div><div>        }</div>
<div>    }&quot; <a href="https://localhost:15671/api/parameters/federation-upstream/%2f/upstream1">https://localhost:15671/api/parameters/federation-upstream/%2f/upstream1</a></div></div><div><br></div><div><div>curl -i -w %{http_code} -u &quot;XXX:XXXX&quot; -k -s -XPUT -H &quot;content-type:application/json&quot; -d &quot;{</div>
<div>        &quot;value&quot;:{</div><div>            &quot;uri&quot;:\&quot;amqps://XXX:XXX@remote-server2?certfile=XXXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false&quot;</div><div>        }</div>
<div>    }&quot; <a href="https://localhost:15671/api/parameters/federation-upstream/%2f/upstream2">https://localhost:15671/api/parameters/federation-upstream/%2f/upstream2</a></div></div><div><br></div><div><div>curl -i -w %{http_code} -k -u &quot;XXX:XXXX&quot; -XPUT -H &quot;content-type:application/json&quot; -d &#39;{</div>
<div>&quot;value&quot;:[{&quot;upstream&quot;:&quot;upstream1&quot;,&quot;exchange&quot;:&quot;upstream-exchange&quot;},{&quot;upstream&quot;:&quot;upstream2&quot;,&quot;exchange&quot;:&quot;upstream-exchange&quot;}]</div>
<div>}&#39; <a href="https://localhost:15671/api/parameters/federation-upstream-set/%2f/upstreamset-test">https://localhost:15671/api/parameters/federation-upstream-set/%2f/upstreamset-test</a></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
but I have the following problem :<br>
- when I shut down one the node, the federation status shows the<br>
matching upstream down as expected but after having restarted the first<br>
one, if I shut down the other one, both the federation status shows both<br>
upstream down<br>
</blockquote>
<br></div>
Just to confirm: you&#39;re saying that<br>
<br>
1. you shut down one of the two upstream nodes<br>
2. that node shows up dead in the web interface<br>
3. you re-start that node<br>
4. that node shows up alive in the web interface<br>
5. you shut down the other upstream node<br>
6. both nodes show up as dead in the web interface *but*<br>
7. one of the upstream nodes *is* alive despite what the web admin says<br>
<br>
Have I understood that correctly?</blockquote><div><br></div><div>Absolutely, you can find an extract of the downstream node log (rabbit@XXXX.log) at the end of the mail.</div><div>That is not that easy to read but I think there might be an explanation in the logs.</div>
<div><br></div><div>Case 2 :</div><div><div>web admin says :</div><div>- upstream1 : running</div><div>- upstream 2 : error (econnrefused)</div></div><div>Everything is OK</div><div><br></div><div>Case 6 :</div><div>web admin says :</div>
<div>- upstream1 : error (econnrefused)</div><div>- upstream 2 : shutdown (server_initiated_code,404,&lt;&lt;&quot;NOT_FOUND ...</div><div>the upstream1 (remote-server1) has been shutdown, but not the upstream2 (remote-server2).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- so, I tried to add a ha-mode policy to all on the federated queue, it<br>
is now possible to shutdown either one or the other node,<br>
</blockquote>
<br></div>
I&#39;m not sure I understand this at all. Are you saying it was not possible to shut down one or both of the upstream nodes before? That seems different from your earlier comment.</blockquote><div><br></div><div>My bad ! It is not explained properly. When I was saying &quot;not possible to shutdown&quot;, I meant shutting down the remote node and having the proper status in the federation.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
but it seems that I&#39;m losing some messages.<br>
<br>
</blockquote>
<br></div>
When you say &#39;the federated queue&#39; do you mean the queue created in the upstream exchange&#39;s broker? Why would you want to add ha-mode policy that? The upstream queue is internal to the federation mechanism so you should be binding to the downstream exchange only. Or are you saying that you&#39;ve bound a queue to the downstream exchange and made that ha-enabled? Because in the latter case, that will make no difference to reliability: if both upstream nodes go down before messages are delivered and ack&#39;ed by the downstream for example.<br>
</blockquote><div><br></div><div>Yes, &quot;federated queue&quot; is the queue created in the upstream exchange&#39;s broker. So, yes, it does not really make sense to add a ha policy, that was just an attempt in order to investigate a little bit further.</div>
<div>And yes I did bound a ha queue to the downstream exchange, but I agree, it has nothing to do with the subject.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
I&#39;d be interested to hear how you&#39;ve set this ha-mode policy and why and also how you&#39;ve determined that there was message loss? I suspect that you have assumed expectations about the reliability of federation (in the face of node failures) that do not hold. If your messages sat in an exchange on an upstream node (or pair of exchanges/nodes, etc) and both nodes die before successfully transmitting the messages, then they will not arrive at the downstream exchange. The guarantees about message delivery for ha/mirror queues apply to nodes in *that* cluster only. The federation guarantees are different and orthogonal to ha/clustering.<br>
</blockquote><div><br></div><div>I understand, I just want to make sure that the messages will arrive at the downstream exchange, not duplicated and without loss :</div><div>- if one upstream node dies</div><div>- if there is network failure between downstream and upstream nodes</div>
<div>- if upstream nodes fail and come back again</div><div><br></div><div>Thanks.</div><div>Vlad</div><div><br></div><div><b>Extract of logs for case 2</b> :</div><div><br></div><div><div>=WARNING REPORT==== 28-Dec-2012::10:27:08 ===</div>
<div>Connection (&lt;0.14803.351&gt;) closing: received hard error {&#39;connection.close&#39;,</div><div>                                                         320,</div><div>                                                         &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;,</div>
<div>                                                         0,0} from server</div><div><br></div><div>=ERROR REPORT==== 28-Dec-2012::10:27:08 ===</div><div>** Generic server &lt;0.14803.351&gt; terminating</div><div>** Last message in was {#Ref&lt;0.0.127.4786&gt;,{error,closed}}</div>
<div>** When Server state == {state,amqp_network_connection,</div><div>                            {state,</div><div>                                {ssl_socket,#Port&lt;0.46383&gt;,</div><div>                                    {sslsocket,new_ssl,&lt;0.14806.351&gt;}},</div>
<div>                                600,&lt;0.14808.351&gt;,131072,</div><div>                                {server_initiated_close,320,</div><div>                                    &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;},</div>
<div>                                false},</div><div>                            &lt;0.14802.351&gt;,&lt;0.14805.351&gt;,</div><div>                            {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div>
<div>                                &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server2&quot;,5671,0,</div><div>                                0,0,infinity,</div><div>                                [{fail_if_no_peer_cert,false},</div>
<div>                                 {verify,verify_none},</div><div>                                 {keyfile,</div><div>                                     &quot;XXXX&quot;},</div><div>                                 {certfile,</div>
<div>                                     &quot;XXXX&quot;}],</div><div>                                [#Fun&lt;amqp_uri.7.123484526&gt;,</div><div>                                 #Fun&lt;amqp_uri.7.123484526&gt;],</div>
<div>                                [],[]},</div><div>                            0,</div><div>                            [{&lt;&lt;&quot;capabilities&quot;&gt;&gt;,table,</div><div>                              [{&lt;&lt;&quot;publisher_confirms&quot;&gt;&gt;,bool,true},</div>
<div>                               {&lt;&lt;&quot;exchange_exchange_bindings&quot;&gt;&gt;,bool,true},</div><div>                               {&lt;&lt;&quot;basic.nack&quot;&gt;&gt;,bool,true},</div><div>                               {&lt;&lt;&quot;consumer_cancel_notify&quot;&gt;&gt;,bool,true}]},</div>
<div>                             {&lt;&lt;&quot;copyright&quot;&gt;&gt;,longstr,</div><div>                              &lt;&lt;&quot;Copyright (C) 2007-2012 VMware, Inc.&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;information&quot;&gt;&gt;,longstr,</div>
<div>                              &lt;&lt;&quot;Licensed under the MPL.  See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a>&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;platform&quot;&gt;&gt;,longstr,&lt;&lt;&quot;Erlang/OTP&quot;&gt;&gt;},</div>
<div>                             {&lt;&lt;&quot;product&quot;&gt;&gt;,longstr,&lt;&lt;&quot;RabbitMQ&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;version&quot;&gt;&gt;,longstr,&lt;&lt;&quot;3.0.1&quot;&gt;&gt;}],</div>
<div>                            #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                            #Fun&lt;amqp_connection_sup.2.54430129&gt;,</div><div>                            {closing,server_initiated_close,</div>
<div>                                {&#39;connection.close&#39;,320,</div><div>                                    &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;,</div>
<div>                                    0,0},</div><div>                                none}}</div><div>** Reason for termination ==</div><div>** socket_closed_unexpectedly</div><div><br></div><div>=INFO REPORT==== 28-Dec-2012::10:27:08 ===</div>
<div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; disconnected from exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server2?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{upstream_channel_down,</div><div>    {connection_closing,</div><div>        {server_initiated_close,320,</div><div>            &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;}}}</div>
<div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:27:08 ===</div><div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server2?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{error,econnrefused}</div><div><br></div><div>==&gt; rabbit@XXXX-sasl.log &lt;==</div><div><br></div><div>=CRASH REPORT==== 28-Dec-2012::10:27:08 ===</div><div>  crasher:</div><div>    initial call: amqp_gen_connection:init/1</div>
<div>    pid: &lt;0.14803.351&gt;</div><div>    registered_name: []</div><div>    exception exit: socket_closed_unexpectedly</div><div>      in function  gen_server:terminate/6 (gen_server.erl, line 747)</div><div>    ancestors: [&lt;0.14802.351&gt;,amqp_sup,&lt;0.49.0&gt;]</div>
<div>    messages: []</div><div>    links: [&lt;0.14802.351&gt;]</div><div>    dictionary: []</div><div>    trap_exit: true</div><div>    status: running</div><div>    heap_size: 2584</div><div>    stack_size: 24</div><div>
    reductions: 1786</div><div>  neighbours:</div><div><br></div><div>=SUPERVISOR REPORT==== 28-Dec-2012::10:27:08 ===</div><div>     Supervisor: {&lt;0.14802.351&gt;,amqp_connection_sup}</div><div>     Context:    child_terminated</div>
<div>     Reason:     socket_closed_unexpectedly</div><div>     Offender:   [{pid,&lt;0.14803.351&gt;},</div><div>                  {name,connection},</div><div>                  {mfa,</div><div>                      {amqp_gen_connection,start_link,</div>
<div>                          [amqp_network_connection,</div><div>                           {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div><div>                               &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server2&quot;,5671,0,0,</div>
<div>                               0,infinity,</div><div>                               [{fail_if_no_peer_cert,false},</div><div>                                {verify,verify_none},</div><div>                                {keyfile,</div>
<div>                                    &quot;XXXX&quot;},</div><div>                                {certfile,</div><div>                                    &quot;XXXX&quot;}],</div><div>                               [#Fun&lt;amqp_uri.7.123484526&gt;,</div>
<div>                                #Fun&lt;amqp_uri.7.123484526&gt;],</div><div>                               [],[]},</div><div>                           #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                           #Fun&lt;amqp_connection_sup.2.54430129&gt;,[]]}},</div>
<div>                  {restart_type,intrinsic},</div><div>                  {shutdown,brutal_kill},</div><div>                  {child_type,worker}]</div><div><br></div><div><br></div><div>=SUPERVISOR REPORT==== 28-Dec-2012::10:27:08 ===</div>
<div>     Supervisor: {&lt;0.14802.351&gt;,amqp_connection_sup}</div><div>     Context:    shutdown</div><div>     Reason:     reached_max_restart_intensity</div><div>     Offender:   [{pid,&lt;0.14803.351&gt;},</div><div>
                  {name,connection},</div><div>                  {mfa,</div><div>                      {amqp_gen_connection,start_link,</div><div>                          [amqp_network_connection,</div><div>                           {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div>
<div>                               &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server2&quot;,5671,0,0,</div><div>                               0,infinity,</div><div>                               [{fail_if_no_peer_cert,false},</div>
<div>                                {verify,verify_none},</div><div>                                {keyfile,</div><div>                                    &quot;XXXX&quot;},</div><div>                                {certfile,</div>
<div>                                    &quot;XXXX&quot;}],</div><div>                               [#Fun&lt;amqp_uri.7.123484526&gt;,</div><div>                                #Fun&lt;amqp_uri.7.123484526&gt;],</div><div>
                               [],[]},</div><div>                           #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                           #Fun&lt;amqp_connection_sup.2.54430129&gt;,[]]}},</div><div>                  {restart_type,intrinsic},</div>
<div>                  {shutdown,brutal_kill},</div><div>                  {child_type,worker}]</div><div><br></div><div><br></div><div>==&gt; rabbit@XXXX.log &lt;==</div><div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:27:10 ===</div>
<div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server2?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{error,econnrefused}</div></div><div><br></div><div><br></div><div><b>Extract of logs for case 6</b> :</div><div><br></div><div><div>=WARNING REPORT==== 28-Dec-2012::10:16:42 ===</div><div>Connection (&lt;0.32151.341&gt;) closing: received hard error {&#39;connection.close&#39;,</div>
<div>                                                         320,</div><div>                                                         &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;,</div>
<div>                                                         0,0} from server</div><div><br></div><div>=ERROR REPORT==== 28-Dec-2012::10:16:42 ===</div><div>** Generic server &lt;0.32151.341&gt; terminating</div><div>** Last message in was {#Ref&lt;0.0.123.217100&gt;,{error,closed}}</div>
<div>** When Server state == {state,amqp_network_connection,</div><div>                            {state,</div><div>                                {ssl_socket,#Port&lt;0.45661&gt;,</div><div>                                    {sslsocket,new_ssl,&lt;0.32161.341&gt;}},</div>
<div>                                600,&lt;0.32170.341&gt;,131072,</div><div>                                {server_initiated_close,320,</div><div>                                    &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;},</div>
<div>                                false},</div><div>                            &lt;0.32149.341&gt;,&lt;0.32154.341&gt;,</div><div>                            {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div>
<div>                                &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server1&quot;,5671,0,</div><div>                                0,0,infinity,</div><div>                                [{fail_if_no_peer_cert,false},</div>
<div>                                 {verify,verify_none},</div><div>                                 {keyfile,</div><div>                                     &quot;XXXX&quot;},</div><div>                                 {certfile,</div>
<div>                                     &quot;XXXX&quot;}],</div><div>                                [#Fun&lt;amqp_uri.7.123484526&gt;,</div><div>                                 #Fun&lt;amqp_uri.7.123484526&gt;],</div>
<div>                                [],[]},</div><div>                            0,</div><div>                            [{&lt;&lt;&quot;capabilities&quot;&gt;&gt;,table,</div><div>                              [{&lt;&lt;&quot;publisher_confirms&quot;&gt;&gt;,bool,true},</div>
<div>                               {&lt;&lt;&quot;exchange_exchange_bindings&quot;&gt;&gt;,bool,true},</div><div>                               {&lt;&lt;&quot;basic.nack&quot;&gt;&gt;,bool,true},</div><div>                               {&lt;&lt;&quot;consumer_cancel_notify&quot;&gt;&gt;,bool,true}]},</div>
<div>                             {&lt;&lt;&quot;copyright&quot;&gt;&gt;,longstr,</div><div>                              &lt;&lt;&quot;Copyright (C) 2007-2012 VMware, Inc.&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;information&quot;&gt;&gt;,longstr,</div>
<div>                              &lt;&lt;&quot;Licensed under the MPL.  See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a>&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;platform&quot;&gt;&gt;,longstr,&lt;&lt;&quot;Erlang/OTP&quot;&gt;&gt;},</div>
<div>                             {&lt;&lt;&quot;product&quot;&gt;&gt;,longstr,&lt;&lt;&quot;RabbitMQ&quot;&gt;&gt;},</div><div>                             {&lt;&lt;&quot;version&quot;&gt;&gt;,longstr,&lt;&lt;&quot;3.0.1&quot;&gt;&gt;}],</div>
<div>                            #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                            #Fun&lt;amqp_connection_sup.2.54430129&gt;,</div><div>                            {closing,server_initiated_close,</div>
<div>                                {&#39;connection.close&#39;,320,</div><div>                                    &lt;&lt;&quot;CONNECTION_FORCED - broker forced connection closure with reason &#39;shutdown&#39;&quot;&gt;&gt;,</div>
<div>                                    0,0},</div><div>                                none}}</div><div>** Reason for termination ==</div><div>** socket_closed_unexpectedly</div><div><br></div><div>=ERROR REPORT==== 28-Dec-2012::10:16:42 ===</div>
<div>** Generic server &lt;0.32126.341&gt; terminating</div><div>** Last message in was {&#39;DOWN&#39;,#Ref&lt;0.0.123.217187&gt;,process,&lt;0.32193.341&gt;,</div><div>                               shutdown}</div><div>
** When Server state == {state,</div><div>                         {upstream,</div><div>                          {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div><div>                           &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server1&quot;,undefined,0,</div>
<div>                           0,0,infinity,</div><div>                           [{fail_if_no_peer_cert,false},</div><div>                            {verify,verify_none},</div><div>                            {keyfile,</div>
<div>                             &quot;XXXX&quot;},</div><div>                            {certfile,</div><div>                             &quot;XXXX&quot;}],</div><div>                           [#Fun&lt;amqp_uri.7.123484526&gt;,</div>
<div>                            #Fun&lt;amqp_uri.7.123484526&gt;],</div><div>                           [],[]},</div><div>                          &lt;&lt;&quot;amqps://XXXX:XXXX@remote-server1?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false&quot;&gt;&gt;,</div>
<div>                          {exchange,</div><div>                           {resource,&lt;&lt;&quot;/&quot;&gt;&gt;,exchange,&lt;&lt;&quot;upstream-exchange&quot;&gt;&gt;},</div><div>                           direct,true,false,false,[],undefined,</div>
<div>                           [{vhost,&lt;&lt;&quot;/&quot;&gt;&gt;},</div><div>                            {name,&lt;&lt;&quot;federate-me&quot;&gt;&gt;},</div><div>                            {pattern,&lt;&lt;&quot;downstream-exchange&quot;&gt;&gt;},</div>
<div>                            {definition,</div><div>                             [{&lt;&lt;&quot;federation-upstream-set&quot;&gt;&gt;,</div><div>                               &lt;&lt;&quot;upstreamset-test&quot;&gt;&gt;}]},</div>
<div>                            {priority,0}]},</div><div>                          1000,1,1,none,none,false,none,&lt;&lt;&quot;upstream1&quot;&gt;&gt;},</div><div>                         &lt;0.32151.341&gt;,&lt;0.32193.341&gt;,</div>
<div>                         &lt;&lt;&quot;amq.ctag-iCWCgBnLBU7S3cWTi06V1A&quot;&gt;&gt;,</div><div>                         &lt;&lt;&quot;federation: upstream-exchange -&gt; federation-local:downstream-exchange&quot;&gt;&gt;,</div>
<div>                         &lt;&lt;&quot;federation: upstream-exchange -&gt; federation-local:downstream-exchange B&quot;&gt;&gt;,</div><div>                         {0,nil},</div><div>                         1,</div>
<div>                         {dict,1,16,16,8,80,48,</div><div>                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},</div><div>                          {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],</div>
<div>                            [[{&lt;&lt;&quot;test&quot;&gt;&gt;,[]}|</div><div>                              {set,1,16,16,8,80,48,</div><div>                               {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],</div>
<div>                                []},</div><div>                               {{[],[],[],[],</div><div>                                 [{resource,&lt;&lt;&quot;/&quot;&gt;&gt;,queue,</div><div>                                   &lt;&lt;&quot;downstream-queue&quot;&gt;&gt;}],</div>
<div>                                 [],[],[],[],[],[],[],[],[],[],[]}}}]]}}},</div><div>                         &lt;0.32129.341&gt;,&lt;0.32141.341&gt;,</div><div>                         {resource,&lt;&lt;&quot;/&quot;&gt;&gt;,exchange,&lt;&lt;&quot;downstream-exchange&quot;&gt;&gt;},</div>
<div>                         {0,nil}}</div><div>** Reason for termination ==</div><div>** {upstream_channel_down,shutdown}</div><div><br></div><div>=INFO REPORT==== 28-Dec-2012::10:16:42 ===</div><div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; received &#39;basic.cancel&#39;</div>
<div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:16:42 ===</div><div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server1?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{error,econnrefused}</div><div><br></div><div>==&gt; rabbit@XXXX-sasl.log &lt;==</div><div><br></div><div>=CRASH REPORT==== 28-Dec-2012::10:16:42 ===</div><div>  crasher:</div><div>    initial call: amqp_gen_connection:init/1</div>
<div>    pid: &lt;0.32151.341&gt;</div><div>    registered_name: []</div><div>    exception exit: socket_closed_unexpectedly</div><div>      in function  gen_server:terminate/6 (gen_server.erl, line 747)</div><div>    ancestors: [&lt;0.32149.341&gt;,amqp_sup,&lt;0.49.0&gt;]</div>
<div>    messages: [socket_closed]</div><div>    links: [&lt;0.32149.341&gt;]</div><div>    dictionary: []</div><div>    trap_exit: true</div><div>    status: running</div><div>    heap_size: 2584</div><div>    stack_size: 24</div>
<div>    reductions: 1794</div><div>  neighbours:</div><div><br></div><div>=SUPERVISOR REPORT==== 28-Dec-2012::10:16:42 ===</div><div>     Supervisor: {&lt;0.32149.341&gt;,amqp_connection_sup}</div><div>     Context:    child_terminated</div>
<div>     Reason:     socket_closed_unexpectedly</div><div>     Offender:   [{pid,&lt;0.32151.341&gt;},</div><div>                  {name,connection},</div><div>                  {mfa,</div><div>                      {amqp_gen_connection,start_link,</div>
<div>                          [amqp_network_connection,</div><div>                           {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div><div>                               &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server1&quot;,5671,0,0,</div>
<div>                               0,infinity,</div><div>                               [{fail_if_no_peer_cert,false},</div><div>                                {verify,verify_none},</div><div>                                {keyfile,</div>
<div>                                    &quot;XXXX&quot;},</div><div>                                {certfile,</div><div>                                    &quot;XXXX&quot;}],</div><div>                               [#Fun&lt;amqp_uri.7.123484526&gt;,</div>
<div>                                #Fun&lt;amqp_uri.7.123484526&gt;],</div><div>                               [],[]},</div><div>                           #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                           #Fun&lt;amqp_connection_sup.2.54430129&gt;,[]]}},</div>
<div>                  {restart_type,intrinsic},</div><div>                  {shutdown,brutal_kill},</div><div>                  {child_type,worker}]</div><div><br></div><div><br></div><div>=SUPERVISOR REPORT==== 28-Dec-2012::10:16:42 ===</div>
<div>     Supervisor: {&lt;0.32149.341&gt;,amqp_connection_sup}</div><div>     Context:    shutdown</div><div>     Reason:     reached_max_restart_intensity</div><div>     Offender:   [{pid,&lt;0.32151.341&gt;},</div><div>
                  {name,connection},</div><div>                  {mfa,</div><div>                      {amqp_gen_connection,start_link,</div><div>                          [amqp_network_connection,</div><div>                           {amqp_params_network,&lt;&lt;&quot;XXXX&quot;&gt;&gt;,</div>
<div>                               &lt;&lt;&quot;XXXX&quot;&gt;&gt;,&lt;&lt;&quot;/&quot;&gt;&gt;,&quot;remote-server1&quot;,5671,0,0,</div><div>                               0,infinity,</div><div>                               [{fail_if_no_peer_cert,false},</div>
<div>                                {verify,verify_none},</div><div>                                {keyfile,</div><div>                                    &quot;XXXX&quot;},</div><div>                                {certfile,</div>
<div>                                    &quot;XXXX&quot;}],</div><div>                               [#Fun&lt;amqp_uri.7.123484526&gt;,</div><div>                                #Fun&lt;amqp_uri.7.123484526&gt;],</div><div>
                               [],[]},</div><div>                           #Fun&lt;amqp_connection_sup.0.39273983&gt;,</div><div>                           #Fun&lt;amqp_connection_sup.2.54430129&gt;,[]]}},</div><div>                  {restart_type,intrinsic},</div>
<div>                  {shutdown,brutal_kill},</div><div>                  {child_type,worker}]</div><div><br></div><div><br></div><div>=CRASH REPORT==== 28-Dec-2012::10:16:42 ===</div><div>  crasher:</div><div>    initial call: gen:init_it/6</div>
<div>    pid: &lt;0.32126.341&gt;</div><div>    registered_name: []</div><div>    exception exit: {upstream_channel_down,shutdown}</div><div>      in function  gen_server2:terminate/3</div><div>    ancestors: [&lt;0.32125.341&gt;,&lt;0.218.0&gt;,rabbit_federation_link_sup_sup,</div>
<div>                  rabbit_federation_sup,rabbit_sup,&lt;0.165.0&gt;]</div><div>    messages: [{&#39;DOWN&#39;,#Ref&lt;0.0.123.217038&gt;,process,&lt;0.32141.341&gt;,normal}]</div><div>    links: [&lt;0.32125.341&gt;]</div>
<div>    dictionary: []</div><div>    trap_exit: true</div><div>    status: running</div><div>    heap_size: 1597</div><div>    stack_size: 24</div><div>    reductions: 2291192</div><div>  neighbours:</div><div><br></div>
<div>==&gt; rabbit@XXXX.log &lt;==</div><div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:16:44 ===</div><div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server1?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{error,econnrefused}</div><div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:16:46 ===</div><div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server2?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{{shutdown,{server_initiated_close,404,</div><div>                                   &lt;&lt;&quot;NOT_FOUND - home node &#39;rabbit@remote-server1&#39; of durable queue &#39;federation: upstream-exchange -&gt; federation-local:downstream-exchange&#39; in vhost &#39;/&#39; is down or inaccessible&quot;&gt;&gt;}},</div>
<div> {gen_server,call,</div><div>             [&lt;0.7847.351&gt;,</div><div>              {call,{&#39;queue.declare&#39;,0,</div><div>                                     &lt;&lt;&quot;federation: upstream-exchange -&gt; federation-local:downstream-exchange&quot;&gt;&gt;,</div>
<div>                                     false,true,false,false,false,[]},</div><div>                    none,&lt;0.7815.351&gt;},</div><div>              infinity]}}</div><div><br></div><div>=WARNING REPORT==== 28-Dec-2012::10:16:48 ===</div>
<div>Federation exchange &#39;downstream-exchange&#39; in vhost &#39;/&#39; did not connect to exchange &#39;upstream-exchange&#39; in vhost &#39;/&#39; on amqps://XXXX:XXXX@remote-server1?certfile=XXXX&amp;keyfile=XXXX&amp;verify=verify_none&amp;fail_if_no_peer_cert=false</div>
<div>{error,econnrefused}</div></div><div><br></div></div></div></div>