-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Need help with ECONNRESET using mqtt.js and VerneMQ #2195
Comments
@wernermorgenstern You can try In the Docker container, you can always But you have another issue, a client should obviously not stop consuming messages after 4 hours. What QoS and MQTT protocol version does that session use? do you handle inflight window settings (based on protocol version this is either I have also seen client applications/libraries getting stuck on their own internal buffer mechanisms for incoming messages. if you need more help, contact us at 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Our QoS is 2 for the subscribe. The publisher uses QoS 0, and retain is set to false. Right now, we want to test 2000 Devices. However, we want to be able to support 50_000 and even up to 100_000 and higher. Regarding the variables, here are our settings
I did run another test last night, after adding the TCP_LISTEN_OPTIONS, and right now all 1804 devices are "present" on the client side. In our grafana dashboard, it shows no dropped messages for the MQTT Broker. Also, we do use shared subscriptions, as we want to be able to scale our client (subscription) horizontally, and not receive and process duplicate messages. However, if you could maybe help me confirm that our other settings are optimized, especially the What is the |
A 50k or 100k client connections are not a problem. 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Ok, thank you very much. So maybe we can reduce I will need to look into what the difference is between v3.1.1 and v5. Not sure if we will be able to go to V5. So it seems that the Is there any documentation you know of? Also, what other |
Closing, since the issue seems resolved. 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Hi, I am trying to connect with NodeJs 18, and mqtt.js.
We are using VerneMQ on AWS ECS (Docker)
We have 2000 devices, each one of those sending a message every 10 seconds.
We can connect to the VerneMQ Broker fine, and the client can read all those messages for about 4 hours.
It then does not pull any more messages, even though messages are published. I even tried to put in an automatic fail-safe, that if no messages are received for 1 minute, to unsubscribe, and resubscribe. That does not work. And then I get this error.
I saw this Bug Report: #2092
It mentions to change the TCP Linger in the vernemq.conf file.
I am not sure if that could fix our issue. I am willing to try it.
How would I be able to change that option with the DOCKER_ Variables? What would the variable name, and also what would the value be?
The text was updated successfully, but these errors were encountered: