-
Notifications
You must be signed in to change notification settings - Fork 54
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
backoff strategy for the built-in bridge #2899
Comments
@didier-wenzek @albinsuresh @jarhodes314, we can discuss the specifics in the ticket. |
The proposed strategy is not directly aligned to what is proposed by the backoff crate, but one should be able to make it. |
The linked crate looks good, and I'm sure we can wrap it to utilize the reset logic regarding the "stable connection". |
See these comments for information about the backoff algorithm (plus jitter). |
QA has througly checked the feature and is pleased to confirm that the described is functioning. |
Is your feature request related to a problem? Please describe.
thin-edge.io should be a first good citizen when it comes to connecting to an external MQTT broker. It should implement reasonable backoff algorithms so that if the external MQTT becomes overloaded, it does not cause a "thundering herd" problem but quickly retrying to connect to the broker.
The new in-built MQTT bridge functionality should support a backoff strategy which will avoid such issues.
Describe the solution you'd like
The following backoff strategy is proposed:
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: