Skip to content

Commit 42addd7

Browse files
authored
pd: complement pd section (#21204) (#21211)
1 parent dd70d02 commit 42addd7

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

dynamic-config.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,12 @@ The following PD configuration items can be modified dynamically:
266266
| `cluster-version` | The cluster version |
267267
| `schedule.max-merge-region-size` | Controls the size limit of `Region Merge` (in MiB) |
268268
| `schedule.max-merge-region-keys` | Specifies the maximum numbers of the `Region Merge` keys |
269-
| `schedule.patrol-region-interval` | Determines the frequency at which `replicaChecker` checks the health state of a Region |
269+
| `schedule.patrol-region-interval` | Determines the frequency at which the checker inspects the health state of a Region |
270270
| `schedule.split-merge-interval` | Determines the time interval of performing split and merge operations on the same Region |
271271
| `schedule.max-snapshot-count` | Determines the maximum number of snapshots that a single store can send or receive at the same time |
272272
| `schedule.max-pending-peer-count` | Determines the maximum number of pending peers in a single store |
273273
| `schedule.max-store-down-time` | The downtime after which PD judges that the disconnected store cannot be recovered |
274+
| `schedule.max-store-preparing-time` | Controls the maximum waiting time for the store to go online |
274275
| `schedule.leader-schedule-policy` | Determines the policy of Leader scheduling |
275276
| `schedule.leader-schedule-limit` | The number of Leader scheduling tasks performed at the same time |
276277
| `schedule.region-schedule-limit` | The number of Region scheduling tasks performed at the same time |
@@ -288,16 +289,39 @@ The following PD configuration items can be modified dynamically:
288289
| `schedule.enable-location-replacement` | Determines whether to enable isolation level check |
289290
| `schedule.enable-cross-table-merge` | Determines whether to enable cross-table merge |
290291
| `schedule.enable-one-way-merge` | Enables one-way merge, which only allows merging with the next adjacent Region |
292+
| `schedule.region-score-formula-version` | Controls the version of the Region score formula |
293+
| `schedule.scheduler-max-waiting-operator` | Controls the number of waiting operators in each scheduler |
294+
| `schedule.enable-debug-metrics` | Enables the metrics for debugging |
295+
| `schedule.enable-joint-consensus` | Controls whether to use Joint Consensus for replica scheduling |
296+
| `schedule.hot-regions-write-interval` | The time interval at which PD stores hot Region information |
297+
| `schedule.hot-regions-reserved-days` | Specifies how many days the hot Region information is retained |
298+
| `schedule.max-movable-hot-peer-size` | Controls the maximum Region size that can be scheduled for hot Region scheduling |
299+
| `schedule.store-limit-version` | Controls the version of [store limit](/configure-store-limit.md) |
291300
| `replication.max-replicas` | Sets the maximum number of replicas |
292301
| `replication.location-labels` | The topology information of a TiKV cluster |
293302
| `replication.enable-placement-rules` | Enables Placement Rules |
294303
| `replication.strictly-match-label` | Enables the label check |
304+
| `replication.isolation-level` | The minimum topological isolation level of a TiKV cluster |
295305
| `pd-server.use-region-storage` | Enables independent Region storage |
296306
| `pd-server.max-gap-reset-ts` | Sets the maximum interval of resetting timestamp (BR) |
297307
| `pd-server.key-type` | Sets the cluster key type |
298308
| `pd-server.metric-storage` | Sets the storage address of the cluster metrics |
299309
| `pd-server.dashboard-address` | Sets the dashboard address |
310+
| `pd-server.flow-round-by-digit` | Specifies the number of lowest digits to round for the Region flow information |
311+
| `pd-server.min-resolved-ts-persistence-interval` | Determines the interval at which the minimum resolved timestamp is persistent to the PD |
312+
| `pd-server.server-memory-limit` | The memory limit ratio for a PD instance |
313+
| `pd-server.server-memory-limit-gc-trigger` | The threshold ratio at which PD tries to trigger GC |
314+
| `pd-server.enable-gogc-tuner` | Controls whether to enable the GOGC Tuner |
315+
| `pd-server.gc-tuner-threshold` | The maximum memory threshold ratio for tuning GOGC |
300316
| `replication-mode.replication-mode` | Sets the backup mode |
317+
| `replication-mode.dr-auto-sync.label-key` | Distinguishes different AZs and needs to match Placement Rules |
318+
| `replication-mode.dr-auto-sync.primary` | The primary AZ |
319+
| `replication-mode.dr-auto-sync.dr` | The disaster recovery (DR) AZ |
320+
| `replication-mode.dr-auto-sync.primary-replicas` | The number of Voter replicas in the primary AZ |
321+
| `replication-mode.dr-auto-sync.dr-replicas` | The number of Voter replicas in the disaster recovery (DR) AZ |
322+
| `replication-mode.dr-auto-sync.wait-store-timeout` | The waiting time for switching to asynchronous replication mode when network isolation or failure occurs |
323+
| `replication-mode.dr-auto-sync.wait-recover-timeout` | The waiting time for switching back to the `sync-recover` status after the network recovers |
324+
| `replication-mode.dr-auto-sync.pause-region-split` | Controls whether to pause Region split operations in the `async_wait` and `async` statuses |
301325

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

pd-configuration-file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ Configuration items related to scheduling
285285
+ 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.
286286
+ Default value: `1h`
287287
288+
### `max-movable-hot-peer-size` <span class="version-mark">New in v6.1.0</span>
289+
290+
+ Controls the maximum Region size that can be scheduled for hot Region scheduling.
291+
+ Default value: `512`
292+
+ Unit: MiB
293+
288294
### `max-snapshot-count`
289295
290296
+ 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)