Skip to content

Commit

Permalink
multirocks related config update (pingcap#13587)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxuqqi authored May 18, 2023
1 parent d6605ef commit 9698a49
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
6 changes: 3 additions & 3 deletions configure-load-base-split.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 3 additions & 0 deletions releases/release-7.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
30 changes: 29 additions & 1 deletion tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
+ 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` <span class="version-mark">New in v5.0</span>

+ 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` <span class="version-mark">New in v6.2.0</span>

+ 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.

0 comments on commit 9698a49

Please sign in to comment.