Skip to content

docs: document DXF node resource requirements - #22100

Open
qiancai wants to merge 2 commits into
pingcap:masterfrom
qiancai:codex/document-dxf-node-requirements-24744
Open

qiancai wants to merge 2 commits into
pingcap:masterfrom
qiancai:codex/document-dxf-node-requirements-24744

Conversation

@qiancai

@qiancai qiancai commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What is changed, added, or deleted? (Required)

Document that TiDB nodes eligible to run DXF tasks should have the same number of CPU cores and the same amount of memory. The DXF scheduler assumes uniform resource capacity across these nodes.

Validation passed with the repository Markdown linter and git diff --check.

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.

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

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

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

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

Summary by CodeRabbit

  • 文档
    • 补充 DXF 启用前提:所有可运行 DXF 任务的 TiDB 节点需配置相同数量的 CPU 核心和相同大小的内存。
    • 说明 DXF 调度器基于这些节点资源容量相同的假设进行调度。

@qiancai qiancai added needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. translation/from-docs This PR is translated from a PR in pingcap/docs. type/enhancement The issue or PR belongs to an enhancement. labels Nov 24, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

In response to a cherrypick label: @qiancai once the present PR merges, I will cherry-pick it on top of release-8.5 in a new PR and assign it to you.

@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 24, 2026
Synced from: pingcap/docs#24744
Target PR: pingcap#22100

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Auto-sync completed successfully

Source PR: pingcap/docs#24744
Target PR: #22100

Chinese documentation has been updated based on English documentation changes.

@ti-chi-bot

ti-chi-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign qiancai for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

文档新增 DXF 任务合格 TiDB 节点的资源一致性要求,并说明调度器假设这些节点具有相同资源容量。

Changes: DXF 节点资源要求

Layer / File(s) Summary
记录节点资源约束
tidb-distributed-execution-framework.md
新增要求:合格节点必须使用相同数量的 CPU 核心和相同大小的内存。文档说明 DXF 调度器假设这些节点具有相同资源容量。

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: oreoxmt

Merge Risk: Low · up to d233b

This documentation-only change states that nodes running DXF tasks must have identical CPU and memory. It does not say whether nodes in other service scopes are included, which could mislead mixed-scope clusters. There is no runtime risk, so it can be merged once the scope wording is clarified or the ambiguity is accepted.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“docs: document DXF node resource requirements”准确描述了主要变更,即记录 DXF 节点的资源要求。摘要显示本次变更在启用前提中新增了 CPU 核心数和内存大小一致的要求,与标题相符。标题简洁,未包含无关内容。
Description check Passed 描述基本完整。“What is changed”部分说明了文档新增的要求及原因(DXF 调度器假设节点资源容量一致)。版本选择已勾选 master、v9.0 和 v8.5。相关 PR 和参考链接已提供。AI 代理参与声明已勾选。描述中的“Validation passed”说明了已完成的检查。主要非关键缺失项是模板中的首次贡献者 CLA 复选框未勾选,但该项仅适用于首次贡献者,且模板允许此类非关键…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

描述基本完整。“What is changed”部分说明了文档新增的要求及原因(DXF 调度器假设节点资源容量一致)。版本选择已勾选 master、v9.0 和 v8.5。相关 PR 和参考链接已提供。AI 代理参与声明已勾选。描述中的“Validation passed”说明了已完成的检查。主要非关键缺失项是模板中的首次贡献者 CLA 复选框未勾选,但该项仅适用于首次贡献者,且模板允许此类非关键项缺失。

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 24410cd and d233bd2.

Files selected for processing: 1

  • tidb-distributed-execution-framework.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


## 启用前提

在所有有资格运行 DXF 任务的 TiDB 节点上使用相同数量的 CPU 核心和相同大小的内存。这是因为 DXF 调度器假设所有有资格的节点都具有相同的资源容量。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

明确资源一致性要求覆盖的节点范围。

文档中的“有资格运行 DXF 任务的 TiDB 节点”可理解为仅指当前任务 tidb_service_scope 对应的节点。源码中,pkg/dxf/framework/scheduler/nodes.go 的 refreshNodes 先从所有受框架管理的节点中取第一个 CPU 数大于 0 的值,并将其设为共享容量。之后才由 filterByScope 按 scope 筛选任务可用节点。因此,其他 scope 的节点也可能影响另一 scope 任务的容量。例如,若 "" scope 节点为 8 核、background scope 节点为 16 核,background 任务可能按 8 核容量调度,具体取决于节点列表顺序。

文档需要说明该要求覆盖的节点范围,并与 tidb_service_scope 的取值关系保持一致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. translation/from-docs This PR is translated from a PR in pingcap/docs. type/enhancement The issue or PR belongs to an enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant