-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tablet throttler: remove LowPriority
logic
#16013
Tablet throttler: remove LowPriority
logic
#16013
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
LowPriority
logic
@@ -1896,7 +1896,6 @@ func (tsv *TabletServer) registerThrottlerCheckHandlers() { | |||
appName = throttlerapp.DefaultName.String() | |||
} | |||
flags := &throttle.CheckFlags{ | |||
LowPriority: (r.URL.Query().Get("p") == "low"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users can still supply p
param, but it will have no effect.
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16013 +/- ##
==========================================
- Coverage 68.27% 68.26% -0.01%
==========================================
Files 1562 1562
Lines 197319 197298 -21
==========================================
- Hits 134714 134692 -22
- Misses 62605 62606 +1 ☔ View full report in Codecov by Sentry. |
Description
This is a cleanup PR for a functionality we've never used. While these changes are extracted from #15988, this PR is against
main
and not as part of the multi-metrics PR series.The "low priority" mechanism is a relic we inherited from
freno
, where production client apps competed with background apps over the throttler. We have never used this invitess
, to date, and I therefore wish to remove it. It only adds more boilerplate, more considerations, and as a matter in fact I spent the better half of a day chasing down a recurring CI failure that was caused due to a (bug? misconfiguration?) related to prioritization.In vitess, all existing throttler clients have the same priority and nothing externally to vitess gets any precedence.
The priority flag & usage were never documented in the first place and users were not instructed to use it. Priorities were mentioned in the docs but without any actionable guidance.
Moreover, this functionality did not enjoy any specific unit testing.
Doc updates: #16013
Related Issue(s)
#15624
Checklist
Deployment Notes