Skip to content

Add a max timeout bucket #6

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

Merged
merged 1 commit into from
May 25, 2021
Merged

Add a max timeout bucket #6

merged 1 commit into from
May 25, 2021

Conversation

dramich
Copy link
Contributor

@dramich dramich commented May 24, 2021

Problem:
The bucket being used rate.Limiter does not have a maximum timeout so on startup if we process thousands of objects for the same item type this bucket can end up at hours long wait times. It then takes that same amount of time for the bucket to go back to zero.

Solution:
Wrap the rate.Limiter with a max timeout of 2 min

@kinarashah
Copy link
Member

rancher/rancher#31999

@dramich dramich requested a review from ibuildthecloud May 25, 2021 20:34
@ibuildthecloud ibuildthecloud merged commit 58c8a34 into rancher:master May 25, 2021
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.

None yet

3 participants