-
Notifications
You must be signed in to change notification settings - Fork 246
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
Handling of HTTP error response codes in fetcher #746
Comments
This is a huge improvement from retying without any backoff. However, this could still benefit from being tuneable, supporting hard failing if requests can't be completed within the backoff configuration, and resetting the backoff if requests start succeeding faster.
This is a huge improvement from retying without any backoff. However, this could still benefit from being tuneable, supporting hard failing if requests can't be completed within the backoff configuration, and resetting the backoff if requests start succeeding faster.
Hello. Could you describe your use-case please to help us find the best solution? Re custom solutions for HTTP response codes and retry policies. Note that |
Added backoff to fetcher worker to partially address #746. This is a huge improvement from retrying without any backoff. However, this could still benefit from: * being tunable * supporting hard failing if requests can't be completed within the backoff configuration
I've submitted #747 to at least make this perform backoff on each attempt. This is healthier for client side log spam, and also protects servers from client abuse. |
I'm also preparing PR #748 which allows decorating requests. @kdhageman Will it help you to handle retries / errors in a way you want? |
@pavelkalinnikov I think PR #748 will work fine, thanks! To elaborate on the use case, in our current specific case we are running into |
You might find Trillian's client/backoff package useful (we use it to implement retry / backoff strategies in this repo, as, for example, in #747). I'm closing this issue for now. Feel free to reopen if it requires any more action. |
When using the
fetcher
, all failed HTTP requests are dumped toglog
, without any opportunity for the developer to act on those HTTP messages. For instance, we are running into large amounts of429
response codes, polluting the logs, and there is no option for us to build some backoff policy ourselves.The current code base states a
TODO
for a backoff policy, but it might be useful to let developers can implement their own solution to HTTP response codes for the sake of flexibility.The text was updated successfully, but these errors were encountered: