Skip to content

tidb: global memory arbitrator mechanism#20955

Merged
ti-chi-bot[bot] merged 47 commits into
masterfrom
solotzg-patch-1
May 22, 2026
Merged

tidb: global memory arbitrator mechanism#20955
ti-chi-bot[bot] merged 47 commits into
masterfrom
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)

Add documentation for the TiDB global memory arbitrator mode, including:

  • Add a Memory arbitrator mode section to configure-memory-usage.md, describing the working principles, configuration methods, monitoring metrics, and best practices for the standard and priority modes.
  • Add descriptions for the following system variables to system-variables.md:
    • tidb_mem_arbitrator_mode: sets the global memory management mode for a TiDB instance.
    • tidb_mem_arbitrator_query_reserved: sets the amount of memory reserved in advance for a SQL statement before execution.
    • tidb_mem_arbitrator_soft_limit: sets the upper limit of memory allocation for a TiDB instance.
    • tidb_mem_arbitrator_wait_averse: controls the behavior of SQL statements when waiting for memory resources, including the meanings of the values 0 (default, disabled), 1, and nolimit.

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
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread system-variables.md Outdated
github-actions Bot added a commit to hfxsd/docs that referenced this pull request May 13, 2026
Synced from: pingcap/docs-cn#20955
Target PR: pingcap#22882
AI Provider: azure

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread configure-memory-usage.md Outdated
Comment thread system-variables.md
Comment thread system-variables.md
@ti-chi-bot ti-chi-bot Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 21, 2026
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label May 22, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 22, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-05-22 07:52:34.743548774 +0000 UTC m=+109885.384405587: ☑️ agreed by hfxsd.

@hfxsd
Copy link
Copy Markdown
Collaborator

hfxsd commented May 22, 2026

/retest

@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 22, 2026
Comment thread system-variables.md
@ti-chi-bot ti-chi-bot Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 22, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 22, 2026

@hfxsd: Your lgtm message is repeated, so it is ignored.

Details

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

@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 22, 2026
@hfxsd
Copy link
Copy Markdown
Collaborator

hfxsd commented May 22, 2026

/approve

@hfxsd hfxsd added the lgtm label May 22, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 22, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hfxsd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label May 22, 2026
@ti-chi-bot ti-chi-bot Bot merged commit c793b55 into master May 22, 2026
10 of 11 checks passed
@ti-chi-bot ti-chi-bot Bot deleted the solotzg-patch-1 branch May 22, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm needs-1-more-lgtm Indicates a PR needs 1 more LGTM. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a 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