You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2023/05/05 08:52:49 UTC

[iotdb] branch add_config_for_min_cross_level created (now 14223e57cd6)

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

xingtanzjr pushed a change to branch add_config_for_min_cross_level
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 14223e57cd6 add config  min_cross_compaction_unseq_file_level for cross compaction

This branch includes the following new commits:

     new 14223e57cd6 add config  min_cross_compaction_unseq_file_level for cross compaction

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: add config min_cross_compaction_unseq_file_level for cross compaction

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 14223e57cd65fa42e3d074056a5af3fb0b462179
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri May 5 16:46:45 2023 +0800

    add config  min_cross_compaction_unseq_file_level for cross compaction
---
 node-commons/src/assembly/resources/conf/iotdb-common.properties   | 4 ++++
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java | 7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index df384af89c4..2b1499973ca 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -631,6 +631,10 @@ cluster_name=defaultCluster
 # Datatype: long, Unit: byte
 # max_cross_compaction_candidate_file_size=5368709120
 
+# The min inner compaction level of unsequence file which can be selected as candidate
+# Datatype: int
+# min_cross_compaction_unseq_file_level=1
+
 # If one merge file selection runs for more than this time, it will be ended and its current
 # selection will be used as final selection.
 # When < 0, it means time is unbounded.
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 505dce929f0..9025735d2ce 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -665,7 +665,12 @@ public class IoTDBDescriptor {
             properties.getProperty(
                 "max_cross_compaction_candidate_file_size",
                 Long.toString(conf.getMaxCrossCompactionCandidateFileSize()))));
-
+    conf.setMinCrossCompactionUnseqFileLevel(
+        Integer.parseInt(
+            properties.getProperty(
+                "min_cross_compaction_unseq_file_level",
+                Integer.toString(conf.getMinCrossCompactionUnseqFileLevel()))));
+    
     conf.setCompactionWriteThroughputMbPerSec(
         Integer.parseInt(
             properties.getProperty(