提交 014b60b2 编写于 作者: J Jinrui.Zhang

Make the candidate size of seq tsfile in cross space compaction will be...

Make the candidate size of seq tsfile in cross space compaction will be smaller than target_compaction_file_size * 1.5.
上级 e909394e
......@@ -237,7 +237,7 @@ public class RewriteCrossSpaceCompactionSelector implements ICrossSpaceSelector
long totalFileSize = unseqFile.getTsFileSize();
for (TsFileResource f : seqFiles) {
if (f.getTsFileSize() >= config.getTargetCompactionFileSize()) {
if (f.getTsFileSize() >= config.getTargetCompactionFileSize() * 1.5) {
// to avoid serious write amplification caused by cross space compaction, we restrict that
// seq files are no longer be compacted when the size reaches the threshold.
return false;
......
......@@ -593,7 +593,10 @@ cluster_name=defaultCluster
# Datatype: int
# candidate_compaction_task_queue_size = 50
# The target tsfile size in compaction
# This parameter is used in two places:
# 1. The target tsfile size of inner space compaction.
# 2. The candidate size of seq tsfile in cross space compaction will be smaller than target_compaction_file_size * 1.5.
# In most cases, the target file size of cross compaction won't exceed this threshold, and if it does, it will not be much larger than it.
# default is 2GB
# Datatype: long, Unit: byte
# target_compaction_file_size=2147483648
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册