Set x-max-priority as a policy

64 views
Skip to first unread message

Vivek Jaiswal

unread,
Feb 12, 2016, 6:17:56 PM2/12/16
to rabbitmq-users
I want o set the 'x-max-priority' property on all queues, so when I run the following command 

rabbitmqctl set_policy PriorityQueue ".*" '{"max-priority":"255"}' --apply-to queues


I get the error:
[{<<"max-priority">>,<<"255">>}] are not recognised policy settings

I also tried the following and it didn't work:

 set_policy PriorityQueue ".*" '{"x-max-priority":"255"}' --apply-to queues 

 

Michael Klishin

unread,
Feb 12, 2016, 9:53:09 PM2/12/16
to rabbitm...@googlegroups.com
Priorities must be set at queue declaration time,
so what you are trying to do is not going to work
and why the attribute is rejected by policy validation I suspect.

Also, 255 priorities is a complete overkill, as I believe
we mention in the docs. Try 3 or 5.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages