Skip to content

Commit

Permalink
bump tidb and tiup version to 7.2.0 (#14338)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaaaaaang committed Jun 29, 2023
1 parent baf765e commit 60c18a2
Show file tree
Hide file tree
Showing 24 changed files with 79 additions and 79 deletions.
6 changes: 3 additions & 3 deletions br/backup-and-restore-use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ aliases: ['/docs-cn/dev/br/backup-and-restore-use-cases/','/docs-cn/dev/referenc

## 部署 TiDB 集群和 br 命令行工具

使用 PITR 功能,需要部署 v6.2.0 或以上版本的 TiDB 集群,并且更新 br 命令行工具到与 TiDB 集群相同的版本,本文假设使用的是 v7.1.0 版本。
使用 PITR 功能,需要部署 v6.2.0 或以上版本的 TiDB 集群,并且更新 br 命令行工具到与 TiDB 集群相同的版本,本文假设使用的是 v7.2.0 版本。

下表介绍了在 TiDB 集群中使用日志备份功能的推荐配置。

Expand All @@ -44,13 +44,13 @@ aliases: ['/docs-cn/dev/br/backup-and-restore-use-cases/','/docs-cn/dev/referenc
- 安装:

```shell
tiup install br:v7.1.0
tiup install br:v7.2.0
```

- 升级:

```shell
tiup update br:v7.1.0
tiup update br:v7.2.0
```

## 配置备份存储 (Amazon S3)
Expand Down
2 changes: 1 addition & 1 deletion dm/maintain-dm-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ tiup dmctl --master-addr master1:8261 operate-source create /tmp/source1.yml

此时可以通过命令行参数 `--native-ssh` 启用系统自带命令行:

- 部署集群:`tiup dm deploy <cluster-name> <version> <topo> --native-ssh`,其中 `<cluster-name>` 为集群名称,`<version>` 为 DM 集群版本(例如 `v7.1.0`),`<topo>` 为拓扑文件路径
- 部署集群:`tiup dm deploy <cluster-name> <version> <topo> --native-ssh`,其中 `<cluster-name>` 为集群名称,`<version>` 为 DM 集群版本(例如 `v7.2.0`),`<topo>` 为拓扑文件路径
- 启动集群:`tiup dm start <cluster-name> --native-ssh`
- 升级集群:`tiup dm upgrade ... --native-ssh`

Expand Down
2 changes: 1 addition & 1 deletion dm/quick-start-create-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ docker run --rm --name mysql-3307 -p 3307:3307 -e MYSQL_ALLOW_EMPTY_PASSWORD=tru
{{< copyable "shell-regular" >}}

```bash
wget https://download.pingcap.org/tidb-community-server-v7.1.0-linux-amd64.tar.gz
wget https://download.pingcap.org/tidb-community-server-v7.2.0-linux-amd64.tar.gz
tar -xzvf tidb-latest-linux-amd64.tar.gz
mv tidb-latest-linux-amd64/bin/tidb-server ./
./tidb-server -P 4000 --store mocktikv --log-file "./tidb.log" &
Expand Down
2 changes: 1 addition & 1 deletion information-schema/information-schema-tidb-servers-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SELECT * FROM TIDB_SERVERS_INFO\G
PORT: 4000
STATUS_PORT: 10080
LEASE: 45s
VERSION: 5.7.25-TiDB-v7.1.0
VERSION: 5.7.25-TiDB-v7.2.0
GIT_HASH: 635a4362235e8a3c0043542e629532e3c7bb2756
BINLOG_STATUS: Off
LABELS:
Expand Down
2 changes: 1 addition & 1 deletion pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PD Control 是 PD 的命令行工具,用于获取集群状态信息和调整

> **注意:**
>
> 下载链接中的 `{version}` 为 TiDB 的版本号。例如,amd64 架构的 `v7.1.0` 版本的下载链接为 `https://download.pingcap.org/tidb-community-server-v7.1.0-linux-amd64.tar.gz`
> 下载链接中的 `{version}` 为 TiDB 的版本号。例如,amd64 架构的 `v7.2.0` 版本的下载链接为 `https://download.pingcap.org/tidb-community-server-v7.2.0-linux-amd64.tar.gz`
### 源码编译

Expand Down
2 changes: 1 addition & 1 deletion post-installation-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mysql -u root -h ${tidb_server_host_IP_address} -P 4000
```sql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.25-TiDB-v7.1.0 TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible
Server version: 5.7.25-TiDB-v7.2.0 TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Expand Down
12 changes: 6 additions & 6 deletions production-deployment-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ aliases: ['/docs-cn/dev/production-offline-deployment-using-tiup/', '/zh/tidb/de

如果从官网下载的离线镜像不满足你的具体需求,或者希望对已有的离线镜像内容进行调整,例如增加某个组件的新版本等,可以采取以下步骤进行操作:

1. 在制作离线镜像时,可通过参数指定具体的组件和版本等信息,获得不完整的离线镜像。例如,要制作一个只包括 v1.11.3 版本 TiUP 和 TiUP Cluster 的离线镜像,可执行如下命令:
1. 在制作离线镜像时,可通过参数指定具体的组件和版本等信息,获得不完整的离线镜像。例如,要制作一个只包括 v1.12.3 版本 TiUP 和 TiUP Cluster 的离线镜像,可执行如下命令:

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

```bash
tiup mirror clone tiup-custom-mirror-v1.11.3 --tiup v1.11.3 --cluster v1.11.3
tiup mirror clone tiup-custom-mirror-v1.12.3 --tiup v1.12.3 --cluster v1.12.3
```

如果只需要某一特定平台的组件,也可以通过 `--os``--arch` 参数来指定。
Expand Down Expand Up @@ -175,10 +175,10 @@ aliases: ['/docs-cn/dev/production-offline-deployment-using-tiup/', '/zh/tidb/de
{{< copyable "shell-regular" >}}

```bash
tiup mirror merge tiup-custom-mirror-v1.11.3
tiup mirror merge tiup-custom-mirror-v1.12.3
```

5. 上述步骤完成后,通过 `tiup list` 命令检查执行结果。在本文例子中,使用 `tiup list tiup``tiup list cluster` 均应能看到对应组件的 `v1.11.3` 版本出现在结果中。
5. 上述步骤完成后,通过 `tiup list` 命令检查执行结果。在本文例子中,使用 `tiup list tiup``tiup list cluster` 均应能看到对应组件的 `v1.12.3` 版本出现在结果中。

#### 部署离线环境 TiUP 组件

Expand Down Expand Up @@ -341,13 +341,13 @@ alertmanager_servers:
{{< copyable "shell-regular" >}}

```shell
tiup cluster deploy tidb-test v7.1.0 ./topology.yaml --user root [-p] [-i /home/root/.ssh/gcp_rsa]
tiup cluster deploy tidb-test v7.2.0 ./topology.yaml --user root [-p] [-i /home/root/.ssh/gcp_rsa]
```

以上部署示例中:

- `tidb-test` 为部署的集群名称。
- `v7.1.0` 为部署的集群版本,可以通过执行 `tiup list tidb` 来查看 TiUP 支持的最新可用版本。
- `v7.2.0` 为部署的集群版本,可以通过执行 `tiup list tidb` 来查看 TiUP 支持的最新可用版本。
- 初始化配置文件为 `topology.yaml`
- `--user root` 表示通过 root 用户登录到目标主机完成集群部署,该用户需要有 ssh 到目标机器的权限,并且在目标机器有 sudo 权限。也可以用其他有 ssh 和 sudo 权限的用户完成部署。
- [-i][-p] 为可选项,如果已经配置免密登录目标机,则不需填写。否则选择其一即可,[-i] 为可登录到目标机的 root 用户(或 --user 指定的其他用户)的私钥,也可使用 [-p] 交互式输入该用户的密码。
Expand Down
10 changes: 5 additions & 5 deletions quick-start-with-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
{{< copyable "shell-regular" >}}

```shell
tiup playground v7.1.0 --db 2 --pd 3 --kv 3
tiup playground v7.2.0 --db 2 --pd 3 --kv 3
```

上述命令会在本地下载并启动某个版本的集群(例如 v7.1.0)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:
上述命令会在本地下载并启动某个版本的集群(例如 v7.2.0)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:

```log
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
Expand Down Expand Up @@ -198,10 +198,10 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
{{< copyable "shell-regular" >}}

```shell
tiup playground v7.1.0 --db 2 --pd 3 --kv 3
tiup playground v7.2.0 --db 2 --pd 3 --kv 3
```

上述命令会在本地下载并启动某个版本的集群(例如 v7.1.0)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:
上述命令会在本地下载并启动某个版本的集群(例如 v7.2.0)。最新版本可以通过执行 `tiup list tidb` 来查看。运行结果将显示集群的访问方式:

```log
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
Expand Down Expand Up @@ -432,7 +432,7 @@ TiDB 是一个分布式系统。最基础的 TiDB 测试集群通常由 2 个 Ti
```

- 参数 `<cluster-name>` 表示设置集群名称
- 参数 `<version>` 表示设置集群版本,例如 `v7.1.0`。可以通过 `tiup list tidb` 命令来查看当前支持部署的 TiDB 版本
- 参数 `<version>` 表示设置集群版本,例如 `v7.2.0`。可以通过 `tiup list tidb` 命令来查看当前支持部署的 TiDB 版本
- 参数 `-p` 表示在连接目标机器时使用密码登录

> **注意:**
Expand Down
4 changes: 2 additions & 2 deletions scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ tiup cluster display <cluster-name>
```

```
Starting /root/.tiup/components/cluster/v1.11.3/cluster display <cluster-name>
Starting /root/.tiup/components/cluster/v1.12.3/cluster display <cluster-name>
TiDB Cluster: <cluster-name>
TiDB Version: v7.1.0
TiDB Version: v7.2.0
ID Role Host Ports Status Data Dir Deploy Dir
Expand Down
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -4448,7 +4448,7 @@ Query OK, 0 rows affected, 1 warning (0.00 sec)

- 作用域:NONE
- 默认值:`5.7.25-TiDB-(tidb version)`
- 这个变量的值是 MySQL 的版本和 TiDB 的版本,例如 '5.7.25-TiDB-v7.1.0'。
- 这个变量的值是 MySQL 的版本和 TiDB 的版本,例如 '5.7.25-TiDB-v7.2.0'。

### `version_comment`

Expand Down
4 changes: 2 additions & 2 deletions ticdc/deploy-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ tiup cluster upgrade <cluster-name> <version> --transfer-timeout 600

> **注意:**
>
> 命令中的 `<cluster-name>` 需要替换为集群名字,`<version>` 需要替换为目标版本号,例如 v7.1.0。
> 命令中的 `<cluster-name>` 需要替换为集群名字,`<version>` 需要替换为目标版本号,例如 v7.2.0。
### 升级的注意事项

Expand Down Expand Up @@ -152,7 +152,7 @@ tiup cluster upgrade <cluster-name> <version> --transfer-timeout 600

## 使用 TiCDC 命令行工具来查看集群状态

执行以下命令来查看 TiCDC 集群运行状态,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v7.1.0`
执行以下命令来查看 TiCDC 集群运行状态,注意需要将 `v<CLUSTER_VERSION>` 替换为 TiCDC 集群版本,例如 `v7.2.0`

```shell
tiup ctl:v<CLUSTER_VERSION> cdc capture list --server=http://10.0.10.25:8300
Expand Down
2 changes: 1 addition & 1 deletion ticdc/ticdc-open-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ curl -X GET http://127.0.0.1:8300/api/v2/status

```json
{
"version": "v7.1.0",
"version": "v7.2.0",
"git_hash": "10413bded1bdb2850aa6d7b94eb375102e9c44dc",
"id": "d2912e63-3349-447c-90ba-72a4e04b5e9e",
"pid": 1447,
Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/get-started-with-tidb-binlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ sudo yum install -y mariadb-server
{{< copyable "shell-regular" >}}

```bash
curl -LO https://download.pingcap.org/tidb-community-server-v7.1.0-linux-amd64.tar.gz | tar xzf - &&
curl -LO https://download.pingcap.org/tidb-community-server-v7.2.0-linux-amd64.tar.gz | tar xzf - &&
cd tidb-latest-linux-amd64
```

Expand Down
2 changes: 1 addition & 1 deletion tidb-monitoring-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl http://127.0.0.1:10080/status
```
{
connections: 0, # 当前 TiDB Server 上的客户端连接数
version: "5.7.25-TiDB-v7.1.0", # TiDB 版本号
version: "5.7.25-TiDB-v7.2.0", # TiDB 版本号
git_hash: "7267747ae0ec624dffc3fdedb00f1ed36e10284b" # TiDB 当前代码的 Git Hash
}
```
Expand Down
4 changes: 2 additions & 2 deletions tiflash/create-tiflash-replicas.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA = "<db_name>
tiup ctl:v<CLUSTER_VERSION> pd -u http://<PD_ADDRESS>:2379 store limit all engine tiflash 60 add-peer
```

> 上述命令中,需要将 `v<CLUSTER_VERSION>` 替换为该集群版本,例如 `v7.1.0``<PD_ADDRESS>:2379` 替换为任一 PD 节点的地址。替换后样例为:
> 上述命令中,需要将 `v<CLUSTER_VERSION>` 替换为该集群版本,例如 `v7.2.0``<PD_ADDRESS>:2379` 替换为任一 PD 节点的地址。替换后样例为:
>
> ```shell
> tiup ctl:v7.1.0 pd -u http://192.168.1.4:2379 store limit all engine tiflash 60 add-peer
> tiup ctl:v7.2.0 pd -u http://192.168.1.4:2379 store limit all engine tiflash 60 add-peer
> ```
执行完毕后,几分钟内,你将观察到 TiFlash 节点的 CPU 及磁盘 IO 资源占用显著提升,TiFlash 将更快地创建副本。同时,TiKV 节点的 CPU 及磁盘 IO 资源占用也将有所上升。
Expand Down
40 changes: 20 additions & 20 deletions tiup/tiup-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tiup cluster
```

```
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.11.3/cluster
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.12.3/cluster
Deploy a TiDB cluster for production
Usage:
Expand Down Expand Up @@ -61,7 +61,7 @@ Flags:
tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
```

该命令需要提供集群的名字、集群使用的 TiDB 版本(例如 `v7.1.0`),以及一个集群的拓扑文件。
该命令需要提供集群的名字、集群使用的 TiDB 版本(例如 `v7.2.0`),以及一个集群的拓扑文件。

拓扑文件的编写可参考[示例](https://github.com/pingcap/tiup/blob/master/embed/examples/cluster/topology.example.yaml)。以一个最简单的拓扑为例,将下列文件保存为 `/tmp/topology.yaml`

Expand Down Expand Up @@ -118,20 +118,20 @@ tidb_servers:
...
```

假如我们想要使用 TiDB 的 v7.1.0 版本,集群名字为 `prod-cluster`,则执行以下命令:
假如我们想要使用 TiDB 的 v7.2.0 版本,集群名字为 `prod-cluster`,则执行以下命令:

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

```shell
tiup cluster deploy -p prod-cluster v7.1.0 /tmp/topology.yaml
tiup cluster deploy -p prod-cluster v7.2.0 /tmp/topology.yaml
```

执行过程中会再次确认拓扑结构并提示输入目标机器上的 root 密码(-p 表示使用密码):

```bash
Please confirm your topology:
TiDB Cluster: prod-cluster
TiDB Version: v7.1.0
TiDB Version: v7.2.0
Type Host Ports OS/Arch Directories
---- ---- ----- ------- -----------
pd 172.16.5.134 2379/2380 linux/x86_64 deploy/pd-2379,data/pd-2379
Expand Down Expand Up @@ -171,10 +171,10 @@ tiup cluster list
```

```
Starting /root/.tiup/components/cluster/v1.11.3/cluster list
Starting /root/.tiup/components/cluster/v1.12.3/cluster list
Name User Version Path PrivateKey
---- ---- ------- ---- ----------
prod-cluster tidb v7.1.0 /root/.tiup/storage/cluster/clusters/prod-cluster /root/.tiup/storage/cluster/clusters/prod-cluster/ssh/id_rsa
prod-cluster tidb v7.2.0 /root/.tiup/storage/cluster/clusters/prod-cluster /root/.tiup/storage/cluster/clusters/prod-cluster/ssh/id_rsa
```

## 启动集群
Expand All @@ -200,9 +200,9 @@ tiup cluster display prod-cluster
```

```
Starting /root/.tiup/components/cluster/v1.11.3/cluster display prod-cluster
Starting /root/.tiup/components/cluster/v1.12.3/cluster display prod-cluster
TiDB Cluster: prod-cluster
TiDB Version: v7.1.0
TiDB Version: v7.2.0
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
172.16.5.134:3000 grafana 172.16.5.134 3000 linux/x86_64 Up - deploy/grafana-3000
Expand Down Expand Up @@ -268,9 +268,9 @@ tiup cluster display prod-cluster
```

```
Starting /root/.tiup/components/cluster/v1.11.3/cluster display prod-cluster
Starting /root/.tiup/components/cluster/v1.12.3/cluster display prod-cluster
TiDB Cluster: prod-cluster
TiDB Version: v7.1.0
TiDB Version: v7.2.0
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
172.16.5.134:3000 grafana 172.16.5.134 3000 linux/x86_64 Up - deploy/grafana-3000
Expand Down Expand Up @@ -370,12 +370,12 @@ Global Flags:
-y, --yes 跳过所有的确认步骤
```

例如,把集群升级到 v7.1.0 的命令为:
例如,把集群升级到 v7.2.0 的命令为:

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

```bash
tiup cluster upgrade tidb-test v7.1.0
tiup cluster upgrade tidb-test v7.2.0
```

## 更新配置
Expand Down Expand Up @@ -552,14 +552,14 @@ tiup cluster audit
```

```
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.11.3/cluster audit
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.12.3/cluster audit
ID Time Command
-- ---- -------
4BLhr0 2023-05-31T23:55:09+08:00 /home/tidb/.tiup/components/cluster/v1.11.3/cluster deploy test v7.1.0 /tmp/topology.yaml
4BKWjF 2023-05-31T23:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.11.3/cluster deploy test v7.1.0 /tmp/topology.yaml
4BKVwH 2023-05-31T23:02:08+08:00 /home/tidb/.tiup/components/cluster/v1.11.3/cluster deploy test v7.1.0 /tmp/topology.yaml
4BKKH1 2023-05-31T16:39:04+08:00 /home/tidb/.tiup/components/cluster/v1.11.3/cluster destroy test
4BKKDx 2023-05-31T16:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.11.3/cluster deploy test v7.1.0 /tmp/topology.yaml
4BLhr0 2023-06-29T23:55:09+08:00 /home/tidb/.tiup/components/cluster/v1.12.3/cluster deploy test v7.2.0 /tmp/topology.yaml
4BKWjF 2023-06-29T23:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.12.3/cluster deploy test v7.2.0 /tmp/topology.yaml
4BKVwH 2023-06-29T23:02:08+08:00 /home/tidb/.tiup/components/cluster/v1.12.3/cluster deploy test v7.2.0 /tmp/topology.yaml
4BKKH1 2023-06-29T16:39:04+08:00 /home/tidb/.tiup/components/cluster/v1.12.3/cluster destroy test
4BKKDx 2023-06-29T16:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.12.3/cluster deploy test v7.2.0 /tmp/topology.yaml
```

第一列为 audit-id,如果想看某个命令的执行日志,则传入这个 audit-id:
Expand Down Expand Up @@ -673,7 +673,7 @@ tiup cluster check <cluster-name> --cluster

此时可以通过命令行参数 `--ssh=system` 启用系统自带命令行:

- 部署集群:`tiup cluster deploy <cluster-name> <version> <topo> --ssh=system`,其中 `<cluster-name>` 为集群名称,`<version>` 为 TiDB 集群版本(例如 `v7.1.0`),`<topo>` 为拓扑文件路径
- 部署集群:`tiup cluster deploy <cluster-name> <version> <topo> --ssh=system`,其中 `<cluster-name>` 为集群名称,`<version>` 为 TiDB 集群版本(例如 `v7.2.0`),`<topo>` 为拓扑文件路径
- 启动集群:`tiup cluster start <cluster-name> --ssh=system`
- 升级集群:`tiup cluster upgrade ... --ssh=system`

Expand Down
2 changes: 1 addition & 1 deletion tiup/tiup-component-cluster-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
```

- `<cluster-name>` 表示新集群的名字,不能和现有集群同名
- `<version>` 为要部署的 TiDB 集群版本号,如 `v7.1.0`
- `<version>` 为要部署的 TiDB 集群版本号,如 `v7.2.0`
- `<topology.yaml>` 为事先编写好的[拓扑文件](/tiup/tiup-cluster-topology-reference.md)

## 选项
Expand Down
2 changes: 1 addition & 1 deletion tiup/tiup-component-cluster-patch.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tiup cluster patch <cluster-name> <package-path> [flags]
1. 确定以下变量的值:

- `${component}`:需要替换的组件名(例如 `tidb``tikv``pd`)。
- `${version}`:组件的版本(例如 `v7.1.0``v6.5.2`)。
- `${version}`:组件的版本(例如 `v7.2.0``v6.5.2`)。
- `${os}`:操作系统 (`linux`)。
- `${arch}`:组件运行的平台 (`amd64``arm64`)。
2. 下载当前的组件包:
Expand Down
2 changes: 1 addition & 1 deletion tiup/tiup-component-cluster-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tiup cluster upgrade <cluster-name> <version> [flags]
```

- `<cluster-name>` 为要操作的集群名字,如果忘记集群名字可通过[集群列表](/tiup/tiup-component-cluster-list.md)查看。
- `<version>` 为要升级到的目标版本,例如 `v7.1.0`。目前仅允许升级到比当前集群更高的版本,不允许升级到比当前集群更低的版本,即不允许降级。同时也不允许升级成 nightly 版本。
- `<version>` 为要升级到的目标版本,例如 `v7.2.0`。目前仅允许升级到比当前集群更高的版本,不允许升级到比当前集群更低的版本,即不允许降级。同时也不允许升级成 nightly 版本。

## 选项

Expand Down
Loading

0 comments on commit 60c18a2

Please sign in to comment.