From 7f6103ba3db8ea5a6440ca9e3b7e3d4c338cf3a2 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 6a9beacb34213..21c28ce41916a 100644 --- a/pd-configuration-file.md +++ b/pd-configuration-file.md @@ -495,6 +495,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) @@ -590,4 +592,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 70bcaa024075f..254504a072990 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 @@ -94,4 +95,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 436d46114decdf71bbb5ebcd33053ac500413ad2 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 21c28ce41916a..4bf7ce6302bd3 100644 --- a/pd-configuration-file.md +++ b/pd-configuration-file.md @@ -592,4 +592,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 254504a072990..1c937042f51ff 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -95,4 +95,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 0d8b35a88ffebd2163678bc97d5122f3c0beebb8 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 1c937042f51ff..16117567b61f0 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 139ab8f7bb91f5a93488429046e6aeeba410083a 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 16117567b61f0..28359617197b2 100644 --- a/pd-microservices.md +++ b/pd-microservices.md @@ -82,7 +82,7 @@ To deploy and configure PD microservices in a TiDB local cluster using TiUP Play 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 eb007c152d76a4f5941fc3dd6edcd605a824cbbd 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 28359617197b2..7505b4e0a50cf 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 afaaaf1e0245540e557c617e4862f55a3cf140a5 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 7505b4e0a50cf..1075f12815134 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 @@ -82,7 +82,7 @@ To deploy and configure PD microservices in a TiDB local cluster using TiUP Play 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.