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: Debounce AcquireJob when no jobs are available #5017

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This prevents constant database spam at scale to a maximum of 60 queries/s per coderd instance.

@kylecarbs kylecarbs self-assigned this Nov 10, 2022
Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments should be added above the if statement

coderd/provisionerdserver/provisionerdserver.go Outdated Show resolved Hide resolved
This prevents constant database spam at scale to a maximum
of 60 queries/s per coderd instance.
@kylecarbs kylecarbs enabled auto-merge (squash) November 10, 2022 22:26
@kylecarbs kylecarbs merged commit 927c241 into main Nov 10, 2022
@kylecarbs kylecarbs deleted the acquirecache branch November 10, 2022 22:37
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants