master: add new resource-control TiKV configs#23035
Conversation
|
Hi @mittalrishabh. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
There was a problem hiding this comment.
Code Review
This pull request adds documentation for several new TiKV configuration items introduced in v8.5.6 and v9.0.0, including CPU throttling thresholds, write I/O limits, fair scheduling, and admission control settings. The review feedback suggests style improvements across all these additions to adhere to the repository style guide, specifically by replacing passive voice with active voice, using the second person ("you") when addressing users, and standardizing formatting.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
Hi @mittalrishabh, it looks like the CLA bot cannot associate the email address used in your commit with a GitHub account. Related commits: 1e3ffcb, eebd83f. Could you please check that the email address used for your commit has been added and verified in your GitHub account (Settings → Emails)? If the commit was created with a different email address, please amend the commit with the correct email and force-push the updated commit. The CLA check should then pass automatically. |
Signed-off-by: rishabh mittal <mittalrishabh@gmail.com>
d30f984 to
201863d
Compare
Synced from: pingcap/docs#23035 Target PR: pingcap#21754 AI Provider: azure Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
|
||
| ### `historical-usage-window-mins` <span class="version-mark">New in v8.5.7 and v9.0.0</span> | ||
|
|
||
| + Specifies the size of the sliding time window (in minutes) that TiKV uses to compute per-resource-group historical RU baselines. A larger window smooths out short-term bursts, while a smaller window makes the baseline more responsive to recent usage. Valid range: `2-60`. **You must restart TiKV for changes to this configuration to take effect.** |
There was a problem hiding this comment.
I just realized that we don't validate the config in the code, although it says valid range is 2-60. I think we can merge this doc. And the validation in a PR later.
|
@v01dstar: 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. |
|
|
||
| ### `enable-write-admission-control` <span class="version-mark">New in v8.5.7 and v9.0.0</span> | ||
|
|
||
| + Controls whether to enable admission control for write requests. When enabled, write requests from over-baseline resource groups are delayed or rejected with `SchedTooBusy` when CPU utilization exceeds [`fg-cpu-throttle-threshold`](#fg-cpu-throttle-threshold-new-in-v857-and-v900). This configuration takes effect only when [`enable-fair-scheduling`](#enable-fair-scheduling-new-in-v857-and-v900) is also enabled. |
There was a problem hiding this comment.
This configuration takes effect only when
enable-fair-schedulingis also enabled.
AI thinks this is not the case. The test test_admission_decision() is the evidence.
Add 11 new configuration parameters to the resource-control section introduced by TiKV PRs cherry-picked into the v8.5.7 release:
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?