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 2023/05/10 03:17:27 UTC

[iotdb] branch rel/1.1 updated: [IOTDB-5827][TO rel/1.1] Fix the description for dn_multi_dir_strategy in iotdb-datanode.properties and update corresponding user manual (#9803)

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

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


The following commit(s) were added to refs/heads/rel/1.1 by this push:
     new 5ccef6b94d [IOTDB-5827][TO rel/1.1] Fix the description for dn_multi_dir_strategy in iotdb-datanode.properties and update corresponding user manual  (#9803)
5ccef6b94d is described below

commit 5ccef6b94dda04251d180093f897be92d9061210
Author: Zhang.Jinrui <xi...@gmail.com>
AuthorDate: Wed May 10 11:17:20 2023 +0800

    [IOTDB-5827][TO rel/1.1] Fix the description for dn_multi_dir_strategy in iotdb-datanode.properties and update corresponding user manual  (#9803)
---
 docs/UserGuide/Reference/DataNode-Config-Manual.md           | 2 +-
 docs/zh/UserGuide/Reference/DataNode-Config-Manual.md        | 2 +-
 server/src/assembly/resources/conf/iotdb-datanode.properties | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/UserGuide/Reference/DataNode-Config-Manual.md b/docs/UserGuide/Reference/DataNode-Config-Manual.md
index 86f0d600a4..7f5c6b568b 100644
--- a/docs/UserGuide/Reference/DataNode-Config-Manual.md
+++ b/docs/UserGuide/Reference/DataNode-Config-Manual.md
@@ -299,7 +299,7 @@ The permission definitions are in ${IOTDB\_CONF}/conf/jmx.access.
 |:---:|:---|
 |Description| IoTDB's strategy for selecting directories for TsFile in tsfile_dir. You can use a simple class name or a full name of the class. The system provides the following three strategies: <br>1. SequenceStrategy: IoTDB selects the directory from tsfile\_dir in order, traverses all the directories in tsfile\_dir in turn, and keeps counting;<br>2. MaxDiskUsableSpaceFirstStrategy: IoTDB first selects the directory with the largest free disk space in tsfile\_dir;<br>3. MinFolderOccup [...]
 |Type|String|
-|Default| MaxDiskUsableSpaceFirstStrategy |
+|Default| SequenceStrategy |
 |Effective|hot-load|
 
 * dn\_consensus\_dir
diff --git a/docs/zh/UserGuide/Reference/DataNode-Config-Manual.md b/docs/zh/UserGuide/Reference/DataNode-Config-Manual.md
index 21b268b7ac..be832e640f 100644
--- a/docs/zh/UserGuide/Reference/DataNode-Config-Manual.md
+++ b/docs/zh/UserGuide/Reference/DataNode-Config-Manual.md
@@ -291,7 +291,7 @@ IoTDB DataNode 与 Standalone 模式共用一套配置文件,均位于 IoTDB 
 |:------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [...]
 |   描述   | IoTDB 在 data\_dirs 中为 TsFile 选择目录时采用的策略。可使用简单类名或类名全称。系统提供以下三种策略:<br>1. SequenceStrategy:IoTDB 按顺序选择目录,依次遍历 data\_dirs 中的所有目录,并不断轮循;<br>2. MaxDiskUsableSpaceFirstStrategy:IoTDB 优先选择 data\_dirs 中对应磁盘空余空间最大的目录;<br>3. MinFolderOccupiedSpaceFirstStrategy:IoTDB 优先选择 data\_dirs 中已使用空间最小的目录;<br>4. UserDefineStrategyPackage(用户自定义策略)<br>您可以通过以下方法完成用户自定义策略:<br>1. 继承 org.apache.iotdb.db.conf.directories.strategy 类并实现自身的 Strategy 方法;<br>2. 将实现的类的完整类名(包名加类名,UserDefineStrategyPackage)填写到该配置项 [...]
 |   类型   | String                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [...]
-|  默认值   | MaxDiskUsableSpaceFirstStrategy                                                                                                                                                                                                                                                                                                                                                                                                                                                                   [...]
+|  默认值   | SequenceStrategy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [...]
 | 改后生效方式 | 热加载                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [...]
 
 * dn\_wal\_dirs
diff --git a/server/src/assembly/resources/conf/iotdb-datanode.properties b/server/src/assembly/resources/conf/iotdb-datanode.properties
index e0e1c4b2c5..1d498deade 100644
--- a/server/src/assembly/resources/conf/iotdb-datanode.properties
+++ b/server/src/assembly/resources/conf/iotdb-datanode.properties
@@ -163,7 +163,7 @@ dn_target_config_node_list=127.0.0.1:10710
 # 3. MinFolderOccupiedSpaceFirstStrategy: the system will choose the directory whose folder has the minimum occupied space.
 # 4. RandomOnDiskUsableSpaceStrategy: the system will randomly choose the directory based on usable space of disks. The more usable space, the greater the chance of being chosen;
 # Set SequenceStrategy,MaxDiskUsableSpaceFirstStrategy and MinFolderOccupiedSpaceFirstStrategy to apply the corresponding strategy.
-# If this property is unset, system will use MaxDiskUsableSpaceFirstStrategy as default strategy.
+# If this property is unset, system will use SequenceStrategy as default strategy.
 # For this property, fully-qualified class name (include package name) and simple class name are both acceptable.
 # dn_multi_dir_strategy=SequenceStrategy