-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
resource_control: load resource unit config from local pd client #43097
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. |
executor/calibrate_resource.go
Outdated
} | ||
|
||
// resource_ctl is the ResourceGroupController in pd client | ||
resource_ctl *rmclient.ResourceGroupsController |
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.
need Camel-Case
executor/calibrate_resource.go
Outdated
|
||
// GetResourceGroupController returns the ResourceGroupsController. | ||
func GetResourceGroupController() *rmclient.ResourceGroupsController { | ||
return resourceGrooupCtl |
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.
extra o
/retest |
2 similar comments
/retest |
/retest |
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
@HuSharp: 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. |
/retest |
/test |
@glorv: The
Use 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 kubernetes/test-infra repository. |
/retest |
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. BTW, do you ensure the METRICS_SCHEMA
can be accessed?
@nolouch I have added privileges requirements in the docs. See: pingcap/docs-cn#13714 |
PTAL @JmPotato |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 39ca750
|
What problem does this PR solve?
Issue Number: ref #38825
Problem Summary:
What is changed and how it works?
request-units
configs from local resource-control client instead of executing ashow config
query to avoid the requiring ofSYSTEM_VARIABLES_ADMIN
privilege.tidb_enable_resource_control
before executecalibrate resource
NOTE:
Currently, this PR put the pd-client
ResourceGroupController
under the executor package, I think this is not a very good idea but I can't find a better place. Maybe we should put all resource-group related logic into a separate package.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.