From 16105f57026eddfe80092f84a58fbcc9be5b8150 Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 29 Oct 2026 18:46:47 +0800 Subject: [PATCH 1/6] docs: clarify label-property support in PD microservices Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-configuration-file.md | 4 +++- pd-microservices.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pd-configuration-file.md b/pd-configuration-file.md index 7d78aff0b68d9..f9cacfdb0912b 100644 --- a/pd-configuration-file.md +++ b/pd-configuration-file.md @@ -477,6 +477,8 @@ Configuration items related to labels, which only support the `reject-leader` ty > **Note:** > > Starting from v5.2, the configuration items related to labels are deprecated. It is recommended to use [Placement Rules](/configure-placement-rules.md#scenario-2-place-five-replicas-in-three-data-centers-in-the-proportion-of-221-and-the-leader-should-not-be-in-the-third-data-center) to configure the replica policy. +> +> In PD microservice mode, the `scheduling` microservice does not support `label-property`. Use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler` instead. ### `key` (deprecated) @@ -572,4 +574,4 @@ The following are the configuration items about the [Request Unit (RU)](/tidb-re + Basis factor for conversion from CPU to RU + Default value: 1/3 -+ 1 RU = 3 millisecond CPU time \ No newline at end of file ++ 1 RU = 3 millisecond CPU time diff --git a/pd-microservices.md b/pd-microservices.md index 5d50b11f64dcb..38c09fbd97c22 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -37,6 +37,7 @@ In addition, when the scheduling module is changed, you can update the `scheduli - Microservices are not compatible with the [Data Replication Auto Synchronous (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) feature. - Microservices are not compatible with the TiDB system variable [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-new-in-v530). - Because [hibernate Regions](/tikv-configuration-file.md#hibernate-regions) might exist in a cluster, during a primary and secondary switchover of the `scheduling` microservice, the scheduling function of the cluster might be unavailable for a certain period (up to [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval), which is five minutes by default) to avoid redundant scheduling. +- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. ## Usage @@ -65,4 +66,4 @@ Microservices do not affect the normal use of data import, export, and other rep - How can I determine if PD becomes a performance bottleneck? - When your cluster is in a normal state, you can check monitoring metrics in the Grafana PD panel. If the `TiDB - PD server TSO handle time` metric shows a notable increase in latency or the `Heartbeat - TiKV side heartbeat statistics` metric shows a significant number of pending items, it indicates that PD becomes a performance bottleneck. \ No newline at end of file + When your cluster is in a normal state, you can check monitoring metrics in the Grafana PD panel. If the `TiDB - PD server TSO handle time` metric shows a notable increase in latency or the `Heartbeat - TiKV side heartbeat statistics` metric shows a significant number of pending items, it indicates that PD becomes a performance bottleneck. From 7b4933f7fc0f0358213e5daab35f770578b5bdf5 Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 29 Oct 2026 19:06:00 +0800 Subject: [PATCH 2/6] remove the trailing newlines added by mistake Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-configuration-file.md | 2 +- pd-microservices.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pd-configuration-file.md b/pd-configuration-file.md index f9cacfdb0912b..19897cc7bff99 100644 --- a/pd-configuration-file.md +++ b/pd-configuration-file.md @@ -574,4 +574,4 @@ The following are the configuration items about the [Request Unit (RU)](/tidb-re + Basis factor for conversion from CPU to RU + Default value: 1/3 -+ 1 RU = 3 millisecond CPU time ++ 1 RU = 3 millisecond CPU time \ No newline at end of file diff --git a/pd-microservices.md b/pd-microservices.md index 38c09fbd97c22..19da98be220ad 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -66,4 +66,4 @@ Microservices do not affect the normal use of data import, export, and other rep - How can I determine if PD becomes a performance bottleneck? - When your cluster is in a normal state, you can check monitoring metrics in the Grafana PD panel. If the `TiDB - PD server TSO handle time` metric shows a notable increase in latency or the `Heartbeat - TiKV side heartbeat statistics` metric shows a significant number of pending items, it indicates that PD becomes a performance bottleneck. + When your cluster is in a normal state, you can check monitoring metrics in the Grafana PD panel. If the `TiDB - PD server TSO handle time` metric shows a notable increase in latency or the `Heartbeat - TiKV side heartbeat statistics` metric shows a significant number of pending items, it indicates that PD becomes a performance bottleneck. \ No newline at end of file From 7fd1a32f53eeb199e02127e83a8c9a46a633f84f Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:57:49 +0800 Subject: [PATCH 3/6] docs: document label-property fallback Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-microservices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd-microservices.md b/pd-microservices.md index 19da98be220ad..28f3a5d1e2034 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -37,7 +37,7 @@ In addition, when the scheduling module is changed, you can update the `scheduli - Microservices are not compatible with the [Data Replication Auto Synchronous (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) feature. - Microservices are not compatible with the TiDB system variable [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-new-in-v530). - Because [hibernate Regions](/tikv-configuration-file.md#hibernate-regions) might exist in a cluster, during a primary and secondary switchover of the `scheduling` microservice, the scheduling function of the cluster might be unavailable for a certain period (up to [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval), which is five minutes by default) to avoid redundant scheduling. -- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. +- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. If no `scheduling` microservice is available and PD schedules by itself through `enable-scheduling-fallback` (enabled by default), `label-property` takes effect again. ## Usage From dc45fdaa64d0a682249ec86bec573ae2bd3cd46f Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:13:39 +0000 Subject: [PATCH 4/6] docs: clarify enable-scheduling-fallback condition Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-microservices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd-microservices.md b/pd-microservices.md index 28f3a5d1e2034..57b2d1c79d19e 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -53,7 +53,7 @@ For detailed information on using TiDB Operator, see the following documents: When deploying and using PD microservices, pay attention to the following: - After you enable microservices and restart PD for a cluster, PD stops allocating TSO for the cluster. Therefore, you need to deploy the `tso` microservice in the cluster when you enable microservices. -- If the `scheduling` microservice is deployed in a cluster, the scheduling function of the cluster is provided by the `scheduling` microservice. If the `scheduling` microservice is not deployed, the scheduling function of the cluster is still provided by PD. +- If the `scheduling` microservice is deployed in a cluster, the scheduling function of the cluster is provided by the `scheduling` microservice. If the `scheduling` microservice is not deployed and `enable-scheduling-fallback` is `true` (default), the scheduling function of the cluster is still provided by PD. - The `scheduling` microservice supports dynamic switching, which is enabled by default (`enable-scheduling-fallback` defaults to `true`). If the process of the `scheduling` microservice is terminated, PD continues to provide scheduling services for the cluster by default. If the binary versions of the `scheduling` microservice and PD are different, to prevent changes in the scheduling logic, you can disable the dynamic switching function of the `scheduling` microservice by executing `pd-ctl config set enable-scheduling-fallback false`. After this function is disabled, PD will not take over the scheduling service when the process of the `scheduling` microservice is terminated. This means that the scheduling service of the cluster will be unavailable until the `scheduling` microservice is restarted. From 7cdda068f154d45d2080bafc243c58ee97ae718d Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:39:11 +0000 Subject: [PATCH 5/6] docs: align enable-scheduling-fallback wording in restrictions Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-microservices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd-microservices.md b/pd-microservices.md index 57b2d1c79d19e..93823463fded7 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -37,7 +37,7 @@ In addition, when the scheduling module is changed, you can update the `scheduli - Microservices are not compatible with the [Data Replication Auto Synchronous (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) feature. - Microservices are not compatible with the TiDB system variable [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-new-in-v530). - Because [hibernate Regions](/tikv-configuration-file.md#hibernate-regions) might exist in a cluster, during a primary and secondary switchover of the `scheduling` microservice, the scheduling function of the cluster might be unavailable for a certain period (up to [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval), which is five minutes by default) to avoid redundant scheduling. -- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. If no `scheduling` microservice is available and PD schedules by itself through `enable-scheduling-fallback` (enabled by default), `label-property` takes effect again. +- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. If no `scheduling` microservice is available and `enable-scheduling-fallback` is `true` (default), PD provides scheduling by itself and `label-property` takes effect again. ## Usage From 07f4c5232b9e6a94399f39a729f620966994a7d7 Mon Sep 17 00:00:00 2001 From: lhy1024 <19542290+lhy1024@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:41:16 +0000 Subject: [PATCH 6/6] docs: apply review wording suggestion for fallback condition Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com> --- pd-microservices.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pd-microservices.md b/pd-microservices.md index 93823463fded7..eb58a44620c48 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -37,7 +37,7 @@ In addition, when the scheduling module is changed, you can update the `scheduli - Microservices are not compatible with the [Data Replication Auto Synchronous (DR Auto-Sync)](/two-data-centers-in-one-city-deployment.md) feature. - Microservices are not compatible with the TiDB system variable [`tidb_enable_tso_follower_proxy`](/system-variables.md#tidb_enable_tso_follower_proxy-new-in-v530). - Because [hibernate Regions](/tikv-configuration-file.md#hibernate-regions) might exist in a cluster, during a primary and secondary switchover of the `scheduling` microservice, the scheduling function of the cluster might be unavailable for a certain period (up to [`peer-stale-state-check-interval`](/tikv-configuration-file.md#peer-stale-state-check-interval), which is five minutes by default) to avoid redundant scheduling. -- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. If no `scheduling` microservice is available and `enable-scheduling-fallback` is `true` (default), PD provides scheduling by itself and `label-property` takes effect again. +- The `scheduling` microservice does not support the deprecated `label-property` configuration, so `reject-leader` label properties do not take effect when the `scheduling` microservice is enabled. To keep leaders off specific stores, use [Placement Rules](/configure-placement-rules.md) or `evict-leader-scheduler`. If no `scheduling` microservice is available and `enable-scheduling-fallback` is `true` (the default), PD provides scheduling itself, and `label-property` takes effect again. ## Usage @@ -53,7 +53,7 @@ For detailed information on using TiDB Operator, see the following documents: When deploying and using PD microservices, pay attention to the following: - After you enable microservices and restart PD for a cluster, PD stops allocating TSO for the cluster. Therefore, you need to deploy the `tso` microservice in the cluster when you enable microservices. -- If the `scheduling` microservice is deployed in a cluster, the scheduling function of the cluster is provided by the `scheduling` microservice. If the `scheduling` microservice is not deployed and `enable-scheduling-fallback` is `true` (default), the scheduling function of the cluster is still provided by PD. +- If the `scheduling` microservice is deployed in a cluster, the scheduling function of the cluster is provided by the `scheduling` microservice. If the `scheduling` microservice is not deployed and `enable-scheduling-fallback` is `true` (the default), the scheduling function of the cluster is still provided by PD. - The `scheduling` microservice supports dynamic switching, which is enabled by default (`enable-scheduling-fallback` defaults to `true`). If the process of the `scheduling` microservice is terminated, PD continues to provide scheduling services for the cluster by default. If the binary versions of the `scheduling` microservice and PD are different, to prevent changes in the scheduling logic, you can disable the dynamic switching function of the `scheduling` microservice by executing `pd-ctl config set enable-scheduling-fallback false`. After this function is disabled, PD will not take over the scheduling service when the process of the `scheduling` microservice is terminated. This means that the scheduling service of the cluster will be unavailable until the `scheduling` microservice is restarted.