Skip to content

Commit e08eec6

Browse files
committed
add extend region and remove region to maintenance statement of 13x
1 parent abfab96 commit e08eec6

File tree

4 files changed

+183
-11
lines changed

4 files changed

+183
-11
lines changed

src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,52 @@ localOrClusterMode
427427
IoTDB> STOP REPAIR DATA ON CLUSTER;
428428
```
429429

430-
## 5. Query Termination
431430

432-
### 5.1 Terminating Queries
431+
## 5. Replica Repair
432+
433+
> This function has supported passing in a regionId list since V1.3.6, allowing multiple regions to be processed at one time.
434+
435+
### 5.1 Manual Expansion
436+
437+
**Description**: Expand the specified Region to the specified DataNode.
438+
439+
**Syntax**:
440+
441+
```SQL
442+
extendRegionStatement
443+
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
444+
;
445+
```
446+
447+
**Example**:
448+
449+
```SQL
450+
IoTDB> EXTEND REGION 1,2,3 TO 3;
451+
```
452+
453+
### 5.2 Manual Capacity Reduction
454+
455+
**Description**: Remove the specified Region from the specified DataNode.
456+
> Note: Manual capacity reduction can only reduce the number of replicas to 1 at most, and cannot be reduced to 0.
457+
458+
**Syntax**:
459+
460+
```SQL
461+
removeRegionStatement
462+
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
463+
;
464+
```
465+
466+
**Example**:
467+
468+
```SQL
469+
IoTDB> REMOVE REGION 1,2,3 FROM 2;
470+
```
471+
472+
473+
## 6. Query Termination
474+
475+
### 6.1 Terminating Queries
433476

434477
**Description**: Terminates one or more running queries.
435478

src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,52 @@ localOrClusterMode
427427
IoTDB> STOP REPAIR DATA ON CLUSTER;
428428
```
429429

430-
## 5. Query Termination
431430

432-
### 5.1 Terminating Queries
431+
## 5. Replica Repair
432+
433+
> This function has supported passing in a regionId list since V1.3.6, allowing multiple regions to be processed at one time.
434+
435+
### 5.1 Manual Expansion
436+
437+
**Description**: Expand the specified Region to the specified DataNode.
438+
439+
**Syntax**:
440+
441+
```SQL
442+
extendRegionStatement
443+
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
444+
;
445+
```
446+
447+
**Example**:
448+
449+
```SQL
450+
IoTDB> EXTEND REGION 1,2,3 TO 3;
451+
```
452+
453+
### 5.2 Manual Capacity Reduction
454+
455+
**Description**: Remove the specified Region from the specified DataNode.
456+
> Note: Manual capacity reduction can only reduce the number of replicas to 1 at most, and cannot be reduced to 0.
457+
458+
**Syntax**:
459+
460+
```SQL
461+
removeRegionStatement
462+
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
463+
;
464+
```
465+
466+
**Example**:
467+
468+
```SQL
469+
IoTDB> REMOVE REGION 1,2,3 FROM 2;
470+
```
471+
472+
473+
## 6. Query Termination
474+
475+
### 6.1 Terminating Queries
433476

434477
**Description**: Terminates one or more running queries.
435478

src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,51 @@ localOrClusterMode
441441
IoTDB> STOP REPAIR DATA ON CLUSTER;
442442
```
443443

444-
## 5. 终止查询
445444

446-
### 5.1 主动终止查询
445+
## 5. 副本修复
446+
447+
> 该功能从 V1.3.6 起支持传入 regionId list ,一次处理多个 region。
448+
449+
### 5.1 手动扩容
450+
451+
**含义**:将指定 Region 扩容到指定 DataNode 上。
452+
453+
#### 语法:
454+
455+
```SQL
456+
extendRegionStatement
457+
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
458+
;
459+
```
460+
461+
#### 示例:
462+
463+
```SQL
464+
IoTDB> EXTEND REGION 1,2,3 TO 3;
465+
```
466+
467+
### 5.2 手动缩容
468+
469+
**含义**:从指定 DataNode 上移除指定 Region。
470+
> 注意:手动缩容至多将副本数缩减至 1 ,不能缩减至 0 。
471+
472+
#### 语法:
473+
474+
```SQL
475+
removeRegionStatement
476+
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
477+
;
478+
```
479+
480+
#### 示例:
481+
482+
```SQL
483+
IoTDB> REMOVE REGION 1,2,3 FROM 2;
484+
```
485+
486+
## 6. 终止查询
487+
488+
### 6.1 主动终止查询
447489

448490
**含义**:使用该命令主动地终止查询。
449491

src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003
184184
+-----------------------------+-----------------------+----------+-----------+--------------------------------------+
185185
```
186186

187+
187188
### 1.5 查看分区信息
188189

189190
**含义**:返回当前集群的分区信息。
@@ -215,6 +216,7 @@ IoTDB> SHOW REGIONS
215216
+--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
216217
```
217218

219+
218220
## 2. 状态设置
219221

220222
### 2.1 更新配置项
@@ -353,9 +355,9 @@ localOrClusterMode
353355
**参数解释**
354356

355357
1. **identifier**
356-
- **含义**指定要刷写的路径名称
357-
- **可选性**:可选。如果不指定,则默认刷写所有路径
358-
- **多个路径**可以指定多个路径名称,用逗号分隔。例如:`FLUSH root.ln, root.lnm`
358+
- **含义**指定要刷写的数据库名称
359+
- **可选性**:可选。如果不指定,则默认刷写所有数据库
360+
- **多个数据库**可以指定多个数据库名称,用逗号分隔。例如:`FLUSH root.ln, root.lnm`
359361
2. **booleanValue**
360362
- **含义**:指定刷写的内容。
361363
- **可选性**:可选。如果不指定,则默认刷写顺序和乱序空间的内存。
@@ -439,9 +441,51 @@ localOrClusterMode
439441
IoTDB> STOP REPAIR DATA ON CLUSTER;
440442
```
441443

442-
## 5. 终止查询
443444

444-
### 5.1 主动终止查询
445+
## 5. 副本修复
446+
447+
> 该功能从 V1.3.6 起支持传入 regionId list ,一次处理多个 region。
448+
449+
### 5.1 手动扩容
450+
451+
**含义**:将指定 Region 扩容到指定 DataNode 上。
452+
453+
#### 语法:
454+
455+
```SQL
456+
extendRegionStatement
457+
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
458+
;
459+
```
460+
461+
#### 示例:
462+
463+
```SQL
464+
IoTDB> EXTEND REGION 1,2,3 TO 3;
465+
```
466+
467+
### 5.2 手动缩容
468+
469+
**含义**:从指定 DataNode 上移除指定 Region。
470+
> 注意:手动缩容至多将副本数缩减至 1 ,不能缩减至 0 。
471+
472+
#### 语法:
473+
474+
```SQL
475+
removeRegionStatement
476+
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
477+
;
478+
```
479+
480+
#### 示例:
481+
482+
```SQL
483+
IoTDB> REMOVE REGION 1,2,3 FROM 2;
484+
```
485+
486+
## 6. 终止查询
487+
488+
### 6.1 主动终止查询
445489

446490
**含义**:使用该命令主动地终止查询。
447491

0 commit comments

Comments
 (0)