Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scale-tidb-using-tiup.md (#16743) #18620

Merged
Merged
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
48 changes: 46 additions & 2 deletions scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,29 @@ pd_servers:

预期日志结尾输出 ```Scaled cluster `<cluster-name>` out successfully``` 信息,表示扩容操作成功。

### 3. 检查集群状态
### 3. 刷新集群配置

> **注意:**
>
> 该操作仅需在扩容 PD 节点时执行,扩容 TiDB 或 TiKV 节点时无需执行。

1. 更新集群配置:

```shell
tiup cluster reload <cluster-name> --skip-restart
```

2. 更新 Prometheus 配置并重启:

> **注意:**
>
> 如果你使用的是 TiUP v1.15.0 及之后版本,请跳过此步骤;如果你使用的 TiUP 版本早于 v1.15.0,则需要执行以下命令来更新 Prometheus 配置并重启。

```shell
tiup cluster reload <cluster-name> -R prometheus
```

### 4. 查看集群状态

{{< copyable "shell-regular" >}}

Expand Down Expand Up @@ -326,7 +348,29 @@ tiup cluster scale-in <cluster-name> --node 10.0.1.5:20160

预期输出 Scaled cluster `<cluster-name>` in successfully 信息,表示缩容操作成功。

### 3. 检查集群状态
### 3. 刷新集群配置

> **注意:**
>
> 该操作仅需在缩容 PD 节点时执行,缩容 TiDB 或 TiKV 节点时无需执行。

1. 更新集群配置:

```shell
tiup cluster reload <cluster-name> --skip-restart
```

2. 更新 Prometheus 配置并重启:

> **注意:**
>
> 如果你使用的是 TiUP v1.15.0 及之后版本,请跳过此步骤;如果你使用的 TiUP 版本早于 v1.15.0,则需要执行以下命令来更新 Prometheus 配置并重启。

```shell
tiup cluster reload <cluster-name> -R prometheus
```

### 4. 查看集群状态

下线需要一定时间,下线节点的状态变为 Tombstone 就说明下线成功。

Expand Down
Loading