client/resource_group: backport RC pre-charge and runtime state#11003
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…es hint (tikv#10611) close tikv#10612, closes tikv#10985\n\nSigned-off-by: Yuhao Zhang <yhzhang00@outlook.com> (cherry picked from commit 4e05b9d) Signed-off-by: JmPotato <github@ipotato.me>
8e1313d to
e2ca4b0
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-nextgen-202603 #11003 +/- ##
==========================================================
+ Coverage 79.07% 79.09% +0.01%
==========================================================
Files 531 531
Lines 72298 72648 +350
==========================================================
+ Hits 57168 57459 +291
- Misses 11093 11140 +47
- Partials 4037 4049 +12
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Should we also cherry-pick #10975? Apart from this, all LGTM. |
ref tikv#10612\n\nExpose resource group runtime state from the PD client. The runtime state currently reports whether the local effective request-unit token bucket has a finite burst limit (`HasLimitedBurst`), based on token bucket responses. This lets callers observe Resource Control runtime signals without changing resource group metadata semantics.\n\nSigned-off-by: JmPotato <github@ipotato.me> (cherry picked from commit 14ffe2e) Signed-off-by: JmPotato <github@ipotato.me>
|
@YuhaoZhang00: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn 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 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, rleungx, YuhaoZhang00 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1636e69
into
tikv:release-nextgen-202603
What problem does this PR solve?
Issue Number: ref #10612
This backports RC paging pre-charge and resource-group runtime-state visibility to
release-nextgen-202603. Without request-side pre-charge, concurrent paging coprocessor reads can consume a large amount of data before response settlement applies resource-control throttling. TiDB also needs the effective runtime limited-burst state so byte-budget paging is enabled only for eligible resource groups.What is changed and how does it work?
Source PRs:
Check List
Tests
(cd client && make gotest GOTEST_ARGS="./resource_group/controller -count=1")NEXT_GEN=1 make gotest GOTEST_ARGS="./pkg/mcs/resourcemanager/server ./pkg/metering -count=1"NEXT_GEN=1 make pd-server-basicgolangci-lint run --new-from-rev=upstream/release-nextgen-202603(cd client && golangci-lint run --new-from-rev=upstream/release-nextgen-202603)Side effects
Release note