Skip to content

Commit 885805f

Browse files
authored
pd: complement pd section (#21204)
1 parent ef22bcf commit 885805f

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

dynamic-config.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ The following PD configuration items can be modified dynamically:
283283
| `schedule.max-merge-region-size` | Controls the size limit of `Region Merge` (in MiB) |
284284
| `schedule.max-merge-region-keys` | Specifies the maximum numbers of the `Region Merge` keys |
285285
| `schedule.patrol-region-interval` | Determines the frequency at which the checker inspects the health state of a Region |
286-
| `scheduler.patrol-region-worker-count` | Controls the number of concurrent operators created by the checker when inspecting the health state of a Region |
287286
| `schedule.split-merge-interval` | Determines the time interval of performing split and merge operations on the same Region |
288287
| `schedule.max-snapshot-count` | Determines the maximum number of snapshots that a single store can send or receive at the same time |
289288
| `schedule.max-pending-peer-count` | Determines the maximum number of pending peers in a single store |
290289
| `schedule.max-store-down-time` | The downtime after which PD judges that the disconnected store cannot be recovered |
290+
| `schedule.max-store-preparing-time` | Controls the maximum waiting time for the store to go online |
291291
| `schedule.leader-schedule-policy` | Determines the policy of Leader scheduling |
292292
| `schedule.leader-schedule-limit` | The number of Leader scheduling tasks performed at the same time |
293293
| `schedule.region-schedule-limit` | The number of Region scheduling tasks performed at the same time |
@@ -305,16 +305,42 @@ The following PD configuration items can be modified dynamically:
305305
| `schedule.enable-location-replacement` | Determines whether to enable isolation level check |
306306
| `schedule.enable-cross-table-merge` | Determines whether to enable cross-table merge |
307307
| `schedule.enable-one-way-merge` | Enables one-way merge, which only allows merging with the next adjacent Region |
308+
| `schedule.region-score-formula-version` | Controls the version of the Region score formula |
309+
| `schedule.scheduler-max-waiting-operator` | Controls the number of waiting operators in each scheduler |
310+
| `schedule.enable-debug-metrics` | Enables the metrics for debugging |
311+
| `schedule.enable-heartbeat-concurrent-runner` | Enables asynchronous concurrent processing for Region heartbeats |
312+
| `schedule.enable-heartbeat-breakdown-metrics` | Enables breakdown metrics for Region heartbeats to measure the time consumed in each stage of Region heartbeat processing |
313+
| `schedule.enable-joint-consensus` | Controls whether to use Joint Consensus for replica scheduling |
314+
| `schedule.hot-regions-write-interval` | The time interval at which PD stores hot Region information |
315+
| `schedule.hot-regions-reserved-days` | Specifies how many days the hot Region information is retained |
316+
| `schedule.max-movable-hot-peer-size` | Controls the maximum Region size that can be scheduled for hot Region scheduling. |
317+
| `schedule.store-limit-version` | Controls the version of [store limit](/configure-store-limit.md) |
318+
| `schedule.patrol-region-worker-count` | Controls the number of concurrent operators created by the checker when inspecting the health state of a Region |
308319
| `replication.max-replicas` | Sets the maximum number of replicas |
309320
| `replication.location-labels` | The topology information of a TiKV cluster |
310321
| `replication.enable-placement-rules` | Enables Placement Rules |
311322
| `replication.strictly-match-label` | Enables the label check |
323+
| `replication.isolation-level` | The minimum topological isolation level of a TiKV cluster |
312324
| `pd-server.use-region-storage` | Enables independent Region storage |
313325
| `pd-server.max-gap-reset-ts` | Sets the maximum interval of resetting timestamp (BR) |
314326
| `pd-server.key-type` | Sets the cluster key type |
315327
| `pd-server.metric-storage` | Sets the storage address of the cluster metrics |
316328
| `pd-server.dashboard-address` | Sets the dashboard address |
329+
| `pd-server.flow-round-by-digit` | Specifies the number of lowest digits to round for the Region flow information |
330+
| `pd-server.min-resolved-ts-persistence-interval` | Determines the interval at which the minimum resolved timestamp is persistent to the PD |
331+
| `pd-server.server-memory-limit` | The memory limit ratio for a PD instance |
332+
| `pd-server.server-memory-limit-gc-trigger` | The threshold ratio at which PD tries to trigger GC |
333+
| `pd-server.enable-gogc-tuner` | Controls whether to enable the GOGC Tuner |
334+
| `pd-server.gc-tuner-threshold` | The maximum memory threshold ratio for tuning GOGC |
317335
| `replication-mode.replication-mode` | Sets the backup mode |
336+
| `replication-mode.dr-auto-sync.label-key` | Distinguishes different AZs and needs to match Placement Rules |
337+
| `replication-mode.dr-auto-sync.primary` | The primary AZ |
338+
| `replication-mode.dr-auto-sync.dr` | The disaster recovery (DR) AZ |
339+
| `replication-mode.dr-auto-sync.primary-replicas` | The number of Voter replicas in the primary AZ |
340+
| `replication-mode.dr-auto-sync.dr-replicas` | The number of Voter replicas in the disaster recovery (DR) AZ |
341+
| `replication-mode.dr-auto-sync.wait-store-timeout` | The waiting time for switching to asynchronous replication mode when network isolation or failure occurs |
342+
| `replication-mode.dr-auto-sync.wait-recover-timeout` | The waiting time for switching back to the `sync-recover` status after the network recovers |
343+
| `replication-mode.dr-auto-sync.pause-region-split` | Controls whether to pause Region split operations in the `async_wait` and `async` statuses |
318344

319345
For detailed parameter description, refer to [PD Configuration File](/pd-configuration-file.md).
320346

pd-configuration-file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ Configuration items related to scheduling
312312
+ Controls the time interval between the `split` and `merge` operations on the same Region. That means a newly split Region will not be merged for a while.
313313
+ Default value: `1h`
314314
315+
### `max-movable-hot-peer-size` <span class="version-mark">New in v6.1.0</span>
316+
317+
+ Controls the maximum Region size that can be scheduled for hot Region scheduling.
318+
+ Default value: `512`
319+
+ Unit: MiB
320+
315321
### `max-snapshot-count`
316322
317323
+ Controls the maximum number of snapshots that a single store receives or sends at the same time. PD schedulers depend on this configuration to prevent the resources used for normal traffic from being preempted.

0 commit comments

Comments
 (0)