From 4f55a85a6591910621d1de9d6021b4446852ae05 Mon Sep 17 00:00:00 2001 From: Aolin Date: Tue, 26 Aug 2025 11:41:53 +0800 Subject: [PATCH 1/6] tikv: update auto compaction config --- dynamic-config.md | 10 +++-- garbage-collection-configuration.md | 10 ++++- tikv-configuration-file.md | 68 +++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 5 deletions(-) diff --git a/dynamic-config.md b/dynamic-config.md index 8f97241e8b25c..5be09e24f79a4 100644 --- a/dynamic-config.md +++ b/dynamic-config.md @@ -138,10 +138,6 @@ The following TiKV configuration items can be modified dynamically: | `raftstore.max-apply-unpersisted-log-limit` | The maximum number of committed but not persisted Raft logs that can be applied | | `raftstore.split-region-check-tick-interval` | The time interval at which to check whether the Region split is needed | | `raftstore.region-split-check-diff` | The maximum value by which the Region data is allowed to exceed before Region split | -| `raftstore.region-compact-check-interval` | The time interval at which to check whether it is necessary to manually trigger RocksDB compaction | -| `raftstore.region-compact-check-step` | The number of Regions checked at one time for each round of manual compaction | -| `raftstore.region-compact-min-tombstones` | The number of tombstones required to trigger RocksDB compaction | -| `raftstore.region-compact-tombstones-percent` | The proportion of tombstone required to trigger RocksDB compaction | | `raftstore.pd-heartbeat-tick-interval` | The time interval at which a Region's heartbeat to PD is triggered | | `raftstore.pd-store-heartbeat-tick-interval` | The time interval at which a store's heartbeat to PD is triggered | | `raftstore.snap-mgr-gc-tick-interval` | The time interval at which the recycle of expired snapshot files is triggered | @@ -195,6 +191,12 @@ The following TiKV configuration items can be modified dynamically: | `gc.max-write-bytes-per-sec` | The maximum bytes that can be written into RocksDB per second | | `gc.enable-compaction-filter` | Whether to enable compaction filter | | `gc.compaction-filter-skip-version-check` | Whether to skip the cluster version check of compaction filter (not released) | +| `gc.auto-compaction.check-interval` | The time interval for checking whether to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.tombstone-num-threshold` | The number of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.tombstone-percent-threshold` | The percentage of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.redundant-rows-threshold` | The number of redundant MVCC rows required to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.redundant-rows-percent-threshold` | The percentage of redundant MVCC rows required to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.bottommost-level-force` | Whether to force the bottommost files in RocksDB to participate in compaction | | `{db-name}.max-total-wal-size` | The maximum size of total WAL | | `{db-name}.max-background-jobs` | The number of background threads in RocksDB | | `{db-name}.max-background-flushes` | The maximum number of flush threads in RocksDB | diff --git a/garbage-collection-configuration.md b/garbage-collection-configuration.md index 65c9672dd490e..78751a9a52d73 100644 --- a/garbage-collection-configuration.md +++ b/garbage-collection-configuration.md @@ -107,4 +107,12 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%'; | tikv | 172.16.5.36:20163 | gc.enable-compaction-filter | true | | tikv | 172.16.5.35:20163 | gc.enable-compaction-filter | true | +------+-------------------+-----------------------------+-------+ -``` \ No newline at end of file +``` + +> **Note:** +> +> When using the Compaction Filter mechanism, GC progress might be delayed, which can affect TiKV scan performance. If your workload contains a large number of coprocessor requests and you observe in the [**TiKV-Details > Coprocessor Detail**](/grafana-tikv-dashboard.md#coprocessor-detail) panel that the `next()` or `prev()` call count in **Total Ops Details** significantly exceeds three times the `processed_keys` calls, you can take the following actions: +> +> - For TiDB versions before v7.1.3, it is recommended to disable Compaction Filter to speed up GC. +> - For TiDB versions from v7.1.3 to v7.5.6, TiDB automatically triggers compaction based on the number of redundant versions in each Region [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and the percentage of redundant versions [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) to improve Compaction Filter GC performance. In this case, adjust these configuration items instead of disabling Compaction Filter. +> - Starting from v7.5.7, [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) are deprecated. TiDB now automatically triggers compaction based on [`gc.auto-compaction.redundant-rows-threshold`](/tikv-configuration-file.md#redundant-rows-threshold-new-in-v710-and-v900) and [`gc.auto-compaction.redundant-rows-percent-threshold`](/tikv-configuration-file.md#redundant-rows-percent-threshold-new-in-v710-and-v900). In this case, adjust these configuration items instead of disabling Compaction Filter. diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 33b4d9ff65fc9..938a0dc3e75c9 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -817,12 +817,20 @@ Configuration items related to Raftstore. ### `region-compact-check-interval` +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated and replaced by [`gc.auto-compaction.check-interval`](#check-interval-new-in-v757-and-v900). + + The time interval at which to check whether it is necessary to manually trigger RocksDB compaction. `0` means that this feature is disabled. + Default value: `"5m"` + Minimum value: `0` ### `region-compact-check-step` +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated. + + The number of Regions checked at one time for each round of manual compaction + Default value: @@ -832,12 +840,20 @@ Configuration items related to Raftstore. ### `region-compact-min-tombstones` +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated and replaced by [`gc.auto-compaction.tombstone-num-threshold`](#tombstone-num-threshold-new-in-v757-and-v900). + + The number of tombstones required to trigger RocksDB compaction + Default value: `10000` + Minimum value: `0` ### `region-compact-tombstones-percent` +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated and replaced by [`gc.auto-compaction.tombstone-percent-threshold`](#tombstone-percent-threshold-new-in-v757-and-v900). + + The proportion of tombstone required to trigger RocksDB compaction + Default value: `30` + Minimum value: `1` @@ -845,12 +861,20 @@ Configuration items related to Raftstore. ### `region-compact-min-redundant-rows` New in v7.1.0 +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated and replaced by [`gc.auto-compaction.redundant-rows-threshold`](#redundant-rows-threshold-new-in-v757-and-v900). + + The number of redundant MVCC rows required to trigger RocksDB compaction. + Default value: `50000` + Minimum value: `0` ### `region-compact-redundant-rows-percent` New in v7.1.0 +> **Warning:** +> +> Starting from v7.5.7 and v9.0.0, this configuration item is deprecated and replaced by [`gc.auto-compaction.redundant-rows-percent-threshold`](#redundant-rows-percent-threshold-new-in-v757-and-v900). + + The percentage of redundant MVCC rows required to trigger RocksDB compaction. + Default value: `20` + Minimum value: `1` @@ -2255,6 +2279,50 @@ Configuration items related to TiDB Lightning import and BR restore. + The number of GC threads when `enable-compaction-filter` is `false`. + Default value: `1` +## gc.auto-compaction + +Configures the behavior of TiKV automatic compaction. + +### `check-interval` New in v7.5.7 and v9.0.0 + ++ The interval for checking whether TiKV needs to trigger automatic compaction. Within this interval, Regions that meet the automatic compaction conditions are processed based on priority. When the interval elapses, TiKV rescans Region information and recalculates priorities. ++ Default value: `"300s"` + +### `tombstone-num-threshold` New in v7.5.7 and v9.0.0 + ++ The number of RocksDB tombstones required to trigger TiKV automatic compaction. TiKV triggers automatic compaction when either this threshold for the number of tombstones is met or the condition for [`tombstone-percent-threshold`](#tombstone-percent-threshold-new-in-v757-and-v900) is satisfied. ++ This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is disabled. ++ Default value: `10000` ++ Minimum value: `0` + +### `tombstone-percent-threshold` New in v7.5.7 and v9.0.0 + ++ The percentage of RocksDB tombstones required to trigger TiKV automatic compaction. TiKV triggers automatic compaction when either this threshold for the percentage of tombstones is met or the condition for [`tombstone-num-threshold`](#tombstone-num-threshold-new-in-v757-and-v900) is satisfied. ++ This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is disabled. ++ Default value: `30` ++ Minimum value: `0` ++ Maximum value: `100` + +### `redundant-rows-threshold` New in v7.5.7 and v9.0.0 + ++ The number of redundant MVCC rows required to trigger TiKV automatic compaction, including RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. TiKV triggers automatic compaction when either this threshold for the number of redundant rows is met or the condition for [`redundant-rows-percent-threshold`](#redundant-rows-percent-threshold-new-in-v757-and-v900) is satisfied. ++ This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is enabled. ++ Default value: `50000` ++ Minimum value: `0` + +### `redundant-rows-percent-threshold` New in v7.5.7 and v9.0.0 + ++ The percentage of redundant MVCC rows required to trigger TiKV automatic compaction, including RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. TiKV triggers automatic compaction when either this threshold for the percentage of redundant rows is met or the condition for [`redundant-rows-threshold`](#redundant-rows-threshold-new-in-v757-and-v900) is satisfied. ++ This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is enabled. ++ Default value: `20` ++ Minimum value: `0` ++ Maximum value: `100` + +### `bottommost-level-force` New in v7.5.7 and v9.0.0 + ++ Controls whether to force the bottommost files in RocksDB to participate in compaction. ++ Default value: `true` + ## backup Configuration items related to BR backup. From 605f40a47c68a9c429c1f5eca5b975f3f16b3a89 Mon Sep 17 00:00:00 2001 From: Aolin Date: Tue, 2 Sep 2025 16:21:00 +0800 Subject: [PATCH 2/6] update --- dynamic-config.md | 4 ++-- tikv-configuration-file.md | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dynamic-config.md b/dynamic-config.md index 5be09e24f79a4..7546c8918abde 100644 --- a/dynamic-config.md +++ b/dynamic-config.md @@ -191,12 +191,12 @@ The following TiKV configuration items can be modified dynamically: | `gc.max-write-bytes-per-sec` | The maximum bytes that can be written into RocksDB per second | | `gc.enable-compaction-filter` | Whether to enable compaction filter | | `gc.compaction-filter-skip-version-check` | Whether to skip the cluster version check of compaction filter (not released) | -| `gc.auto-compaction.check-interval` | The time interval for checking whether to trigger TiKV automatic (RocksDB) compaction | +| `gc.auto-compaction.check-interval` | The time interval at which TiKV checks whether to trigger automatic (RocksDB) compaction | | `gc.auto-compaction.tombstone-num-threshold` | The number of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | | `gc.auto-compaction.tombstone-percent-threshold` | The percentage of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | | `gc.auto-compaction.redundant-rows-threshold` | The number of redundant MVCC rows required to trigger TiKV automatic (RocksDB) compaction | | `gc.auto-compaction.redundant-rows-percent-threshold` | The percentage of redundant MVCC rows required to trigger TiKV automatic (RocksDB) compaction | -| `gc.auto-compaction.bottommost-level-force` | Whether to force the bottommost files in RocksDB to participate in compaction | +| `gc.auto-compaction.bottommost-level-force` | Whether to force compaction on the bottommost level files in RocksDB | | `{db-name}.max-total-wal-size` | The maximum size of total WAL | | `{db-name}.max-background-jobs` | The number of background threads in RocksDB | | `{db-name}.max-background-flushes` | The maximum number of flush threads in RocksDB | diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 938a0dc3e75c9..198ac5ac20728 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2285,19 +2285,19 @@ Configures the behavior of TiKV automatic compaction. ### `check-interval` New in v7.5.7 and v9.0.0 -+ The interval for checking whether TiKV needs to trigger automatic compaction. Within this interval, Regions that meet the automatic compaction conditions are processed based on priority. When the interval elapses, TiKV rescans Region information and recalculates priorities. ++ The time interval at which TiKV checks whether to trigger automatic compaction. Within this interval, Regions that meet the automatic compaction conditions are processed based on priority. When the interval elapses, TiKV rescans Region information and recalculates priorities. + Default value: `"300s"` ### `tombstone-num-threshold` New in v7.5.7 and v9.0.0 -+ The number of RocksDB tombstones required to trigger TiKV automatic compaction. TiKV triggers automatic compaction when either this threshold for the number of tombstones is met or the condition for [`tombstone-percent-threshold`](#tombstone-percent-threshold-new-in-v757-and-v900) is satisfied. ++ The number of RocksDB tombstones required to trigger TiKV automatic compaction. When the number of tombstones reaches this threshold, or when the percentage of tombstones reaches [`tombstone-percent-threshold`](#tombstone-percent-threshold-new-in-v757-and-v900), TiKV triggers automatic compaction. + This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is disabled. + Default value: `10000` + Minimum value: `0` ### `tombstone-percent-threshold` New in v7.5.7 and v9.0.0 -+ The percentage of RocksDB tombstones required to trigger TiKV automatic compaction. TiKV triggers automatic compaction when either this threshold for the percentage of tombstones is met or the condition for [`tombstone-num-threshold`](#tombstone-num-threshold-new-in-v757-and-v900) is satisfied. ++ The percentage of RocksDB tombstones required to trigger TiKV automatic compaction. When the percentage of tombstones reaches this threshold, or when the number of tombstones reaches [`tombstone-num-threshold`](#tombstone-num-threshold-new-in-v757-and-v900), TiKV triggers automatic compaction. + This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is disabled. + Default value: `30` + Minimum value: `0` @@ -2305,14 +2305,14 @@ Configures the behavior of TiKV automatic compaction. ### `redundant-rows-threshold` New in v7.5.7 and v9.0.0 -+ The number of redundant MVCC rows required to trigger TiKV automatic compaction, including RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. TiKV triggers automatic compaction when either this threshold for the number of redundant rows is met or the condition for [`redundant-rows-percent-threshold`](#redundant-rows-percent-threshold-new-in-v757-and-v900) is satisfied. ++ The number of redundant MVCC rows required to trigger TiKV automatic compaction. Redundant rows include RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. When the number of redundant MVCC rows reaches this threshold, or when the percentage of these rows reaches [`redundant-rows-percent-threshold`](#redundant-rows-percent-threshold-new-in-v757-and-v900), TiKV triggers automatic compaction. + This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is enabled. + Default value: `50000` + Minimum value: `0` ### `redundant-rows-percent-threshold` New in v7.5.7 and v9.0.0 -+ The percentage of redundant MVCC rows required to trigger TiKV automatic compaction, including RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. TiKV triggers automatic compaction when either this threshold for the percentage of redundant rows is met or the condition for [`redundant-rows-threshold`](#redundant-rows-threshold-new-in-v757-and-v900) is satisfied. ++ The percentage of redundant MVCC rows required to trigger TiKV automatic compaction. Redundant rows include RocksDB tombstones, TiKV stale versions, and TiKV deletion tombstones. When the number of redundant MVCC rows reaches [`redundant-rows-threshold`](#redundant-rows-threshold-new-in-v757-and-v900), or when the percentage of these rows reaches `redundant-rows-percent-threshold`, TiKV triggers automatic compaction. + This configuration item takes effect only when [Compaction Filter](/garbage-collection-configuration.md) is enabled. + Default value: `20` + Minimum value: `0` @@ -2320,7 +2320,7 @@ Configures the behavior of TiKV automatic compaction. ### `bottommost-level-force` New in v7.5.7 and v9.0.0 -+ Controls whether to force the bottommost files in RocksDB to participate in compaction. ++ Controls whether to force compaction on the bottommost files in RocksDB. + Default value: `true` ## backup From 4302dc19a1df68a7f4383fe0ca983463f1927fb4 Mon Sep 17 00:00:00 2001 From: Aolin Date: Wed, 3 Sep 2025 16:06:19 +0800 Subject: [PATCH 3/6] Apply suggestions from code review Co-authored-by: Grace Cai --- dynamic-config.md | 2 +- tikv-configuration-file.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic-config.md b/dynamic-config.md index 7546c8918abde..a94a35c588f3f 100644 --- a/dynamic-config.md +++ b/dynamic-config.md @@ -191,7 +191,7 @@ The following TiKV configuration items can be modified dynamically: | `gc.max-write-bytes-per-sec` | The maximum bytes that can be written into RocksDB per second | | `gc.enable-compaction-filter` | Whether to enable compaction filter | | `gc.compaction-filter-skip-version-check` | Whether to skip the cluster version check of compaction filter (not released) | -| `gc.auto-compaction.check-interval` | The time interval at which TiKV checks whether to trigger automatic (RocksDB) compaction | +| `gc.auto-compaction.check-interval` | The interval at which TiKV checks whether to trigger automatic (RocksDB) compaction | | `gc.auto-compaction.tombstone-num-threshold` | The number of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | | `gc.auto-compaction.tombstone-percent-threshold` | The percentage of RocksDB tombstones required to trigger TiKV automatic (RocksDB) compaction | | `gc.auto-compaction.redundant-rows-threshold` | The number of redundant MVCC rows required to trigger TiKV automatic (RocksDB) compaction | diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 198ac5ac20728..fafbcee45657d 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2285,7 +2285,7 @@ Configures the behavior of TiKV automatic compaction. ### `check-interval` New in v7.5.7 and v9.0.0 -+ The time interval at which TiKV checks whether to trigger automatic compaction. Within this interval, Regions that meet the automatic compaction conditions are processed based on priority. When the interval elapses, TiKV rescans Region information and recalculates priorities. ++ The interval at which TiKV checks whether to trigger automatic compaction. Within this interval, Regions that meet the automatic compaction conditions are processed based on priority. When the interval elapses, TiKV rescans Region information and recalculates priorities. + Default value: `"300s"` ### `tombstone-num-threshold` New in v7.5.7 and v9.0.0 From 8ff68bed4b6f579ac24eb3401cb247ae322b7edb Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 4 Sep 2025 10:25:10 +0800 Subject: [PATCH 4/6] fix internal links --- garbage-collection-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garbage-collection-configuration.md b/garbage-collection-configuration.md index 78751a9a52d73..345fb63ea7bd6 100644 --- a/garbage-collection-configuration.md +++ b/garbage-collection-configuration.md @@ -115,4 +115,4 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%'; > > - For TiDB versions before v7.1.3, it is recommended to disable Compaction Filter to speed up GC. > - For TiDB versions from v7.1.3 to v7.5.6, TiDB automatically triggers compaction based on the number of redundant versions in each Region [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and the percentage of redundant versions [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) to improve Compaction Filter GC performance. In this case, adjust these configuration items instead of disabling Compaction Filter. -> - Starting from v7.5.7, [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) are deprecated. TiDB now automatically triggers compaction based on [`gc.auto-compaction.redundant-rows-threshold`](/tikv-configuration-file.md#redundant-rows-threshold-new-in-v710-and-v900) and [`gc.auto-compaction.redundant-rows-percent-threshold`](/tikv-configuration-file.md#redundant-rows-percent-threshold-new-in-v710-and-v900). In this case, adjust these configuration items instead of disabling Compaction Filter. +> - Starting from v7.5.7, [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) are deprecated. TiDB now automatically triggers compaction based on [`gc.auto-compaction.redundant-rows-threshold`](/tikv-configuration-file.md#redundant-rows-threshold-new-in-v757-and-v900) and [`gc.auto-compaction.redundant-rows-percent-threshold`](/tikv-configuration-file.md#redundant-rows-percent-threshold-new-in-v757-and-v900). In this case, adjust these configuration items instead of disabling Compaction Filter. From 415f4311e0af6f838587eb3cb744b77066bdeeb6 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 4 Sep 2025 10:28:11 +0800 Subject: [PATCH 5/6] add CustomContent --- garbage-collection-configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/garbage-collection-configuration.md b/garbage-collection-configuration.md index 345fb63ea7bd6..5a6b51106037e 100644 --- a/garbage-collection-configuration.md +++ b/garbage-collection-configuration.md @@ -109,6 +109,8 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%'; +------+-------------------+-----------------------------+-------+ ``` + + > **Note:** > > When using the Compaction Filter mechanism, GC progress might be delayed, which can affect TiKV scan performance. If your workload contains a large number of coprocessor requests and you observe in the [**TiKV-Details > Coprocessor Detail**](/grafana-tikv-dashboard.md#coprocessor-detail) panel that the `next()` or `prev()` call count in **Total Ops Details** significantly exceeds three times the `processed_keys` calls, you can take the following actions: @@ -116,3 +118,5 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%'; > - For TiDB versions before v7.1.3, it is recommended to disable Compaction Filter to speed up GC. > - For TiDB versions from v7.1.3 to v7.5.6, TiDB automatically triggers compaction based on the number of redundant versions in each Region [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and the percentage of redundant versions [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) to improve Compaction Filter GC performance. In this case, adjust these configuration items instead of disabling Compaction Filter. > - Starting from v7.5.7, [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) are deprecated. TiDB now automatically triggers compaction based on [`gc.auto-compaction.redundant-rows-threshold`](/tikv-configuration-file.md#redundant-rows-threshold-new-in-v757-and-v900) and [`gc.auto-compaction.redundant-rows-percent-threshold`](/tikv-configuration-file.md#redundant-rows-percent-threshold-new-in-v757-and-v900). In this case, adjust these configuration items instead of disabling Compaction Filter. + + \ No newline at end of file From 604529ed228be2dc18ba3adb0f58b4c624b364f8 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 4 Sep 2025 11:16:31 +0800 Subject: [PATCH 6/6] make ci happy --- garbage-collection-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garbage-collection-configuration.md b/garbage-collection-configuration.md index 5a6b51106037e..f06b20d5c36d0 100644 --- a/garbage-collection-configuration.md +++ b/garbage-collection-configuration.md @@ -119,4 +119,4 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%'; > - For TiDB versions from v7.1.3 to v7.5.6, TiDB automatically triggers compaction based on the number of redundant versions in each Region [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and the percentage of redundant versions [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) to improve Compaction Filter GC performance. In this case, adjust these configuration items instead of disabling Compaction Filter. > - Starting from v7.5.7, [`region-compact-min-redundant-rows`](/tikv-configuration-file.md#region-compact-min-redundant-rows-new-in-v710) and [`region-compact-redundant-rows-percent`](/tikv-configuration-file.md#region-compact-redundant-rows-percent-new-in-v710) are deprecated. TiDB now automatically triggers compaction based on [`gc.auto-compaction.redundant-rows-threshold`](/tikv-configuration-file.md#redundant-rows-threshold-new-in-v757-and-v900) and [`gc.auto-compaction.redundant-rows-percent-threshold`](/tikv-configuration-file.md#redundant-rows-percent-threshold-new-in-v757-and-v900). In this case, adjust these configuration items instead of disabling Compaction Filter. - \ No newline at end of file +