<html><head></head><body bgcolor="#FFFFFF"><div>Hi<br><br>Sent from my iPhone.</div><div><br>On 1 Nov 2012, at 18:39, Scott Stone &lt;<a href="mailto:Scott.Stone@servicenow.com">Scott.Stone@servicenow.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">


<div>
<div>
<div>yes, sorry, clustered, with both nodes as disc nodes:</div>
<div><br>
</div>
<div>
<div><span style="font-family: Courier; ">[rabbit01.sea1:/root]# rabbitmqctl cluster_status</span></div>
<div><span style="font-family: Courier; ">Cluster status of node rabbit@rabbit01 ...</span></div>
<div><span style="font-family: Courier; ">[{nodes,[{disc,[rabbit@rabbit02,rabbit@rabbit01]}]},</span></div>
<div><span style="font-family: Courier; ">&nbsp;{running_nodes,[rabbit@rabbit02,rabbit@rabbit01]}]</span></div>
<div><span style="font-family: Courier; ">...done.</span></div>
</div>
<div><span style="font-family: Courier; "><br>
</span></div>
<div>
<div><span style="font-family: Courier; ">[rabbit02.sea1:/root]# rabbitmqctl cluster_status</span></div>
<div><span style="font-family: Courier; ">Cluster status of node rabbit@rabbit02 ...</span></div>
<div><span style="font-family: Courier; ">[{nodes,[{disc,[rabbit@rabbit02,rabbit@rabbit01]}]},</span></div>
<div><span style="font-family: Courier; ">&nbsp;{running_nodes,[rabbit@rabbit01,rabbit@rabbit02]}]</span></div>
<div><span style="font-family: Courier; ">...done.</span></div>
</div>
<div>
<div>
<div><b><br>
</b></div>
<div>I think your question of "are the queues declared as HA" might be the key to this, though - from what I understand, the application itself (in this case, mcollective) would have to declare that at the time the queue is created, yes?</div></div></div></div></div></div></blockquote><div><br></div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">In the current version of rabbit, yes that's true. And if you declare an existing queue with different parameters, you'll get an error. For production, you'll needed to set up another queue to drain all the messages into, then delete the old queue and redeclare it is ha, then push the messages back in.</span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">The forthcoming 3.0 release will fix this foible as you'll be able to change queues to ha via policy controls at runtime.<br></span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span><blockquote type="cite"><div><div><div><div><div><div> &nbsp;I suppose I *can*
 modify mcollective to do this, but I was hoping I didn't have to. &nbsp;Any pointers on how you would do that from, say, a ruby application? :)</div>
<div><br></div></div></div></div></div></div></blockquote><div><br></div><div>Like I said above, make a temporary durable queue and drain all the 'to be ha' queue's messages into it (marking them as persistent and using publisher confirms to ensure they're written to disk) then delete and redeclare the other queue as ha before republishing the messages. Not sure hat impact this will have on your application/system logic though.</div><br><blockquote type="cite"><div><div><div><div><div><div>
</div>
<div>I appreciate everyone's help with this. &nbsp;This same question has been asked a couple of times on the mcollective forums, to which &nbsp;R.I.Pienaar replies simply, "Use ActiveMQ," and that's not an option for me… so I thought I'd have more success asking the
 question here.</div>
<div><b><br></b></div></div></div></div></div></div></blockquote><blockquote type="cite"><div><div><div><div><div><div><b>
</b></div>
<div><b>Scott M. Stone,</b>&nbsp;Sr. Systems Engineer&nbsp;| ServiceNow | Office 425-629-2803 | Mobile 408-857-2973 | <a href="http://www.service-now.com">www.service-now.com</a></div>
<div>Transform IT&nbsp;</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Tim Watson &lt;<a href="mailto:watson.timothy@gmail.com">watson.timothy@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Discussions about RabbitMQ &lt;<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thu, 1 Nov 2012 10:00:25 +0000<br>
<span style="font-weight:bold">To: </span>Discussions about RabbitMQ &lt;<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>&gt;<br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>" &lt;<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [rabbitmq-discuss] newbie rabbitMQ clustering question<br>
<span style="font-weight:bold">Resent-From: </span>"scott.stone" &lt;<a href="mailto:scott.stone@servicenow.com">scott.stone@servicenow.com</a>&gt;<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF">
<div>Hi Scott,<br>
<br>
Sent from my iPhone.</div>
<div><br>
On 1 Nov 2012, at 01:57, Scott Stone &lt;<a href="mailto:Scott.Stone@servicenow.com">Scott.Stone@servicenow.com</a>&gt; wrote:<br>
<br>
</div>
<div><span></span></div>
<blockquote type="cite">
<div>
<div>
<div>
<div>
<div><font class="Apple-style-span" face="Courier"><br>
</font></div>
<div style="font-family: Calibri; ">If I stop rabbit02, no problem, everything still works.</div>
<div style="font-family: Calibri; "><br>
</div>
<div style="font-family: Calibri; ">If I stop rabbit01, everything breaks. &nbsp;rabbitmqctl list_queues -p /mcollective shows almost nothing - the main mcollective queue and almost every child just magically disappears.</div>
<div style="font-family: Calibri; "><br>
</div>
<div style="font-family: Calibri; ">As I said, I'm kind of new to this; what is going on here? &nbsp;Is it because mcollective isn't creating the queues as 'mirrored' and rabbit01 is elected as the master? &nbsp;or is something else going on? &nbsp;If my assumption is correct,
 is there anything I can do about this?</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>You haven't said what your setup is. Are the nodes clustered? Are the queues declared as HA?</div>
<br>
<blockquote type="cite">
<div>
<div>
<div>
<div></div>
<div>
<div>
<div><b><br>
</b></div>
<div><b>Scott M. Stone,</b>&nbsp;Sr. Systems Engineer&nbsp;| ServiceNow | Office 425-629-2803 | Mobile 408-857-2973 |
<a href="http://www.service-now.com">www.service-now.com</a></div>
<div>Transform IT&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>rabbitmq-discuss mailing list</span><br>
<span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br>
<span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br>
</div>
</blockquote>
</div>
</div>
_______________________________________________ rabbitmq-discuss mailing list <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">
rabbitmq-discuss@lists.rabbitmq.com</a> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span>


</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br><span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></div></div></body></html>