使用管理REST API更改现有RabbitMQ队列上的最大优先级
使用REST API,我尝试更新现有队列的优先级,如下所示:使用管理REST API更改现有RabbitMQ队列上的最大优先级,rabbitmq,Rabbitmq,使用REST API,我尝试更新现有队列的优先级,如下所示: PUT /api/queues/%2F/TestEvent_ProcessingService HTTP/1.1 Host: localhost:15672 Authorization: Basic <--snip--> cache-control: no-cache { "durable":true, "arguments":{ "x-max-priority":2 }, } 有没有办法在现有队列上设置此
PUT /api/queues/%2F/TestEvent_ProcessingService HTTP/1.1
Host: localhost:15672
Authorization: Basic <--snip-->
cache-control: no-cache
{
"durable":true,
"arguments":{
"x-max-priority":2
},
}
有没有办法在现有队列上设置此值,或者需要删除队列并使用新的x-max-priority值重新创建它
是否需要删除队列并使用新的
x-max-priority值
是的,请看我对你交叉张贴的问题的回答
注意:RabbitMQ团队监视并仅有时回答有关StackOverflow的问题
{
"error": "bad_request",
"reason": "inequivalent arg 'x-max-priority' for queue 'TestEvent_ProcessingService' in vhost '/': received the value '2' of type 'long' but current is none"
}