jt2594838 commented on a change in pull request #258: [IOTDB-143]Development of 
merge
URL: https://github.com/apache/incubator-iotdb/pull/258#discussion_r314567286
 
 

 ##########
 File path: server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
 ##########
 @@ -229,6 +230,45 @@
    */
   private boolean chunkBufferPoolEnable = false;
 
+  /**
+   * How much memory (in byte) can be used by a single merge task.
+   */
+  private long mergeMemoryBudget = (long) (Runtime.getRuntime().maxMemory() * 
0.2);
+
+  /**
+   * How many thread will be set up to perform merges.
+   */
+  private int mergeThreadNum = 1;
+
+  /**
+   * When set to true, if some crashed merges are detected during system 
rebooting, such merges will
+   * be continued, otherwise, the unfinished parts of such merges will not be 
continued while the
+   * finished parts still remain as they are.
+   */
+  private boolean continueMergeAfterReboot = true;
+
+  /**
+   * A global merge will be performed each such interval, that is, each 
storage group will be merged
+   * (if proper merge candidates can be found). Unit: second.
+   */
+  private long mergeIntervalSec = 2 * 3600L;
+
+  /**
+   * When set to true, all merges becomes full merge (the whole SeqFiles are 
re-written despite how
+   * much they are overflowed). This may increase merge overhead depending on 
how much the SeqFiles
+   * are overflowed.
+   */
+  private boolean forceFullMerge = false;
+
+  /**
+   * During a merge, if a chunk with less number of chunks than this 
parameter, the chunk will be
+   * merged with its succeeding chunks even if it is not overflowed, until the 
merged chunks reach
+   * this threshold and the new chunk will be flushed.
+   */
+  private int chunkMergePointThreshold = 512;
+
+  private MergeFileStrategy mergeFileStrategy = 
MergeFileStrategy.MAX_SERIES_NUM;
 
 Review comment:
   This parameter is experimental, not for user. Developers may change it by 
changing the source code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to