-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 a variable to force statement priority of TiDB server #7694
Conversation
LGTM |
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.
This won't influence the priority of TiDB's internal SQL
?
For analyze statement, it will set its own priority, for others, I have to say yes, @winoros . |
Need we use different variable to control internal ones and external ones? |
I think we can skip the internal SQLs by its connection ID, when this variable is set. |
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.
lgtm
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.
LGTM
What problem does this PR solve?
Add a variable to force statement priority of TiDB server. Fix #7524 .
What is changed and how it works?
Force the priority for each statement when tidb_force_priority is set to high/low/delayed priority.
Check List
Tests
Watch the grafana of coprocess thread CPU usage when
set tidb_force_priority = "high_priority"/"low_priority"/"delayed"
Code changes
Side effects
Related changes
PTAL @coocood @morgo