You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2021/08/31 10:42:31 UTC

[iotdb] branch master updated: change default value for timed flush memtable and timed close tsfile (#3875)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 820101c  change default value for timed flush memtable and timed close tsfile (#3875)
820101c is described below

commit 820101c80e4621c9bc150aed9337e76cb2188b06
Author: Alan Choo <43...@users.noreply.github.com>
AuthorDate: Tue Aug 31 18:42:05 2021 +0800

    change default value for timed flush memtable and timed close tsfile (#3875)
---
 .../resources/conf/iotdb-engine.properties         | 24 +++++++++++-----------
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 12 +++++------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 2ce3195..0f7727f 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -237,14 +237,14 @@ timestamp_precision=ms
 
 # If a memTable's created time is older than current time minus this, the memtable will be flushed to disk.
 # Only check sequence tsfiles' memtables.
-# The default flush interval is 12 * 60 * 60 * 1000. (unit: ms)
+# The default flush interval is 60 * 60 * 1000. (unit: ms)
 # Datatype: long
-# seq_memtable_flush_interval_in_ms=43200000
+# seq_memtable_flush_interval_in_ms=3600000
 
 # The interval to check whether sequence memtables need flushing.
-# The default flush check interval is 1 * 60 * 60 * 1000. (unit: ms)
+# The default flush check interval is 10 * 60 * 1000. (unit: ms)
 # Datatype: long
-# seq_memtable_flush_check_interval_in_ms=3600000
+# seq_memtable_flush_check_interval_in_ms=600000
 
 # Whether to timed flush unsequence tsfiles' memtables.
 # Datatype: boolean
@@ -252,28 +252,28 @@ timestamp_precision=ms
 
 # If a memTable's created time is older than current time minus this, the memtable will be flushed to disk.
 # Only check unsequence tsfiles' memtables.
-# The default flush interval is 12 * 60 * 60 * 1000. (unit: ms)
+# The default flush interval is 60 * 60 * 1000. (unit: ms)
 # Datatype: long
-# unseq_memtable_flush_interval_in_ms=43200000
+# unseq_memtable_flush_interval_in_ms=3600000
 
 # The interval to check whether unsequence memtables need flushing.
-# The default flush check interval is 1 * 60 * 60 * 1000. (unit: ms)
+# The default flush check interval is 10 * 60 * 1000. (unit: ms)
 # Datatype: long
-# unseq_memtable_flush_check_interval_in_ms=3600000
+# unseq_memtable_flush_check_interval_in_ms=600000
 
 # Whether to timed close tsfiles.
 # Datatype: boolean
 # enable_timed_close_tsfile=true
 
 # If a TsfileProcessor's last working memtable flush time is older than current time minus this and its working memtable is null, the TsfileProcessor will be closed.
-# The default close interval is 12 * 60 * 60 * 1000. (unit: ms)
+# The default close interval is 60 * 60 * 1000. (unit: ms)
 # Datatype: long
-# close_tsfile_interval_after_flushing_in_ms=43200000
+# close_tsfile_interval_after_flushing_in_ms=3600000
 
 # The interval to check whether tsfiles need closing.
-# The default close check interval is 1 * 60 * 60 * 1000. (unit: ms)
+# The default close check interval is 10 * 60 * 1000. (unit: ms)
 # Datatype: long
-# close_tsfile_check_interval_in_ms=3600000
+# close_tsfile_check_interval_in_ms=600000
 
 # When the average point number of timeseries in memtable exceeds this, the memtable is flushed to disk. The default threshold is 10000.
 # Datatype: int
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 263ee85..adff0c2 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
@@ -307,10 +307,10 @@ public class IoTDBConfig {
    * If a memTable's created time is older than current time minus this, the memtable will be
    * flushed to disk.(only check sequence tsfiles' memtables) Unit: ms
    */
-  private long seqMemtableFlushInterval = 12 * 60 * 60 * 1000L;
+  private long seqMemtableFlushInterval = 60 * 60 * 1000L;
 
   /** The interval to check whether sequence memtables need flushing. Unit: ms */
-  private long seqMemtableFlushCheckInterval = 60 * 60 * 1000L;
+  private long seqMemtableFlushCheckInterval = 10 * 60 * 1000L;
 
   /** Whether to timed flush unsequence tsfiles' memtables. */
   private boolean enableTimedFlushUnseqMemtable = true;
@@ -319,10 +319,10 @@ public class IoTDBConfig {
    * If a memTable's created time is older than current time minus this, the memtable will be
    * flushed to disk.(only check unsequence tsfiles' memtables) Unit: ms
    */
-  private long unseqMemtableFlushInterval = 12 * 60 * 60 * 1000L;
+  private long unseqMemtableFlushInterval = 60 * 60 * 1000L;
 
   /** The interval to check whether unsequence memtables need flushing. Unit: ms */
-  private long unseqMemtableFlushCheckInterval = 60 * 60 * 1000L;
+  private long unseqMemtableFlushCheckInterval = 10 * 60 * 1000L;
 
   /** Whether to timed close tsfiles. */
   private boolean enableTimedCloseTsFile = true;
@@ -331,10 +331,10 @@ public class IoTDBConfig {
    * If a TsfileProcessor's last working memtable flush time is older than current time minus this
    * and its working memtable is null, the TsfileProcessor will be closed. Unit: ms
    */
-  private long closeTsFileIntervalAfterFlushing = 12 * 60 * 60 * 1000L;
+  private long closeTsFileIntervalAfterFlushing = 60 * 60 * 1000L;
 
   /** The interval to check whether tsfiles need closing. Unit: ms */
-  private long closeTsFileCheckInterval = 60 * 60 * 1000L;
+  private long closeTsFileCheckInterval = 10 * 60 * 1000L;
 
   /** When average series point number reaches this, flush the memtable to disk */
   private int avgSeriesPointNumberThreshold = 10000;