Skip to content

Commit a81d744

Browse files
authored
tikv: update auto compaction config (#21656) (#21726) (#21728)
1 parent 868a3d0 commit a81d744

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

garbage-collection-configuration.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,15 @@ show config where type = 'tikv' and name like '%enable-compaction-filter%';
106106
| tikv | 172.16.5.36:20163 | gc.enable-compaction-filter | true |
107107
| tikv | 172.16.5.35:20163 | gc.enable-compaction-filter | true |
108108
+------+-------------------+-----------------------------+-------+
109-
```
109+
```
110+
111+
<CustomContent platform="tidb">
112+
113+
> **Note:**
114+
>
115+
> 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+
>
117+
> - For TiDB versions before v7.1.3, it is recommended to disable Compaction Filter to speed up GC.
118+
> - Starting from v7.1.3, 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.
119+
120+
</CustomContent>

0 commit comments

Comments
 (0)