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
executor: support set resource-group-name for kv request #40237
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Skipping CI for Draft Pull Request. |
depend on tikv/client-go#650 |
@BornChanger @Connor1996 PTAL |
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
@Connor1996: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@qw4990 Could you please take a look? |
@@ -290,6 +291,7 @@ func (builder *RequestBuilder) SetFromSessionVars(sv *variable.SessionVars) *Req | |||
builder.RequestSource.RequestSourceInternal = sv.InRestrictedSQL | |||
builder.RequestSource.RequestSourceType = sv.RequestSourceType | |||
builder.StoreBatchSize = sv.StoreBatchSize | |||
builder.Request.ResourceGroupName = sv.ResourceGroupName |
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.
Please check the global flag @@global.tidb_enable_resource_control here.
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.
After discussing, we are going to set default resource group name in initializing session context, so no need to check here.
@tiancaiamao PTAL |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 2dc8338
|
@glorv: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: Ref #38825
Problem Summary:
What is changed and how it works?
Set the
ResourceGroupName
parameter for foreground read and write kv request so the scheduler at tikv side can handle these reqeusts according to resource group settings.NOTE: the resource group name of tasks trigger by DDL or background jobs maybe not be set correctly currently. We will do it in following PR after it is clear what resource group we should bind for these tasks.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.