New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Question on max_message_rate #2177
Comments
This works by throttling in the session state machine if I remember correctly. So you might still have a big TCP receive buffer before the publisher experiences backpressure, but the consumer should see throttled messages. Is the latter not the case? 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Thanks for the response. I was just testing its power before integrating into project with 2 to 3 clients and publishing 10 to 15 messages per second but all the subscribed clients are receiving all messages even when i have applied the max_message_rate =2. |
Some more info.
The global 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Thanks for the response. |
I wonder why this "throttling" was implemented (which I also couldn't get to work). Wouldn't it be more natural to just reject the publish if it is too often - or even disconnect the client? Given all the problems a throttling has with network buffers etc... |
The throttling for As for 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Environment
Current Behavior
my max_message_rate is not working in my docker vernemq. I am setting max_message_rate like this:
vernemq: image: vernemq/vernemq container_name: vernemq restart: always environment: DOCKER_VERNEMQ_ALLOW_ANONYMOUS: 'off' DOCKER_VERNEMQ_PLUGINS.vmq_diversity: 'on' DOCKER_VERNEMQ_PLUGINS.vmq_passwd: 'off' DOCKER_VERNEMQ_PLUGINS.vmq_acl: 'off' DOCKER_VERNEMQ_VMQ_DIVERSITY.auth_mysql.enabled: 'on' DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.host: mysql_nest DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.port: $DATABASE_PORT DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.user: $DATABASE_USER DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.password: $DATABASE_PASSWORD DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.database: $DATABASE_DB DOCKER_VERNEMQ_VMQ_DIVERSITY.mysql.password_hash_method: 'md5' DOCKER_VERNEMQ_ACCEPT_EULA: 'yes' DOCKER_VERNEMQ_MAX_MESSAGE_RATE: '2' ports: - $MQTT_MQTT_PORT:1883 - $MQTT_WS_PORT:8080 - $MQTT_ADMIN_PORT:8888 networks: - vernemq-network depends_on: - mysql_nest
Clients authentication and authorization is working good but max_message_rate is not working.
Even i can see the line
max_message_rate = 2
in vernemq.conf file.Expected behaviour
Client should not be able to send more than 2 messages in a second or the broker should not send the messages of that client to other clients if rate is greater than 2.
Configuration, logs, error output, etc.
Code of Conduct
The text was updated successfully, but these errors were encountered: