RabbitMQ hỗ trợ nhiều loại limit:
- Connection limits — max connection per node
- Channel limits — max channel per connection hoặc per user
- Memory limits — % RAM trước khi block publisher
- Queue limits — max length (số message hoặc bytes) trước khi drop/reject
- Per-user limits — connection, channel per user. Cấu hình trong rabbitmq.conf (global), qua rabbitmqctl (runtime), hoặc management UI
Ví dụ: memory limit 60%, max queue length 1M message, user "app1" giới hạn 100 connection. Limit quá thấp gây failure, quá cao rủi ro node outage.
RabbitMQ supports: connection limits (max per node), channel limits (per connection or per user), memory limits (% of RAM before blocking publishers), queue limits (max messages or bytes), and per-user limits.
- Configure in rabbitmq.conf (global), via rabbitmqctl (runtime), or the management UI.
- Start conservative and relax based on monitoring — too low causes failures, too high risks node outages.