-
Notifications
You must be signed in to change notification settings - Fork 720
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: supports dynamically change the controller config #7042
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. |
2a8a32d
to
d449b8b
Compare
d449b8b
to
62468e4
Compare
62468e4
to
bea0900
Compare
Codecov Report
@@ Coverage Diff @@
## master #7042 +/- ##
==========================================
- Coverage 74.33% 74.15% -0.18%
==========================================
Files 437 438 +1
Lines 46855 46895 +40
==========================================
- Hits 34831 34777 -54
- Misses 8947 9029 +82
- Partials 3077 3089 +12
Flags with carried forward coverage won't be shown. Click here to find out more. |
a42cde3
to
c35d680
Compare
3e3d08d
to
8eda4ec
Compare
Signed-off-by: nolouch <nolouch@gmail.com>
4fafa55
to
a40b3c9
Compare
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.
REST LGTM
cb(ctx) | ||
if err := cb(ctx); err != nil { | ||
log.Error("failed to execute leader callback function", errs.ZapError(err)) | ||
return |
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.
How about continuing?
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.
I think here some leaderCallbacks
should make sure to run successfully. like resourcemanager
load resource meta, or tso service
init. ptal @rleungx
and return will re-election, I think it is like always do retry.
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.
I think retry is ok to me and we should limit the retry count or time.
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: d154fbf
|
/cherry-picker |
/run-cherry-picker |
/run-cherry-picker |
In response to a cherrypick label: new pull request created to branch |
close tikv#7043 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
…ikv#7042) close tikv#7043 resource_control: supports dynamically change the controller config - supports dynamically changing the controller config - export the `maxWaitDuration` for the local bucket limiter. Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com> fix Signed-off-by: nolouch <nolouch@gmail.com>
…7495) close #7043 resource_control: supports dynamically change the controller config - supports dynamically changing the controller config - export the `maxWaitDuration` for the local bucket limiter. Signed-off-by: nolouch <nolouch@gmail.com> Signed-off-by: husharp <jinhao.hu@pingcap.com> Co-authored-by: nolouch <nolouch@gmail.com> Co-authored-by: Hu# <jinhao.hu@pingcap.com> Co-authored-by: ShuNing <nolouch@gmail.com>
What problem does this PR solve?
Issue Number: Close #7043
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tiup
:Release note