@@ -818,38 +818,62 @@ raftstore 相关的配置项。
818
818
819
819
### ` region-compact-check-interval `
820
820
821
+ > ** 警告:**
822
+ >
823
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃,其功能由 [ ` gc.auto-compaction.check-interval ` ] ( #check-interval-从-v757-和-v900-版本开始引入 ) 代替。
824
+
821
825
+ 检查是否需要人工触发 RocksDB compaction 的时间间隔,0 表示不启用。
822
826
+ 默认值:5m
823
827
+ 最小值:0
824
828
825
829
### ` region-compact-check-step `
826
830
831
+ > ** 警告:**
832
+ >
833
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃。
834
+
827
835
+ 每轮校验人工 compaction 时,一次性检查的 Region 个数。
828
836
+ 默认值:
829
837
+ 当 ` storage.engine="raft-kv" ` 时,默认值为 100。
830
838
+ 当 ` storage.engine="partitioned-raft-kv" ` 时,默认值为 5。
831
839
832
840
### ` region-compact-min-tombstones `
833
841
842
+ > ** 警告:**
843
+ >
844
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃,其功能由 [ ` gc.auto-compaction.tombstone-num-threshold ` ] ( #tombstone-num-threshold-从-v757-和-v900-版本开始引入 ) 代替。
845
+
834
846
+ 触发 RocksDB compaction 需要的 tombstone 个数。
835
847
+ 默认值:10000
836
848
+ 最小值:0
837
849
838
850
### ` region-compact-tombstones-percent `
839
851
852
+ > ** 警告:**
853
+ >
854
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃,其功能由 [ ` gc.auto-compaction.tombstone-percent-threshold ` ] ( #tombstone-percent-threshold-从-v757-和-v900-版本开始引入 ) 代替。
855
+
840
856
+ 触发 RocksDB compaction 需要的 tombstone 所占比例。
841
857
+ 默认值:30
842
858
+ 最小值:1
843
859
+ 最大值:100
844
860
845
861
### ` region-compact-min-redundant-rows ` <span class =" version-mark " >从 v7.1.0 版本开始引入</span >
846
862
863
+ > ** 警告:**
864
+ >
865
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃,其功能由 [ ` gc.auto-compaction.redundant-rows-threshold ` ] ( #redundant-rows-threshold-从-v757-和-v900-版本开始引入 ) 代替。
866
+
847
867
+ 触发 RocksDB compaction 需要的冗余的 MVCC 数据行数。
848
868
+ 默认值:` 50000 `
849
869
+ 最小值:` 0 `
850
870
851
871
### ` region-compact-redundant-rows-percent ` <span class =" version-mark " >从 v7.1.0 版本开始引入</span >
852
872
873
+ > ** 警告:**
874
+ >
875
+ > 从 v7.5.7 和 v9.0.0 开始,该配置项被废弃,其功能由 [ ` gc.auto-compaction.redundant-rows-percent-threshold ` ] ( #redundant-rows-percent-threshold-从-v757-和-v900-版本开始引入 ) 代替。
876
+
853
877
+ 触发 RocksDB compaction 需要的冗余的 MVCC 数据行所占比例。
854
878
+ 默认值:` 20 `
855
879
+ 最小值:` 1 `
@@ -2258,6 +2282,50 @@ Raft Engine 相关的配置项。
2258
2282
+ 当 ` enable-compaction-filter ` 为 ` false ` 时 GC 线程个数。
2259
2283
+ 默认值:1
2260
2284
2285
+ ## gc.auto-compaction
2286
+
2287
+ 用于配置 TiKV 自动 compaction 的行为。
2288
+
2289
+ ### ` check-interval ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2290
+
2291
+ + TiKV 检查是否需要触发自动 compaction 的时间间隔。在此时间段内,满足自动 compaction 条件的 Region 会按优先级进行处理。当到达此间隔时,TiKV 会重新扫描 Region 信息并重新计算优先级。
2292
+ + 默认值:` "300s" `
2293
+
2294
+ ### ` tombstone-num-threshold ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2295
+
2296
+ + 触发 TiKV 自动 compaction 需要的 RocksDB tombstone 个数。当 tombstone 数量达到此阈值,或 tombstone 所占比例达到 [ ` tombstone-percent-threshold ` ] ( #tombstone-percent-threshold-从-v757-和-v900-版本开始引入 ) 时,TiKV 将触发自动 compaction。
2297
+ + 仅在关闭 [ Compaction Filter] ( /garbage-collection-configuration.md ) 时生效。
2298
+ + 默认值:` 10000 `
2299
+ + 最小值:` 0 `
2300
+
2301
+ ### ` tombstone-percent-threshold ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2302
+
2303
+ + 触发 TiKV 自动 compaction 需要的 RocksDB tombstone 所占比例。当 tombstone 所占比例达到此阈值,或 tombstone 数量达到 [ ` tombstone-num-threshold ` ] ( #tombstone-num-threshold-从-v757-和-v900-版本开始引入 ) 时,TiKV 将触发自动 compaction。
2304
+ + 仅在关闭 [ Compaction Filter] ( /garbage-collection-configuration.md ) 时生效。
2305
+ + 默认值:` 30 `
2306
+ + 最小值:` 0 `
2307
+ + 最大值:` 100 `
2308
+
2309
+ ### ` redundant-rows-threshold ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2310
+
2311
+ + 触发 TiKV 自动 compaction 需要的冗余的 MVCC 数据行数,包含 RocksDB tombstone、TiKV stale versions 和 TiKV deletion tombstones。当冗余的 MVCC 数据行数达到此阈值,或这些行数的占比达到 [ ` redundant-rows-percent-threshold ` ] ( #redundant-rows-percent-threshold-从-v757-和-v900-版本开始引入 ) 时,TiKV 将触发自动 compaction。
2312
+ + 仅在开启 [ Compaction Filter] ( /garbage-collection-configuration.md ) 时生效。
2313
+ + 默认值:` 50000 `
2314
+ + 最小值:` 0 `
2315
+
2316
+ ### ` redundant-rows-percent-threshold ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2317
+
2318
+ + 触发 TiKV 自动 compaction 需要的冗余的 MVCC 数据行数所占比例。冗余数据包含 RocksDB tombstone、TiKV stale versions 和 TiKV deletion tombstones。当冗余的 MVCC 数据行数达到 [ ` redundant-rows-threshold ` ] ( #redundant-rows-threshold-从-v757-和-v900-版本开始引入 ) ,或这些行数的占比达到 ` redundant-rows-percent-threshold ` 时,TiKV 将触发自动 compaction。
2319
+ + 仅在开启 [ Compaction Filter] ( /garbage-collection-configuration.md ) 时生效。
2320
+ + 默认值:` 20 `
2321
+ + 最小值:` 0 `
2322
+ + 最大值:` 100 `
2323
+
2324
+ ### ` bottommost-level-force ` <span class =" version-mark " >从 v7.5.7 和 v9.0.0 版本开始引入</span >
2325
+
2326
+ + 控制是否强制对 RocksDB 最底层文件进行 compaction。
2327
+ + 默认值:` true `
2328
+
2261
2329
## backup
2262
2330
2263
2331
用于 BR 备份相关的配置项。
0 commit comments