# Write-Related Parameters of RocksDB 
+ max-sub-compactions: The maximum number of threads that will concurrently perform a compaction job by splitting the job into multiple smaller ones that run simultaneously. This can compact the level0 data to the higher level in a shorter time.
+ When I/O performance is the bottleneck and CPU resources are plenty, you can modify the compaction. For example, set level0 and level1 to lz4 to decrease disk writes by decreasing CPU resources.
+ [rocksdb]
+ max-background-jobs = 8 # The maximum number of threads that execute the compaction operation.
+ max-sub-compactions = 1 # The level0 compaction job is divided into multiple threads to speed up compacting level0 data to a higher level.
+ [rocksdb.defaultcf] / [rocksdb.writecf]
+ compression-per-level = [“no”, “no”, “lz4”, “lz4”, “lz4”, “zstd”, “zstd”] # The compression algorithm for each level. 
+ level0-file-num-compaction-trigger = 4
+ level0-slowdown-writes-trigger = 20
+ level0-stop-writes-trigger = 36
------------------------------------------------------------

