Skip to content

Commit

Permalink
enable compaction filter by default (#5755) (#5780)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Mar 24, 2021
1 parent e8d7f9b commit e5fedb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garbage-collection-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ tikv-ctl --host=ip:port modify-tikv-config -m server -n gc.max_write_bytes_per_s
## GC in Compaction Filter 机制

TiDB 在 5.0.0-rc 版本中引入了 GC in Compaction Filter 机制。在分布式 GC 模式 (distributed GC) 的基础上,由 RocksDB 的 Compaction 过程来进行 GC,而不再使用一个单独的 GC worker 线程。这样做的好处是避免了 GC 引起的额外磁盘读取,以及避免清理掉的旧版本残留大量删除标记影响顺序扫描性能。该 GC 机制默认关闭。可以由 TiKV 配置文件中的以下开关控制:
TiDB 在 v5.0 RC 版本中引入了 GC in Compaction Filter 机制。该机制是在分布式 GC 模式 (distributed GC) 的基础上,由 RocksDB 的 Compaction 过程来进行 GC,而不再使用一个单独的 GC worker 线程。这样做的好处是避免了 GC 引起的额外磁盘读取,以及避免清理掉的旧版本残留大量删除标记影响顺序扫描性能。在 v5.0 RC 版本中该机制默认关闭,**在 v5.0 GA 及更新的版本中默认开启**。可以由 TiKV 配置文件中的以下开关控制:

{{< copyable "" >}}

Expand Down

0 comments on commit e5fedb5

Please sign in to comment.