Hello, I try to use HA feature with pika python client API>

But it will not success when I tried to use "nodes" instead of "all" as the
arguments in "x-ha-policy".

The code is like the following:
=======================================
channel.queue_declare(queue="test_topic", durable=True,
exclusive=False, auto_delete=False,
arguments={'x-ha-policy': 'nodes',
'x-ha-policy-params':
['rabbit at test1', 'rabbit at test2']},
callback=on_queue_declared)

=======================================

How do I do if I want to use "x-ha-policy" with "nodes"?

It works when I set "x-ha-policy" to "all" and I didn't use
"x-ha-policy-params" at all.

Thanks

Shen, Yu-Teh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111015/6f838b72/attachment.htm>

Search Discussions

  • Matthew Sackman at Oct 15, 2011 at 11:51 am

    On Sat, Oct 15, 2011 at 02:22:25PM +0800, Yu-Teh Shen wrote:
    But it will not success when I tried to use "nodes" instead of "all" as the
    arguments in "x-ha-policy".
    Yes, apparently that's broken in 2.6.0 and 2.6.1. There'll be a fix in
    the next release. Until then, it's "all" only, I'm afraid, unless you
    are comfortable compiling the broker from source.

    Matthew
  • Matthias Radestock at Oct 15, 2011 at 12:00 pm

    On 15/10/11 12:51, Matthew Sackman wrote:
    On Sat, Oct 15, 2011 at 02:22:25PM +0800, Yu-Teh Shen wrote:
    But it will not success when I tried to use "nodes" instead of "all" as the
    arguments in "x-ha-policy".
    Yes, apparently that's broken in 2.6.0 and 2.6.1.
    See
    http://old.nabble.com/HA-queue-seems-never-to-get-fully-created-td32529015.html#a32582000

    Matthias.
  • Yu-Teh Shen at Oct 15, 2011 at 3:13 pm
    Thanks!

    Is there any issue tracker for RabbitMQ?

    Maybe next time I can check on this at first.

    Shen, Yu-Teh


    On Sat, Oct 15, 2011 at 8:00 PM, Matthias Radestock
    wrote:
    On 15/10/11 12:51, Matthew Sackman wrote:
    On Sat, Oct 15, 2011 at 02:22:25PM +0800, Yu-Teh Shen wrote:

    But it will not success when I tried to use "nodes" instead of "all" as
    the
    arguments in "x-ha-policy".
    Yes, apparently that's broken in 2.6.0 and 2.6.1.
    See http://old.nabble.com/HA-**queue-seems-never-to-get-**
    fully-created-td32529015.html#**a32582000<http://old.nabble.com/HA-queue-seems-never-to-get-fully-created-td32529015.html#a32582000>

    Matthias.
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111015/a57c2fb9/attachment.htm>
  • Matthias Radestock at Oct 15, 2011 at 3:17 pm

    On 15/10/11 16:13, Yu-Teh Shen wrote:
    Is there any issue tracker for RabbitMQ?
    Yes, but it's not public.
    Maybe next time I can check on this at first.
    It is usually a good idea to search the mailing list archives. That way
    you'll also find answers to problems that aren't bugs.

    Matthias.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedOct 15, '11 at 6:22a
activeOct 15, '11 at 3:17p
posts5
users3
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2022 Grokbase