Apply Q expire Policy for all Vhosts in RabbitMQ

I need to apply Q expire Policy for all Vhosts in RabbitMQ,Is there any way we can apply a policy for all Vhosts from commandline.

Answers


There is no.

you could write a script like this:

for i in `rabbitmqctl list_vhosts`; do
rabbitmqctl -p $i  set_policy expiry "" '{""expires":60000"}' --apply-to queues
done;

I think you have to skip the first two values


Need Your Help

Views jump during ViewDidLoad

iphone interface-builder viewdidload

I have a custom button, subclassed from UIButton that is initialised as below (obviously all the button does is use a custom font).

Native incoming call is killing my VOIP app's access to audio

ios objective-c iphone voip

I'm developing a VOIP app that allows people to make VOIP calls. Whenever a user is in a VOIP call and receives a native call on their phone the audio of the VOIP app stops working.