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

Feature Request: criticality-aware transaction throttler #12661

Open
ejortegau opened this issue Mar 20, 2023 · 0 comments
Open

Feature Request: criticality-aware transaction throttler #12661

ejortegau opened this issue Mar 20, 2023 · 0 comments

Comments

@ejortegau
Copy link
Contributor

Feature Description

Context

The transaction throttler allows throttling/rejecting queries based on replication lag. When it thinks that the rate at which requests are coming in is too high, it immediately fails the query with a RESOURCE EXHAUSTED error.

Feature request

The transaction throttler uses criticality information to decide whether a request should be throttled. When the lag and request rate is such that throttle is necessary, It will also consider that criticality information, ranging from should not throttle at all, to should throttle always.

See dicussion in #feat-handling-overload.

Use Case(s)

This allows to provided a form of differentiated services guarantees. For example, requests being issued by end user facing web API can be marked as high criticality and always get served, whereas background jobs or other internal, less important requests can be failed. This allows to mitigate the impact of throttling.

@ejortegau ejortegau added Needs Triage This issue needs to be correctly labelled and triaged Type: Feature Request labels Mar 20, 2023
@rohit-nayak-ps rohit-nayak-ps added Component: Query Serving and removed Needs Triage This issue needs to be correctly labelled and triaged labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants