RabbitMQ - limit queue length

Moki Lv6
1
rabbitmqctl set_policy POLICY_NAME "^QUEUE_NAME$" '{"max-length":LIMIT}' --apply-to queues
1
rabbitmqctl set_policy my-pol "^messages-limited$" '{"max-length":1000}' --apply-to queues
On this page
RabbitMQ - limit queue length