[rabbitmq-discuss] How to configure Shovel with HA queue

Simon MacMullen simon at rabbitmq.com
Fri Mar 30 11:36:04 BST 2012


On 29/03/12 12:50, MELIQUE Denis (MORPHO) wrote:
> I already have tried :
> {'queue.declare',
>
>                                 [{queue, <<"shovel.forward.insertions">>},
>
>                                  {x-ha-policy,<<"all">>},
>
>                                  durable ]},

I think you want something like:

{'queue.declare',
   [{queue, <<"foo">>},
    {durable, true},
    {arguments, [{<<"x-ha-policy">>, longstr, <<"all">>}]}
   ]}

Note that x-ha-policy is a queue argument, and it takes an AMQP table, 
hence the longstr.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list