Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb v6.1.0 通过set config 或 tikv-ctl 在线修改rocksdb.defaultcf.soft-pending-compaction-bytes-limit参数后,没有生效
[TiDB Usage Environment] Production Environment
[TiDB Version] V6.1.0
[Encountered Problem: Problem Phenomenon and Impact]
-
View
show config where type=‘tikv’ and name=‘rocksdb.defaultcf.soft-pending-compaction-bytes-limit’;
show config where type=‘tikv’ and name=‘rocksdb.defaultcf.hard-pending-compaction-bytes-limit’; -
Modify:
set config tikvrocksdb.defaultcf.soft-pending-compaction-bytes-limit
= “256GB”;
set config tikvrocksdb.defaultcf.hard-pending-compaction-bytes-limit
= “2000GB”; -
View again: found that the default values have not been modified
show config where type=‘tikv’ and name=‘rocksdb.defaultcf.soft-pending-compaction-bytes-limit’;
show config where type=‘tikv’ and name=‘rocksdb.defaultcf.hard-pending-compaction-bytes-limit’; -
Check the configuration file of the tikv node and found that it has been modified
[rocksdb.defaultcf]
level0-file-num-compaction-trigger = 4
soft-pending-compaction-bytes-limit = “256GB”
hard-pending-compaction-bytes-limit = “2000GB”
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]