Skip to content
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

fix: multiplicative backoff for shutdown #3547

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

dave-gray101
Copy link
Collaborator

@dave-gray101 dave-gray101 commented Sep 15, 2024

Rather than always retry every two seconds, back off the shutdown attempt rate?

Description

This PR fixes #3543

Notes for Reviewers
Suggesting this as a PR-to-PR since it may or may not be necessary. I don't think we need to go all the way to exponential backoff for this situation.

Rather than always retry every two seconds, back off the shutdown attempt rate? 

Signed-off-by: Dave <[email protected]>
@dave-gray101 dave-gray101 changed the title multiplicative backoff for shutdown fix: multiplicative backoff for shutdown Sep 15, 2024
Signed-off-by: Dave <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
@dave-gray101 dave-gray101 merged commit ae86724 into shutdown_busy Sep 16, 2024
27 checks passed
@dave-gray101 dave-gray101 deleted the dave-gray101-patch-2 branch September 16, 2024 21:39
dave-gray101 added a commit that referenced this pull request Sep 17, 2024
* fix(shutdown): do not shutdown immediately busy backends

Signed-off-by: Ettore Di Giacinto <[email protected]>

* chore(refactor): avoid duplicate functions

Signed-off-by: Ettore Di Giacinto <[email protected]>

* fix: multiplicative backoff for shutdown (#3547)

* multiplicative backoff for shutdown

Rather than always retry every two seconds, back off the shutdown attempt rate? 

Signed-off-by: Dave <[email protected]>

* Update loader.go

Signed-off-by: Dave <[email protected]>

* add clamp of 2 minutes

Signed-off-by: Dave Lee <[email protected]>

---------

Signed-off-by: Dave <[email protected]>
Signed-off-by: Dave Lee <[email protected]>

---------

Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Dave <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Co-authored-by: Dave <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants