From 9698a497b4b816265ddb8942cfa627faec8af638 Mon Sep 17 00:00:00 2001 From: tonyxuqqi Date: Wed, 17 May 2023 21:25:35 -0700 Subject: [PATCH] multirocks related config update (#13587) --- configure-load-base-split.md | 6 +++--- releases/release-7.1.0.md | 3 +++ tikv-configuration-file.md | 30 +++++++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/configure-load-base-split.md b/configure-load-base-split.md index 36b08e210b51c..63abac9ff2194 100644 --- a/configure-load-base-split.md +++ b/configure-load-base-split.md @@ -31,9 +31,9 @@ The Region split by Load Base Split will not be merged quickly. On the one hand, The Load Base Split feature is currently controlled by the following parameters: -- `split.qps-threshold`: The QPS threshold at which a Region is identified as a hotspot. The default value is `3000` per second. -- `split.byte-threshold`: The traffic threshold at which a Region is identified as a hotspot. The unit is byte and the default value is 30 MiB per second. (Introduced in v5.0) -- `split.region-cpu-overload-threshold-ratio`: The CPU usage threshold (the percentage of CPU time of the read thread pool) at which a Region is identified as a hotspot. The default value is `0.25`. (Introduced in v6.2.0) +- [`split.qps-threshold`](/tikv-configuration-file.md#qps-threshold): The QPS threshold at which a Region is identified as a hotspot. The default value is `3000` per second when [`region-split-size`](/tikv-configuration-file.md#region-split-size) is less than 4 GB; otherwise the default value is `7000`. +- [`split.byte-threshold`](/tikv-configuration-file.md#byte-threshold-new-in-v50): (Introduced in v5.0) The traffic threshold at which a Region is identified as a hotspot. The unit is byte. The default value is 30 MiB per second when `region-split-size` is less than 4 GB; otherwise the default value is 100 MiB per second. +- [`split.region-cpu-overload-threshold-ratio`](/tikv-configuration-file.md#region-cpu-overload-threshold-ratio-new-in-v620): (Introduced in v6.2.0) The CPU usage threshold (the percentage of CPU time of the read thread pool) at which a Region is identified as a hotspot. The default value is `0.25` when `region-split-size` is less than 4 GB; otherwise the default value is `0.75`. If a Region meets one of the following conditions for 10 consecutive seconds, TiKV tries to split the Region: diff --git a/releases/release-7.1.0.md b/releases/release-7.1.0.md index 5145b7995f1c3..0e4ce67e3a703 100644 --- a/releases/release-7.1.0.md +++ b/releases/release-7.1.0.md @@ -252,6 +252,9 @@ In v7.1.0, the key new features and improvements are as follows: | -------- | -------- | -------- | -------- | | TiDB | [`force-init-stats`](/tidb-configuration-file.md#force-init-stats-new-in-v710) | Newly added | Controls whether to wait for statistics initialization to finish before providing services during TiDB startup. | | TiDB | [`lite-init-stats`](/tidb-configuration-file.md#lite-init-stats-new-in-v710) | Newly added | Controls whether to use lightweight statistics initialization during TiDB startup. | +| TiKV | [`split.byte-threshold`](/tikv-configuration-file.md#byte-threshold-new-in-v50) | Modified | Changes the default value from `30MiB` to `100MiB` when [`region-split-size`](/tikv-configuration-file.md#region-split-size) is greater than or equal to 4 GB. | +| TiKV | [`split.qps-threshold`](/tikv-configuration-file.md#qps-threshold) | Modified | Changes the default value from `3000` to `7000` when [`region-split-size`](/tikv-configuration-file.md#region-split-size) is greater than or equal to 4 GB. | +| TiKV | [`split.region-cpu-overload-threshold-ratio`](/tikv-configuration-file.md#region-cpu-overload-threshold-ratio-new-in-v620) | Modified | Changes the default value from `0.25` to `0.75` when [`region-split-size`](/tikv-configuration-file.md#region-split-size) is greater than or equal to 4 GB. | | PD | [`store-limit-version`](/pd-configuration-file.md#store-limit-version-new-in-v710) | Newly added | Controls the mode of store limit. Value options are `"v1"` and `"v2"`. | | TiFlash | `http_port` | Deleted | Deprecates the HTTP service port (default `8123`). | | TiCDC | [`sink.enable-partition-separator`](/ticdc/ticdc-changefeed-config.md#cli-and-configuration-parameters-of-ticdc-changefeeds) | Modified | Changes the default value from `false` to `true` after further tests, meaning that partitions in a table are stored in separate directories by default. It is recommended that you keep the value as `true` to avoid the potential issue of data loss during replication of partitioned tables to storage services. | diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index a4e378bc98a97..d53bfa91d48f2 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2221,4 +2221,32 @@ Configuration items related to resource control of the TiKV storage layer. + Controls whether to enable scheduling for user foreground read/write requests according to [Request Unit (RU)](/tidb-resource-control.md#what-is-request-unit-ru) of the corresponding resource groups. For information about TiDB resource groups and resource control, see [TiDB resource control](/tidb-resource-control.md). + Enabling this configuration item only works when [`tidb_enable_resource_control](/system-variables.md#tidb_enable_resource_control-new-in-v660) is enabled on TiDB. When this configuration item is enabled, TiKV will use the priority queue to schedule the queued read/write requests from foreground users. The scheduling priority of a request is inversely related to the amount of resources already consumed by the resource group that receives this request, and positively related to the quota of the corresponding resource group. -+ Default value: `true`, which means scheduling based on the RU of the resource group is enabled. \ No newline at end of file ++ Default value: `true`, which means scheduling based on the RU of the resource group is enabled. + +## split + +Configuration items related to [Load Base Split](/configure-load-base-split.md). + +### `byte-threshold` New in v5.0 + ++ Controls the traffic threshold at which a Region is identified as a hotspot. ++ Default value: + + + `30MiB` per second when [`region-split-size`](#region-split-size) is less than 4 GB. + + `100MiB` per second when [`region-split-size`](#region-split-size) is greater than or equal to 4 GB. + +### `qps-threshold` + ++ Controls the QPS threshold at which a Region is identified as a hotspot. ++ Default value: + + + `3000` when [`region-split-size`](#region-split-size) is less than 4 GB. + + `7000` when [`region-split-size`](#region-split-size) is greater than or equal to 4 GB. + +### `region-cpu-overload-threshold-ratio` New in v6.2.0 + ++ Controls the CPU usage threshold at which a Region is identified as a hotspot. ++ Default value: + + + `0.25` when [`region-split-size`](#region-split-size) is less than 4 GB. + + `0.75` when [`region-split-size`](#region-split-size) is greater than or equal to 4 GB.