From 2b414a80a7672b639e0dcb12079ce3ccd0e040ce Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Fri, 26 Mar 2021 11:41:24 +0800 Subject: [PATCH] update load base split config (#5098) (#5124) --- configure-load-base-split.md | 4 ++-- dynamic-config.md | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configure-load-base-split.md b/configure-load-base-split.md index cc9679b35bd30..c242fc52e0d06 100644 --- a/configure-load-base-split.md +++ b/configure-load-base-split.md @@ -28,9 +28,9 @@ The Region split by Load Base Split will not be merged quickly. On the one hand, ## Usage -The Load Base Split feature is currently controlled by the `split.qps-threshold` parameter. If the sum of all types of read requests per second for a Region exceeds the value of `split.qps-threshold` for 10 seconds on end, split the Region. +The Load Base Split feature is currently controlled by the `split.qps-threshold` parameter (QPS threshold) and `split.byte-threshold` parameter (traffic threshold). If the sum of all types of read requests per second for a Region exceeds the QPS threshold or traffic threshold for 10 consecutive seconds, PD splits the Region. -Load Base Split is enabled by default, but the parameter is set to a rather high value, defaulting to `3000`. If you want to disable this feature, set the threshold high enough. +Load Base Split is enabled by default, but the parameter is set to a rather high value. `split.qps-threshold` defaults to `3000` and `split.byte-threshold` defaults to 30MB/s. If you want to disable this feature, set the two thresholds high enough at the same time. To modify the parameter, take either of the following two methods: diff --git a/dynamic-config.md b/dynamic-config.md index 7d54417afd14d..78a3a7f83ea84 100644 --- a/dynamic-config.md +++ b/dynamic-config.md @@ -191,9 +191,10 @@ The following TiKV configuration items can be modified online: | `{db-name}.{cf-name}.titan.blob-run-mode` | The mode of processing blob files | | `storage.block-cache.capacity` | The size of shared block cache (supported since v4.0.3) | | `backup.num-threads` | The number of backup threads (supported since v4.0.3) | -| `split.qps-threshold` | The threshold to execute `load-base-split` on a Region. If the read QPS is higher than this value for 10 consecutive seconds, this Region should be split. | -| `split.split-balance-score` | The parameter of `load-base-split`, which ensures the load of the two split Regions is as balanced as possible | -| `split.split-contained-score` | The parameter of `load-base-split`, which reduces the cross-Region visits after split as much as possible | +| `split.qps-threshold` | The threshold to execute `load-base-split` on a Region. If the QPS of read requests for a Region exceeds `qps-threshold` for a consecutive period of time, this Region should be split.| +| `split.byte-threshold` | The threshold to execute `load-base-split` on a Region. If the traffic of read requests for a Region exceeds the `byte-threshold` for a consecutive period of time, this Region should be split. | +| `split.split-balance-score` | The parameter of `load-base-split`, which ensures the load of the two split Regions is as balanced as possible. The smaller the value is, the more balanced the load is. But setting it too small might cause split failure. | +| `split.split-contained-score` | The parameter of `load-base-split`. The smaller the value, the fewer cross-Region visits after Region split. | In the table above, parameters with the `{db-name}` or `{db-name}.{cf-name}` prefix are configurations related to RocksDB. The optional values of `db-name` are `rocksdb` and `raftdb`.