Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Pre-merge checks:
|
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Add default and optional values for memory management variable.
| - 是否受 Hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value) 控制:否 | ||
| - 类型:枚举型 | ||
| - 默认值:`disable` | ||
| - 默认值:`priority` |
There was a problem hiding this comment.
改了默认值后,相当于这个功能在所有环境都默认开启了,那前面的 “该变量控制的功能为实验特性,不建议在生产环境中使用” 还需要保留吗,有些矛盾
There was a problem hiding this comment.
该功能在 master 分支已经 GA。2603 和 2609 仍旧保持关闭,实验特性的警告还是需要的。
Removed warning messages about experimental features for several system variables.
|
[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 |
Removed warning about experimental feature in memory arbitration mode documentation.
Clarified conditions for TiDB memory usage alerts and introduced memory arbitration mode details.
Reintroduced automatic heap profile collection details after enabling memory arbitration mode, including thresholds and file storage information.
Corrected version numbers for memory arbitration mode introduction and clarified issues with previous memory control mechanisms.
Clarify the description of 'Events' in memory arbitration statistics.
There was a problem hiding this comment.
🟡 Changes recommended
内存诊断文档仍未注明旧报警示例需要禁用内存仲裁,也遗漏了未配置日志目录时的诊断文件回退路径,可能导致用户无法找到预期记录。
2 open issues
What changed in this PR
This PR updates the Chinese TiDB documentation for priority-based memory arbitration becoming the default, aligning the variable reference and memory diagnosis guide.
Changes:
- Changes the documented default of
tidb_mem_arbitrator_modetopriority. - Documents automatic heap profile collection, including thresholds, storage, and retention.
- Clarifies that
mem-riskandoom-riskmetrics count risk-handling events.
| File | Description |
|---|---|
system-variables.md |
Updates the memory arbitration default and mode descriptions. |
configure-memory-usage.md |
Expands heap profile guidance and clarifies arbitration event metrics. |
Review effort: Balanced
|
@windtalker: 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. |
|
@qiancai PTAL |

First-time contributors' checklist
What is changed, added or deleted? (Required)
tidb_mem_arbitrator_modefromdisabletopriority.mem-riskandoom-riskevent metrics in the memory arbitration monitoring section.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 (in Chinese).
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?