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/06/05 06:56:35 UTC

[iotdb] branch rel/0.12 updated: change tsfile_size_threshold to 100000000

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 1e99ee9  change tsfile_size_threshold to 100000000
1e99ee9 is described below

commit 1e99ee9446b3cf9039141d67b580bbc592cd6f97
Author: qiaojialin <64...@qq.com>
AuthorDate: Sat Jun 5 14:55:52 2021 +0800

    change tsfile_size_threshold to 100000000
---
 server/src/assembly/resources/conf/iotdb-engine.properties     | 2 +-
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 54a1bec..3d72db5 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -185,7 +185,7 @@ timestamp_precision=ms
 
 # When a 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
-# tsfile_size_threshold=1
+# tsfile_size_threshold=100000000
 
 # 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
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 ccb25d2..d5b1bf2 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,7 +266,7 @@ public class IoTDBConfig {
   private String indexRootFolder = "data" + File.separator + "index";
 
   /** When a TsFile's file size (in byte) exceed this, the TsFile is forced closed. */
-  private long tsFileSizeThreshold = 1L;
+  private long tsFileSizeThreshold = 100000000L;
 
   /** When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. */
   private long memtableSizeThreshold = 1024 * 1024 * 1024L;