Skip to content

pd: note that the scheduling microservice does not support label-property - #22016

Merged
ti-chi-bot[bot] merged 4 commits into
pingcap:masterfrom
lhy1024:pd-microservices-label-property
Nov 26, 2026
Merged

ti-chi-bot[bot] merged 4 commits into
pingcap:masterfrom
lhy1024:pd-microservices-label-property

Conversation

@lhy1024

@lhy1024 lhy1024 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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

在 PD 微服务使用限制和 label-property 配置说明中补充:scheduling 微服务不支持已废弃的 label-property,需要让 Leader 不调度到特定 store 时应使用 Placement Rules 或 evict-leader-scheduler。

Which TiDB version(s) do your changes apply to? (Required)

  • 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

  • 文档
    • 补充说明:启用 scheduling 微服务时,不支持已废弃的 label-property 配置,reject-leader 类型也不会生效。
    • 如需限制 Leader 调度到特定 Store,可使用 Placement Rules 或 evict-leader-scheduler。
    • 未部署 scheduling 微服务时,只有 enable-scheduling-fallback 为 true(默认值),PD 才会提供调度功能;此时 label-property 配置仍会生效。

Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>
@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
Walkthrough

文档补充了 label-property 在 scheduling 微服务模式下的限制、生效条件和替代方案,并明确了未部署该微服务时 PD 提供调度的条件。

Changes: label-property 限制文档

Layer / File(s) Summary
说明配置限制和调度条件
pd-microservices.md, pd-configuration-file.md
说明启用 scheduling 微服务时不支持 label-property,且 reject-leader 类型不生效。无可用的 scheduling 微服务时,若 enable-scheduling-fallback 为 true(默认值),PD 自行调度时该配置重新生效。文档列出 Placement Rules 和 evict-leader-scheduler 作为替代方案,并明确该条件下 PD 提供调度。

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

Change: Other

Suggested reviewers: qiancai

Merge Risk: Low · previous review 70303

The docs now state that the scheduling microservice does not support label-property, and they point to Placement Rules and evict-leader-scheduler as alternatives. One minor clarification is still open: the text does not say that evict-leader-scheduler must be updated when new stores are added. This does not block merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“pd: note that the scheduling microservice does not support label-property”准确描述了主要变更:文档中新增 scheduling 微服务不支持已废弃 label-property 的说明。标题具体且与变更内容一致。
Description check Passed 描述基本完整。已说明变更内容、适用版本(master、v8.5、v8.1)、相关 PR 和 issue 链接,并勾选了 AI agent 参与项。变更内容说明清楚,替代方案(Placement Rules 或 evict-leader-scheduler)也已写明。第一位贡献者复选框未勾选,模板中该项为可选项,不影响通过。
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.
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

@lhy1024 lhy1024 added needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. labels Oct 29, 2026
@lhy1024 lhy1024 changed the title pd: 说明 scheduling 微服务不支持 label-property pd: note that the scheduling microservice does not support label-property Oct 29, 2026
Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>

@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 ced4dbc and 51b88e2.

Files selected for processing: 1
  • pd-microservices.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.

Comment thread pd-microservices.md Resolved
@ti-chi-bot

ti-chi-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

@YuhaoZhang00: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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.

Comment thread pd-microservices.md Resolved
Comment thread pd-microservices.md Outdated
- 与[同步部署模式 (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) 特性不兼容。
- 与 TiDB 系统变量 [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-从-v530-版本开始引入) 不兼容。
- 由于集群中可能存在[静默 Region](/tikv-configuration-file.md#hibernate-regions),`scheduling` 微服务在进行主备切换时,为避免冗余调度,集群可能存在最长 [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval) 时间内(默认为五分钟)没有调度的现象。
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务、PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务、PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务,PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

已按建议更新。

Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>

@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 51b88e2 and 703033f.

Files selected for processing: 1

  • pd-microservices.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.

Comment thread pd-microservices.md Outdated
- 与[同步部署模式 (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) 特性不兼容。
- 与 TiDB 系统变量 [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-从-v530-版本开始引入) 不兼容。
- 由于集群中可能存在[静默 Region](/tikv-configuration-file.md#hibernate-regions),`scheduling` 微服务在进行主备切换时,为避免冗余调度,集群可能存在最长 [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval) 时间内(默认为五分钟)没有调度的现象。
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务,PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。

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

说明替代方案的适用范围。

evict-leader-scheduler 按 store ID 配置,不会自动覆盖后来新增的同标签 store。用户从 label-property 迁移后,新增 store 仍可能接收 Leader。请说明需要为新增 store 更新调度器,并链接到配置方法;也请说明需要按标签持续约束时如何选择 Placement Rules。(raw.githubusercontent.com)

As per coding guidelines:“how to choose among multiple available methods”需要向用户说明。

Source: Coding guidelines

Comment thread pd-microservices.md Outdated
- 与[同步部署模式 (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) 特性不兼容。
- 与 TiDB 系统变量 [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-从-v530-版本开始引入) 不兼容。
- 由于集群中可能存在[静默 Region](/tikv-configuration-file.md#hibernate-regions),`scheduling` 微服务在进行主备切换时,为避免冗余调度,集群可能存在最长 [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval) 时间内(默认为五分钟)没有调度的现象。
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务,PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务,PD 通过 `enable-scheduling-fallback`(默认开启)自行调度,`label-property` 会重新生效。
- `scheduling` 微服务不支持已废弃的 `label-property` 配置,启用 `scheduling` 微服务后,`reject-leader` 类型的 label property 不生效。如需让 Leader 不调度到特定 store,请使用 [Placement Rules](/configure-placement-rules.md) 或 `evict-leader-scheduler`。如果没有可用的 `scheduling` 微服务,且 `enable-scheduling-fallback` 为 `true`(默认值),PD 会自行提供调度,此时 `label-property` 会重新生效。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

已按建议更新,并同步修改了英文文档 pingcap/docs#24593。

Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 26, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-11-26 10:41:25.332330412 +0000 UTC m=+178150.009912402: ☑️ agreed by qiancai.

@qiancai qiancai removed the missing-translation-status This PR does not have translation status info. label Nov 26, 2026
@qiancai qiancai added the translation/from-docs This PR is translated from a PR in pingcap/docs. label Nov 26, 2026
@qiancai qiancai self-assigned this Nov 26, 2026
@qiancai

qiancai commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

/approve

@qiancai qiancai added the lgtm label Nov 26, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

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 commented Nov 26, 2026

Copy link
Copy Markdown

In response to a cherrypick label: new pull request created: #22114

@ti-chi-bot

ti-chi-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

In response to a cherrypick label: new pull request created: #22115

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. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants