Skip to content

tidb: global memory arbitrator mechanism#20955

Open
solotzg wants to merge 39 commits intomasterfrom
solotzg-patch-1
Open

tidb: global memory arbitrator mechanism#20955
solotzg wants to merge 39 commits intomasterfrom
solotzg-patch-1

Conversation

@solotzg
Copy link
Copy Markdown
Contributor

@solotzg solotzg commented Sep 25, 2025

First-time contributors' checklist

What is changed, added or deleted? (Required)

新增 TiDB 全局内存仲裁模式文档,包括:

  • configure-memory-usage.md 中新增内存仲裁模式章节,介绍 standardpriority 两种模式的工作原理、配置方法、监控指标及最佳实践
  • system-variables.md 中新增以下系统变量说明:
    • tidb_mem_arbitrator_mode:设置 TiDB 实例的全局内存管理模式
    • tidb_mem_arbitrator_query_reserved:设置 SQL 执行前预先订阅的内存资源份额
    • tidb_mem_arbitrator_soft_limit:设置 TiDB 实例的内存资源份额上限
    • tidb_mem_arbitrator_wait_averse:控制 SQL 等待内存资源的相关行为,包含 0(默认值,变量不生效)、1nolimit 三个取值的说明

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).

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Added details about the global memory management framework in TiDB, including modes, error handling, monitoring, and practical deployment recommendations.
Added new system variables related to memory management in TiDB, including details on their scopes, types, default values, and warnings regarding experimental features.
Updated the documentation for the global memory management framework in TiDB, including changes to error messages, memory management modes, and monitoring metrics.
@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 25, 2025
@qiancai qiancai added v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3. translation/doing This PR’s assignee is translating this PR. and removed missing-translation-status This PR does not have translation status info. labels Sep 25, 2025
@hfxsd hfxsd self-requested a review September 25, 2025 07:39
hfxsd and others added 3 commits December 4, 2025 10:54
Co-authored-by: xixirangrang <hfxsd@hotmail.com>
Co-authored-by: xixirangrang <hfxsd@hotmail.com>
@hfxsd hfxsd added the type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes. label Dec 4, 2025
@hfxsd hfxsd removed the request for review from joey-yez March 23, 2026 07:50
@solotzg
Copy link
Copy Markdown
Contributor Author

solotzg commented Apr 1, 2026

/cc @copilot

@solotzg
Copy link
Copy Markdown
Contributor Author

solotzg commented Apr 2, 2026

@copilot merge master

…tzg-patch-1

Co-authored-by: solotzg <9016847+solotzg@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Apr 2, 2026

@copilot merge master

已在 e49f68d 将 master 合并到本分支。

Updated warning message regarding experimental feature for memory arbitration mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files. translation/doing This PR’s assignee is translating this PR. type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes. v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants