<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks much Simon, <div><br></div><div>You are saying I only need to declare one setting in E? </div><div>ie. </div><div>in E:<br>rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://A">amqp://A</a>", "expires":3600}'<br>rabbitmqctl set_policy...<br>....<br><br></div><div>Now, it comes that if A which is my upstream fails, what would happen? [A, B, C] is running with HAQ (active/active).</div><div>Do I just lost federation?</div><div>If not, how does E handle this in case of </div><div>1) A is a master</div><div>2) A is a slave </div><div>?</div><div><br></div><div>[E, F] also runs HAQ cluster, what if E dies, how to config F continue to perform as down-stream nodes as HAQ suppose to do ? Can we achieve this?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div>Yican</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Jan 29, 2013, at 11:27 AM, Simon MacMullen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>You don't need to declare the same parameters and policies in E and F, <br>they're cluster-wide.<br><br>You should note that if you specify nodes from the same cluster as <br>separate upstreams then the federated exchange will attempt to consume <br>from them all simultaneously - this might break message ordering. So you <br>would normally add each cluster once.<br><br>At the moment there's no way to say "all these upstreams are in the same <br>cluster, just ensure you use one of them" although we hope to add this <br>in a future release.<br><br>Cheers, Simon<br><br>On 28/01/13 21:36, Cao, Yican - 0551 - MITLL wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In federation document, it says:<br></blockquote><blockquote type="cite">"When using a federation in a cluster, all the nodes of the cluster must have the federation plugin installed. ..."<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have 2 clustered HAQ nodes [A, B, C] and [E, F].<br></blockquote><blockquote type="cite">[A, B, C] is clustered and so does [E, F].<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do I have to:<br></blockquote><blockquote type="cite">in E:<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://A">amqp://A</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://B">amqp://B</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://C">amqp://C</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and do the same in F:<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://A">amqp://A</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://B">amqp://B</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite">rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"<a href="amqp://C">amqp://C</a>", "expires":3600}'<br></blockquote><blockquote type="cite">rabbitmqctl set_policy...<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I want to use Pair of federated exchanges in your example topologies,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Shall I setup same in A, B and C?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Yican Cao<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">rabbitmq-discuss mailing list<br></blockquote><blockquote type="cite"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br></blockquote><blockquote type="cite"><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></blockquote><blockquote type="cite"><br></blockquote><br><br>-- <br>Simon MacMullen<br>RabbitMQ, VMware<br></div></blockquote></div><br></div></body></html>