bloomberg / amqpprox

An AMQP 0.9.1 proxy server, designed for use in front of an AMQP 0.9.1 compliant message queue broker such as RabbitMQ.
Apache License 2.0
78 stars 16 forks source link

Display configured data rate limits for LIMIT PRINT command #89

Closed Chinmay1412 closed 2 years ago

Chinmay1412 commented 2 years ago

Currently, we are not displaying data rate limits using LIMIT PRINT command. We already have LIMIT PRINT command support for connection rate limits. So this PR will just starts printing data rate limits along with connection rate limits.

The PR also adds detailed description for different limit commands related to data rate.

For example, the sample output for already configured limits for test-vhost using LIMIT PRINT command:

./amqpprox_ctl <control_file> LIMIT PRINT test-vhost
For vhost test-vhost, Allow average 1000 number of connections per second.
Alarm only data limit, for vhost test-vhost, allow average 5000 bytes per second.
For vhost test-vhost, allow average 8000 bytes per second.