-
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
planner, workload-based learning: The setup process framework of workload-based learning #58132
Conversation
Hi @elsa0520. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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-sigs/prow repository. |
b062e0e
to
599cac6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58132 +/- ##
================================================
+ Coverage 73.1841% 75.2435% +2.0594%
================================================
Files 1675 1724 +49
Lines 461917 474491 +12574
================================================
+ Hits 338050 357024 +18974
+ Misses 103127 95262 -7865
- Partials 20740 22205 +1465
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Two points:
|
} | ||
|
||
func (do *Domain) readTableCostWorker(wbLearningHandle *workloadbasedlearning.Handle) { | ||
defer util.Recover(metrics.LabelDomain, "readTableCostWorker", nil, false) |
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.
Comment as well?
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.
DONE
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.
Thanks!
Some nits.
pkg/workloadbasedlearning/handle.go
Outdated
|
||
package workloadbasedlearning | ||
|
||
/* |
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.
In Go, we rarely use /* */
comments. See more at https://go.dev/doc/comment to check the package comment style.
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.
Done.
|
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benmeadowcroft, ghazalfamilyusa, qw4990, Rustin170506, wjhuang2016 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test unit-test |
@elsa0520: Cannot trigger testing until a trusted user reviews the PR and leaves an 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-sigs/prow repository. |
/retest |
@qw4990: Cannot trigger testing until a trusted user reviews the PR and leaves an 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-sigs/prow repository. |
/test pull-br-integration-test |
@elsa0520: Cannot trigger testing until a trusted user reviews the PR and leaves an 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-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #58131
Problem Summary:
What changed and how does it work?
The setup process framework of workload-based learning.
When tidb setup, the workload-based learnng worker such as read tablecost worker will setup at the same time.
It will start a new go routine to execute workers periodically. All workload-based learning related workers will be started in this function
SetupWorkloadBasedLearningWorker"
Two new configurations (TODO set value)
Check List
Tests
Now, we can only disable it before the feature is not ready. So I manual test the setup worker.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.