Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 45 additions & 2 deletions src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,52 @@ localOrClusterMode
IoTDB> STOP REPAIR DATA ON CLUSTER;
```

## 5. Query Termination

### 5.1 Terminating Queries
## 5. Replica Repair

> This function has supported passing in a regionId list since V1.3.6, allowing multiple regions to be processed at one time.

### 5.1 Manual Expansion

**Description**: Expand the specified Region to the specified DataNode.

**Syntax**:

```SQL
extendRegionStatement
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
;
```

**Example**:

```SQL
IoTDB> EXTEND REGION 1,2,3 TO 3;
```

### 5.2 Manual Capacity Reduction

**Description**: Remove the specified Region from the specified DataNode.
> Note: Manual capacity reduction can only reduce the number of replicas to 1 at most, and cannot be reduced to 0.

**Syntax**:

```SQL
removeRegionStatement
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
;
```

**Example**:

```SQL
IoTDB> REMOVE REGION 1,2,3 FROM 2;
```


## 6. Query Termination

### 6.1 Terminating Queries

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

Expand Down
47 changes: 45 additions & 2 deletions src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,52 @@ localOrClusterMode
IoTDB> STOP REPAIR DATA ON CLUSTER;
```

## 5. Query Termination

### 5.1 Terminating Queries
## 5. Replica Repair

> This function has supported passing in a regionId list since V1.3.6, allowing multiple regions to be processed at one time.

### 5.1 Manual Expansion

**Description**: Expand the specified Region to the specified DataNode.

**Syntax**:

```SQL
extendRegionStatement
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
;
```

**Example**:

```SQL
IoTDB> EXTEND REGION 1,2,3 TO 3;
```

### 5.2 Manual Capacity Reduction

**Description**: Remove the specified Region from the specified DataNode.
> Note: Manual capacity reduction can only reduce the number of replicas to 1 at most, and cannot be reduced to 0.

**Syntax**:

```SQL
removeRegionStatement
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
;
```

**Example**:

```SQL
IoTDB> REMOVE REGION 1,2,3 FROM 2;
```


## 6. Query Termination

### 6.1 Terminating Queries

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

Expand Down
46 changes: 44 additions & 2 deletions src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,51 @@ localOrClusterMode
IoTDB> STOP REPAIR DATA ON CLUSTER;
```

## 5. 终止查询

### 5.1 主动终止查询
## 5. 副本修复

> 该功能从 V1.3.6 起支持传入 regionId list ,一次处理多个 region。

### 5.1 手动扩容

**含义**:将指定 Region 扩容到指定 DataNode 上。

#### 语法:

```SQL
extendRegionStatement
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
;
```

#### 示例:

```SQL
IoTDB> EXTEND REGION 1,2,3 TO 3;
```

### 5.2 手动缩容

**含义**:从指定 DataNode 上移除指定 Region。
> 注意:手动缩容至多将副本数缩减至 1 ,不能缩减至 0 。

#### 语法:

```SQL
removeRegionStatement
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
;
```

#### 示例:

```SQL
IoTDB> REMOVE REGION 1,2,3 FROM 2;
```

## 6. 终止查询

### 6.1 主动终止查询

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

Expand Down
54 changes: 49 additions & 5 deletions src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003
+-----------------------------+-----------------------+----------+-----------+--------------------------------------+
```


### 1.5 查看分区信息

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


## 2. 状态设置

### 2.1 更新配置项
Expand Down Expand Up @@ -353,9 +355,9 @@ localOrClusterMode
**参数解释**:

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

## 5. 终止查询

### 5.1 主动终止查询
## 5. 副本修复

> 该功能从 V1.3.6 起支持传入 regionId list ,一次处理多个 region。

### 5.1 手动扩容

**含义**:将指定 Region 扩容到指定 DataNode 上。

#### 语法:

```SQL
extendRegionStatement
: EXTEND REGION <region_id>(, <region_id>)* TO <data_node_id>
;
```

#### 示例:

```SQL
IoTDB> EXTEND REGION 1,2,3 TO 3;
```

### 5.2 手动缩容

**含义**:从指定 DataNode 上移除指定 Region。
> 注意:手动缩容至多将副本数缩减至 1 ,不能缩减至 0 。

#### 语法:

```SQL
removeRegionStatement
: REMOVE REGION <region_id>(, <region_id>)* FROM <data_node_id>
;
```

#### 示例:

```SQL
IoTDB> REMOVE REGION 1,2,3 FROM 2;
```

## 6. 终止查询

### 6.1 主动终止查询

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

Expand Down