Rabbitmq-server: User limit `max-queues` reported as not valid

Created on 25 Mar 2021  路  2Comments  路  Source: rabbitmq/rabbitmq-server

In release 3.8.10 it was mentioned that max-queues can be set as a user limit.

# limits user "user-e8d3f85c" to up to five connections, ten channels and a fifty queues
rabbitmqctl set_user_limits "user-e8d3f85c" '{"max-connections": 5, "max-channels": 10, "max-queues": 50}'

# clears the maximum number of queues limit for the user
rabbitmqctl clear_user_limits "user-e8d3f85c" "max-queues"

However, trying to set it in 3.8.14 I get an error:

$ rabbitmqctl set_user_limits 'admin' '{\"max-connections\": 750, \"max-channels\": 1500, \"max-queues\": 200}'
Setting user limits to "{"max-connections": 750, "max-channels": 1500, "max-queues": 200}" for user "admin" ...
Error:
Unrecognised terms [{<<"max-queues">>,200}] in user-limits

Also it is not showing in the UI:

image

bug doc

All 2 comments

Yes, that is a copy-and-paste artifact. max-queues is a per-virtual host limit. Per-user limits are limited to connections and channels (https://github.com/rabbitmq/rabbitmq-server/pull/2380).

The release notes were updated. Thanks for spotting this.

Was this page helpful?
0 / 5 - 0 ratings