【 TiDB 使用环境】生产环境
【 TiDB 版本】V6.1.0
【遇到的问题:问题现象及影响】
-
查看
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’; -
修改:
set config tikvrocksdb.defaultcf.soft-pending-compaction-bytes-limit
= “256GB” ;
set config tikvrocksdb.defaultcf.hard-pending-compaction-bytes-limit
= “2000GB”; -
再次查看:发现还是默认值没有修改
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’; -
查看tikv节点的配置文件,发现已经修改
[rocksdb.defaultcf]
level0-file-num-compaction-trigger = 4
soft-pending-compaction-bytes-limit = “256GB”
hard-pending-compaction-bytes-limit = “2000GB”
【资源配置】
【附件:截图/日志/监控】