You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/05/19 12:39:59 UTC

[iotdb] 01/01: [IOTDB-3087] enlarge default value of avg_series_point_number_threhold

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

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

commit 7df52c0058ff6f5a4c4d2e18b1a38a6a31065e81
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu May 19 20:39:40 2022 +0800

    [IOTDB-3087] enlarge default value of avg_series_point_number_threhold
---
 docs/UserGuide/Reference/Config-Manual.md                    | 12 ++++++------
 docs/zh/UserGuide/Reference/Config-Manual.md                 | 10 +++++-----
 server/src/assembly/resources/conf/iotdb-engine.properties   |  4 ++--
 .../src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java  |  2 +-
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/docs/UserGuide/Reference/Config-Manual.md b/docs/UserGuide/Reference/Config-Manual.md
index d044811ffa..338a109190 100644
--- a/docs/UserGuide/Reference/Config-Manual.md
+++ b/docs/UserGuide/Reference/Config-Manual.md
@@ -374,12 +374,12 @@ The permission definitions are in ${IOTDB\_CONF}/conf/jmx.access.
 
 * avg\_series\_point\_number\_threshold
 
-|Name| avg\_series\_point\_number\_threshold |
-|:---:|:---|
-|Description| max average number of point of each series in memtable|
-|Type|Int32|
-|Default| 10000 |
-|Effective|After restarting system|
+|Name| avg\_series\_point\_number\_threshold                  |
+|:---:|:-------------------------------------------------------|
+|Description| max average number of point of each series in memtable |
+|Type| Int32                                                  |
+|Default| 100000                                                 |
+|Effective| After restarting system                                |
 
 * tsfile\_size\_threshold
 
diff --git a/docs/zh/UserGuide/Reference/Config-Manual.md b/docs/zh/UserGuide/Reference/Config-Manual.md
index 9404d1f91f..92dbc78a80 100644
--- a/docs/zh/UserGuide/Reference/Config-Manual.md
+++ b/docs/zh/UserGuide/Reference/Config-Manual.md
@@ -534,11 +534,11 @@ Server,客户端的使用方式详见 [SQL 命令行终端(CLI)](https://i
 * avg\_series\_point\_number\_threshold
 
 |名字| avg\_series\_point\_number\_threshold |
-|:---:|:---|
-|描述| 内存中平均每个时间序列点数最大值,达到触发 flush |
-|类型| Int32 |
-|默认值| 10000 |
-|改后生效方式|重启服务生效|
+|:---:|:--------------------------------------|
+|描述| 内存中平均每个时间序列点数最大值,达到触发 flush           |
+|类型| Int32                                 |
+|默认值| 100000                                |
+|改后生效方式| 重启服务生效                                |
 
 * concurrent\_flush\_thread
 
diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 67c77c150c..0bd7c6a889 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -334,9 +334,9 @@ timestamp_precision=ms
 # Datatype: long
 # unseq_memtable_flush_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.
+# When the average point number of timeseries in memtable exceeds this, the memtable is flushed to disk. The default threshold is 100000.
 # Datatype: int
-# avg_series_point_number_threshold=10000
+# avg_series_point_number_threshold=100000
 
 # How many threads can concurrently flush. When <= 0, use CPU core number.
 # 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 6e9f0ce346..c063aef4d2 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
@@ -344,7 +344,7 @@ public class IoTDBConfig {
   private long unseqMemtableFlushCheckInterval = 10 * 60 * 1000L;
 
   /** When average series point number reaches this, flush the memtable to disk */
-  private int avgSeriesPointNumberThreshold = 10000;
+  private int avgSeriesPointNumberThreshold = 100000;
 
   /** Enable inner space compaction for sequence files */
   private boolean enableSeqSpaceCompaction = true;