This is an automated email from the ASF dual-hosted git repository. chaow pushed a commit to branch close_compaction_by_default in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 9645df2841ee43d64fc0e043b8db5c21a5d53dbe Author: chaow <[email protected]> AuthorDate: Tue Aug 17 09:06:29 2021 +0800 close compaction by default --- server/src/assembly/resources/conf/iotdb-engine.properties | 13 +++++++++---- .../src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 10 +++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties index 3f7178e..daf7271 100644 --- a/server/src/assembly/resources/conf/iotdb-engine.properties +++ b/server/src/assembly/resources/conf/iotdb-engine.properties @@ -185,11 +185,11 @@ timestamp_precision=ms # When a unSequence TsFile's file size (in byte) exceeds this, the TsFile is forced closed. # It may cause memTable size smaller if it is a large value -# unseq_tsfile_size=1 +# unseq_tsfile_size=536870912 # When a sequence TsFile's file size (in byte) exceeds this, the TsFile is forced closed. # It may cause memTable size smaller if it is a large value -# seq_tsfile_size=1 +# seq_tsfile_size=536870912 # Size of log buffer in each metadata operation plan(in byte). # If the size of a metadata operation plan is larger than this parameter, then it will be rejected by MManager @@ -312,11 +312,16 @@ timestamp_precision=ms ### Merge Configurations #################### # LEVEL_COMPACTION, NO_COMPACTION -# compaction_strategy=LEVEL_COMPACTION +# compaction_strategy=NO_COMPACTION # Works when the compaction_strategy is LEVEL_COMPACTION. # Whether to merge unseq files into seq files or not. -# enable_unseq_compaction=true +# enable_unseq_compaction=false + +# Works when the compaction_strategy is LEVEL_COMPACTION. +# Whether to start next compaction task +# automatically after finish one compaction task +# enable_continuous_compaction=false # Start compaction task at this delay, unit is ms # compaction_interval=30000 diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java index 4ffd446..1e5c68e 100644 --- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java +++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java @@ -266,10 +266,10 @@ public class IoTDBConfig { private String indexRootFolder = "data" + File.separator + "index"; /** When a unSequence TsFile's file size (in byte) exceed this, the TsFile is forced closed. */ - private long unSeqTsFileSize = 1L; + private long unSeqTsFileSize = 536870912L; /** When a sequence TsFile's file size (in byte) exceed this, the TsFile is forced closed. */ - private long seqTsFileSize = 1L; + private long seqTsFileSize = 536870912L; /** When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. */ private long memtableSizeThreshold = 1024 * 1024 * 1024L; @@ -292,19 +292,19 @@ public class IoTDBConfig { private int mergePagePointNumberThreshold = 100; /** LEVEL_COMPACTION, NO_COMPACTION */ - private CompactionStrategy compactionStrategy = CompactionStrategy.LEVEL_COMPACTION; + private CompactionStrategy compactionStrategy = CompactionStrategy.NO_COMPACTION; /** * Works when the compaction_strategy is LEVEL_COMPACTION. Whether to merge unseq files into seq * files or not. */ - private boolean enableUnseqCompaction = true; + private boolean enableUnseqCompaction = false; /** * Works when the compaction_strategy is LEVEL_COMPACTION. Whether to start next compaction task * automatically after finish one compaction task */ - private boolean enableContinuousCompaction = true; + private boolean enableContinuousCompaction = false; /** * Works when the compaction_strategy is LEVEL_COMPACTION. The max seq file num of each level.
