-
Notifications
You must be signed in to change notification settings - Fork 136
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
Implement flags to control retry delays #83
Conversation
In order to add the new external package, you will need to include the go modules and |
Of course. I somehow missed them in my |
You can now rebase against head with the removed vendor dir. |
Amend the client with two new flags, "--proxy.retry.initial-wait" and "--proxy.retry.max-wait", controlling how long to sleep after encountering a proxy poll failure (i.e. network timeout). An exponential, randomized backoff algorithm is used to prevent thundering herds. The initial wait is raised from 50ms to 1s. In practice waiting less than a second after a failure is rarely useful and prevents the server from being hammered with up to three requests in the second after a failure. Discussed in #82. Signed-off-by: Michael Hanselmann <[email protected]>
@SuperQ done, rebased on top of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks
* [FEATURE] Implement flags to control retry delays #83 * [ENHANCEMENT] Add scrape_id to error log #120 * [BUGFIX] /clients endpoint return application/json as Content-Type #121 Signed-off-by: SuperQ <[email protected]>
* [FEATURE] Implement flags to control retry delays #83 * [ENHANCEMENT] Add scrape_id to error log #120 * [BUGFIX] /clients endpoint return application/json as Content-Type #121 Signed-off-by: SuperQ <[email protected]>
Add two new flags, "--proxy.retry.initial-wait" and
"--proxy.retry.max-wait", controlling how long to sleep after
encountering a proxy poll failure (i.e. network timeout). An
exponential, randomized backoff algorithm is used to prevent thundering
herds. Discussed in #82.