[rabbitmq-discuss] newbie rabbitMQ clustering question
Tim Watson
watson.timothy at gmail.com
Tue Nov 6 10:26:01 GMT 2012
Lol yeah: check out the last section of http://www.rabbitmq.com/ha.html. :)
Sent from my iPhone.
On 5 Nov 2012, at 21:29, Scott Stone <Scott.Stone at servicenow.com> wrote:
> well fortunately none of this is in production use yet, so I can just blow away everything and start it over from scorched-earth. After I modify the mcollective code. Any ideas what parameters I would need to change in the connector to turn on the HA flags? or is there an "FM" that I can go "RT" ? :)
>
> Scott M. Stone, Sr. Systems Engineer | ServiceNow | Office 425-629-2803 | Mobile 408-857-2973 | www.service-now.com
> Transform IT
>
> From: Tim Watson <watson.timothy at gmail.com>
> Reply-To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com>
> Date: Fri, 2 Nov 2012 01:44:34 +0000
> To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com>
> Cc: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com>
> Subject: Re: [rabbitmq-discuss] newbie rabbitMQ clustering question
> Resent-From: "scott.stone" <scott.stone at servicenow.com>
>
> Hi
>
> Sent from my iPhone.
>
> On 1 Nov 2012, at 18:39, Scott Stone <Scott.Stone at servicenow.com> wrote:
>
>> yes, sorry, clustered, with both nodes as disc nodes:
>>
>> [rabbit01.sea1:/root]# rabbitmqctl cluster_status
>> Cluster status of node rabbit at rabbit01 ...
>> [{nodes,[{disc,[rabbit at rabbit02,rabbit at rabbit01]}]},
>> {running_nodes,[rabbit at rabbit02,rabbit at rabbit01]}]
>> ...done.
>>
>> [rabbit02.sea1:/root]# rabbitmqctl cluster_status
>> Cluster status of node rabbit at rabbit02 ...
>> [{nodes,[{disc,[rabbit at rabbit02,rabbit at rabbit01]}]},
>> {running_nodes,[rabbit at rabbit01,rabbit at rabbit02]}]
>> ...done.
>>
>> 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?
>
> 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.
>
> The forthcoming 3.0 release will fix this foible as you'll be able to change queues to ha via policy controls at runtime.
>
>> I suppose I *can* modify mcollective to do this, but I was hoping I didn't have to. Any pointers on how you would do that from, say, a ruby application? :)
>>
>
> 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.
>
>> I appreciate everyone's help with this. This same question has been asked a couple of times on the mcollective forums, to which 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.
>>
>> Scott M. Stone, Sr. Systems Engineer | ServiceNow | Office 425-629-2803 | Mobile 408-857-2973 | www.service-now.com
>> Transform IT
>>
>> From: Tim Watson <watson.timothy at gmail.com>
>> Reply-To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com>
>> Date: Thu, 1 Nov 2012 10:00:25 +0000
>> To: Discussions about RabbitMQ <rabbitmq-discuss at lists.rabbitmq.com>
>> Cc: "rabbitmq-discuss at lists.rabbitmq.com" <rabbitmq-discuss at lists.rabbitmq.com>
>> Subject: Re: [rabbitmq-discuss] newbie rabbitMQ clustering question
>> Resent-From: "scott.stone" <scott.stone at servicenow.com>
>>
>> Hi Scott,
>>
>> Sent from my iPhone.
>>
>> On 1 Nov 2012, at 01:57, Scott Stone <Scott.Stone at servicenow.com> wrote:
>>
>>>
>>> If I stop rabbit02, no problem, everything still works.
>>>
>>> If I stop rabbit01, everything breaks. rabbitmqctl list_queues -p /mcollective shows almost nothing - the main mcollective queue and almost every child just magically disappears.
>>>
>>> As I said, I'm kind of new to this; what is going on here? Is it because mcollective isn't creating the queues as 'mirrored' and rabbit01 is elected as the master? or is something else going on? If my assumption is correct, is there anything I can do about this?
>>
>> You haven't said what your setup is. Are the nodes clustered? Are the queues declared as HA?
>>
>>>
>>> Scott M. Stone, Sr. Systems Engineer | ServiceNow | Office 425-629-2803 | Mobile 408-857-2973 | www.service-now.com
>>> Transform IT
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> _______________________________________________ rabbitmq-discuss mailing list rabbitmq-discuss at lists.rabbitmq.com https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________ rabbitmq-discuss mailing list rabbitmq-discuss at lists.rabbitmq.com https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121106/7996e296/attachment.htm>
More information about the rabbitmq-discuss
mailing list