This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
The following commit(s) were added to refs/heads/main by this push:
new d486cde2 Region migration contents update (#523)
d486cde2 is described below
commit d486cde25df272c55ba57ce904781e76ed48a04e
Author: Li Yu Heng <[email protected]>
AuthorDate: Mon Jan 13 12:01:11 2025 +0800
Region migration contents update (#523)
* try
* try
* copy
---
src/UserGuide/Master/Tree/User-Manual/Load-Balance.md | 13 +++++++++++--
src/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md | 13 +++++++++++--
src/UserGuide/latest/User-Manual/Load-Balance.md | 13 +++++++++++--
src/zh/UserGuide/Master/Tree/User-Manual/Load-Balance.md | 11 ++++++++++-
src/zh/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md | 11 ++++++++++-
src/zh/UserGuide/latest/User-Manual/Load-Balance.md | 12 +++++++++++-
6 files changed, 64 insertions(+), 9 deletions(-)
diff --git a/src/UserGuide/Master/Tree/User-Manual/Load-Balance.md
b/src/UserGuide/Master/Tree/User-Manual/Load-Balance.md
index 17cfe039..45ae3299 100644
--- a/src/UserGuide/Master/Tree/User-Manual/Load-Balance.md
+++ b/src/UserGuide/Master/Tree/User-Manual/Load-Balance.md
@@ -39,8 +39,8 @@ Here is a schematic diagram of the region migration process :
1. It is recommended to only use the Region Migration feature on IoTDB 1.3.3
and higher versions.
2. Region migration is only supported when the consensus protocol is IoTConsus
or Ratis (in iotdb system. properties, the
`schema_region_consensus_protocol_class`
and`data_region_consensus_protocol_class`).
-3. Region migration will occupy system resources such as hard drives and
network bandwidth, and it is recommended to perform it during low business
loads.
-4. The region migration process will occupy WAL files, blocking the deletion
of WAL files in this consensus group. If the total number of WAL files reaches
`wal_file_size_threshold_in_byte`, writing will be blocked.
+3. Region migration consumes system resources such as disk space and network
bandwidth. It is recommended to perform the migration during periods of low
business load.
+4. Under ideal circumstances, Region migration does not affect user-side read
or write operations. In special cases, Region migration may block writes. For
detailed identification and handling of such situations, please refer to the
user guide.
### Instructions for use
@@ -93,3 +93,12 @@ Here is a schematic diagram of the region migration process :
Total line number = 3
It costs 0.003s
```
+- **Block Write**:
+ The region migration in IoTConsensus does not directly block writes.
However, since the process requires suspending the cleanup of WAL files, if the
accumulated WAL files exceed the threshold defined by
wal_throttle_threshold_in_byte, the current DataNode will pause writing until
the WAL files fall below the threshold.
+
+ If a write error occurs during the migration due to the WAL exceeding the
threshold (e.g., an error message like “The write is rejected because the wal
directory size has reached the threshold”), you can increase the
wal_throttle_threshold_in_byte value to 500GB or more to allow continued
writing. Use the following SQL statement:
+
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
\ No newline at end of file
diff --git a/src/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
b/src/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
index 17cfe039..45ae3299 100644
--- a/src/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
+++ b/src/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
@@ -39,8 +39,8 @@ Here is a schematic diagram of the region migration process :
1. It is recommended to only use the Region Migration feature on IoTDB 1.3.3
and higher versions.
2. Region migration is only supported when the consensus protocol is IoTConsus
or Ratis (in iotdb system. properties, the
`schema_region_consensus_protocol_class`
and`data_region_consensus_protocol_class`).
-3. Region migration will occupy system resources such as hard drives and
network bandwidth, and it is recommended to perform it during low business
loads.
-4. The region migration process will occupy WAL files, blocking the deletion
of WAL files in this consensus group. If the total number of WAL files reaches
`wal_file_size_threshold_in_byte`, writing will be blocked.
+3. Region migration consumes system resources such as disk space and network
bandwidth. It is recommended to perform the migration during periods of low
business load.
+4. Under ideal circumstances, Region migration does not affect user-side read
or write operations. In special cases, Region migration may block writes. For
detailed identification and handling of such situations, please refer to the
user guide.
### Instructions for use
@@ -93,3 +93,12 @@ Here is a schematic diagram of the region migration process :
Total line number = 3
It costs 0.003s
```
+- **Block Write**:
+ The region migration in IoTConsensus does not directly block writes.
However, since the process requires suspending the cleanup of WAL files, if the
accumulated WAL files exceed the threshold defined by
wal_throttle_threshold_in_byte, the current DataNode will pause writing until
the WAL files fall below the threshold.
+
+ If a write error occurs during the migration due to the WAL exceeding the
threshold (e.g., an error message like “The write is rejected because the wal
directory size has reached the threshold”), you can increase the
wal_throttle_threshold_in_byte value to 500GB or more to allow continued
writing. Use the following SQL statement:
+
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
\ No newline at end of file
diff --git a/src/UserGuide/latest/User-Manual/Load-Balance.md
b/src/UserGuide/latest/User-Manual/Load-Balance.md
index 17cfe039..3453ea10 100644
--- a/src/UserGuide/latest/User-Manual/Load-Balance.md
+++ b/src/UserGuide/latest/User-Manual/Load-Balance.md
@@ -39,8 +39,8 @@ Here is a schematic diagram of the region migration process :
1. It is recommended to only use the Region Migration feature on IoTDB 1.3.3
and higher versions.
2. Region migration is only supported when the consensus protocol is IoTConsus
or Ratis (in iotdb system. properties, the
`schema_region_consensus_protocol_class`
and`data_region_consensus_protocol_class`).
-3. Region migration will occupy system resources such as hard drives and
network bandwidth, and it is recommended to perform it during low business
loads.
-4. The region migration process will occupy WAL files, blocking the deletion
of WAL files in this consensus group. If the total number of WAL files reaches
`wal_file_size_threshold_in_byte`, writing will be blocked.
+3. Region migration consumes system resources such as disk space and network
bandwidth. It is recommended to perform the migration during periods of low
business load.
+4. Under ideal circumstances, Region migration does not affect user-side read
or write operations. In special cases, Region migration may block writes. For
detailed identification and handling of such situations, please refer to the
user guide.
### Instructions for use
@@ -93,3 +93,12 @@ Here is a schematic diagram of the region migration process :
Total line number = 3
It costs 0.003s
```
+- **Block Write**:
+ The region migration in IoTConsensus does not directly block writes.
However, since the process requires suspending the cleanup of WAL files, if the
accumulated WAL files exceed the threshold defined by
wal_throttle_threshold_in_byte, the current DataNode will pause writing until
the WAL files fall below the threshold.
+
+ If a write error occurs during the migration due to the WAL exceeding the
threshold (e.g., an error message like “The write is rejected because the wal
directory size has reached the threshold”), you can increase the
wal_throttle_threshold_in_byte value to 500GB or more to allow continued
writing. Use the following SQL statement:
+
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
diff --git a/src/zh/UserGuide/Master/Tree/User-Manual/Load-Balance.md
b/src/zh/UserGuide/Master/Tree/User-Manual/Load-Balance.md
index 494a39e2..87a23d2c 100644
--- a/src/zh/UserGuide/Master/Tree/User-Manual/Load-Balance.md
+++ b/src/zh/UserGuide/Master/Tree/User-Manual/Load-Balance.md
@@ -39,7 +39,7 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
1. 推荐仅在 IoTDB 1.3.3 以及更高版本使用 Region 迁移功能。
2. 仅在共识协议为 IoTConsensus、Ratis 时支持 Region
迁移(iotdb-system.properties中的`schema_region_consensus_protocol_class` 和
`data_region_consensus_protocol_class`)。
3. Region 迁移会占用硬盘和网络带宽等系统资源,推荐在低业务负载时进行。
-4. Region 迁移过程会占用 WAL 文件,阻塞本共识组 WAL 文件的删除,如果 WAL
文件总量达到`wal_file_size_threshold_in_byte`,则会阻塞写入。
+4. 在理想情况下,Region 迁移不影响用户侧读写。特殊情况下,Region 迁移可能阻塞写入,这种情况的具体鉴别与处理方式见使用说明。
### 使用说明
@@ -99,3 +99,12 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
It costs 0.003s
```
+- **阻塞写入**:
+
+ IoTConsensus 的 region 迁移不直接阻塞写入,但由于过程中需要阻塞 WAL 文件的清理,如果 WAL
文件堆积达到阈值`wal_throttle_threshold_in_byte`,那么当前 DataNode 会暂停写入,直到 WAL 文件恢复到阈值以下。
+
+ 如果迁移过程中由于 WAL 达到阈值造成写入报错(例如报错信息为 The write is rejected because the wal
directory size has reached the
threshold),可以将`wal_throttle_threshold_in_byte`调大到 500GB 或更大以允许继续写入。使用 SQL 语句:
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
diff --git a/src/zh/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
b/src/zh/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
index 494a39e2..99730de9 100644
--- a/src/zh/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
+++ b/src/zh/UserGuide/V2.0.1/Tree/User-Manual/Load-Balance.md
@@ -39,7 +39,7 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
1. 推荐仅在 IoTDB 1.3.3 以及更高版本使用 Region 迁移功能。
2. 仅在共识协议为 IoTConsensus、Ratis 时支持 Region
迁移(iotdb-system.properties中的`schema_region_consensus_protocol_class` 和
`data_region_consensus_protocol_class`)。
3. Region 迁移会占用硬盘和网络带宽等系统资源,推荐在低业务负载时进行。
-4. Region 迁移过程会占用 WAL 文件,阻塞本共识组 WAL 文件的删除,如果 WAL
文件总量达到`wal_file_size_threshold_in_byte`,则会阻塞写入。
+4. 在理想情况下,Region 迁移不影响用户侧读写。特殊情况下,Region 迁移可能阻塞写入,这种情况的具体鉴别与处理方式见使用说明。
### 使用说明
@@ -99,3 +99,12 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
It costs 0.003s
```
+- **阻塞写入**:
+
+ IoTConsensus 的 region 迁移不直接阻塞写入,但由于过程中需要阻塞 WAL 文件的清理,如果 WAL
文件堆积达到阈值`wal_throttle_threshold_in_byte`,那么当前 DataNode 会暂停写入,直到 WAL 文件恢复到阈值以下。
+
+ 如果迁移过程中由于 WAL 达到阈值造成写入报错(例如报错信息为 The write is rejected because the wal
directory size has reached the
threshold),可以将`wal_throttle_threshold_in_byte`调大到 500GB 或更大以允许继续写入。使用 SQL 语句:
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
\ No newline at end of file
diff --git a/src/zh/UserGuide/latest/User-Manual/Load-Balance.md
b/src/zh/UserGuide/latest/User-Manual/Load-Balance.md
index 494a39e2..a9093e0b 100644
--- a/src/zh/UserGuide/latest/User-Manual/Load-Balance.md
+++ b/src/zh/UserGuide/latest/User-Manual/Load-Balance.md
@@ -39,7 +39,7 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
1. 推荐仅在 IoTDB 1.3.3 以及更高版本使用 Region 迁移功能。
2. 仅在共识协议为 IoTConsensus、Ratis 时支持 Region
迁移(iotdb-system.properties中的`schema_region_consensus_protocol_class` 和
`data_region_consensus_protocol_class`)。
3. Region 迁移会占用硬盘和网络带宽等系统资源,推荐在低业务负载时进行。
-4. Region 迁移过程会占用 WAL 文件,阻塞本共识组 WAL 文件的删除,如果 WAL
文件总量达到`wal_file_size_threshold_in_byte`,则会阻塞写入。
+4. 在理想情况下,Region 迁移不影响用户侧读写。特殊情况下,Region 迁移可能阻塞写入,这种情况的具体鉴别与处理方式见使用说明。
### 使用说明
@@ -99,3 +99,13 @@ IoTDB 是一个分布式数据库,数据的均衡分布对集群的磁盘空
It costs 0.003s
```
+- **阻塞写入**:
+
+ IoTConsensus 的 region 迁移不直接阻塞写入,但由于过程中需要阻塞 WAL 文件的清理,如果 WAL
文件堆积达到阈值`wal_throttle_threshold_in_byte`,那么当前 DataNode 会暂停写入,直到 WAL 文件恢复到阈值以下。
+
+ 如果迁移过程中由于 WAL 达到阈值造成写入报错(例如报错信息为 The write is rejected because the wal
directory size has reached the
threshold),可以将`wal_throttle_threshold_in_byte`调大到 500GB 或更大以允许继续写入。使用 SQL 语句:
+ ```plain
+ IoTDB> set configuration "wal_throttle_threshold_in_byte"="536870912000"
+ Msg: The statement is executed successfully.
+ ```
+