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

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


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new 861eeaf  change default value for timed flush memtable and timed close 
tsfile (#3876)
861eeaf is described below

commit 861eeaf3de14324ae0c5971f1ef9e9954f9d8376
Author: Alan Choo <[email protected]>
AuthorDate: Tue Aug 31 18:41:24 2021 +0800

    change default value for timed flush memtable and timed close tsfile (#3876)
---
 .../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 ea4d4e5..259996e 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -205,14 +205,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
@@ -220,28 +220,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.
 # avg_series_point_number_threshold=10000
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 aa63643..f9b8b43 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
@@ -281,10 +281,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;
@@ -293,10 +293,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;
@@ -305,10 +305,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;

Reply via email to