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

Add additional check on reactive limiter queue sizes #10772

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

jhalterman
Copy link
Member

@jhalterman jhalterman commented Feb 28, 2025

What this PR does

This change improves on #10574 by adding an additional check for reactive limiter queue sizes that limits the amount of queueing in each limiter based on its individual settings. At present, rejections are based on the prioritizer's threshold, which is computed periodically and looks at queueing across limiters along with request priorities, but this doesn't prevent a large burst of requests from enqueueing before the next calibration takes place. This PR adds an additional guard against this.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@jhalterman jhalterman marked this pull request as ready for review February 28, 2025 20:54
@jhalterman jhalterman requested review from a team as code owners February 28, 2025 20:54
@jhalterman jhalterman changed the title Add additional limit on reactive limiter queue sizes Add additional check on reactive limiter queue sizes Feb 28, 2025
@jhalterman jhalterman force-pushed the reactive-limiter-queue-size branch from 685689a to 2ccb154 Compare February 28, 2025 20:57
This change adds an additional check for reactive limiter queue sizes, that limits the amount of queueing in each limiter based on its settings, in addition to the prioritizer's threshold. This ensures that if the prioritizer hasn't calibrated recently, unexpected queueing does not occur.
@jhalterman jhalterman force-pushed the reactive-limiter-queue-size branch from 2ccb154 to 1ffffc4 Compare February 28, 2025 21:03
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@jhalterman jhalterman merged commit 0a1509f into grafana:main Feb 28, 2025
28 checks passed
@jhalterman jhalterman deleted the reactive-limiter-queue-size branch February 28, 2025 22:19
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