Skip to content
Discussion options

You must be logged in to vote

We can't really help without the exact steps you execute. It works for me:

# declare a queue and publish some messages
$ perf-test -y 0 --auto-delete false -f persistent -C 10 -u lazy-queue

# check the queue mode
$ curl -s -uguest:guest 'localhost:15672/api/queues/%2F/lazy-queue' | jq .backing_queue_status.mode
"default"

# set the policy
$ rabbitmqctl set_policy Lazy "^lazy-queue$" '{"queue-mode":"lazy"}' --apply-to queues
Setting policy "Lazy" for pattern "^lazy-queue$" to "{"queue-mode":"lazy"}" with priority "0" for vhost "/" ...

# check the queue mode now
$ curl -s -uguest:guest 'localhost:15672/api/queues/%2F/lazy-queue' | jq .backing_queue_status.mode
"lazy"

Perhaps you have ano…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@shettypriy
Comment options

@mkuratczyk
Comment options

@shettypriy
Comment options

@shettypriy
Comment options

Answer selected by mkuratczyk
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@michaelklishin
Comment options

@michaelklishin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #4150 on February 16, 2022 10:32.