Skip to content

Commit

Permalink
update-version-and-date-for-master (pingcap#8539)
Browse files Browse the repository at this point in the history
  • Loading branch information
qqqdan authored Mar 2, 2022
1 parent 2475954 commit 859246b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 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.3.0/cluster
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.9.1/cluster
Deploy a TiDB cluster for production
Usage:
Expand Down Expand Up @@ -111,20 +111,20 @@ tidb_servers:
...
```

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

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

```shell
tiup cluster deploy -p prod-cluster v3.0.12 /tmp/topology.yaml
tiup cluster deploy -p prod-cluster v5.4.0 /tmp/topology.yaml
```

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

```bash
Please confirm your topology:
TiDB Cluster: prod-cluster
TiDB Version: v3.0.12
TiDB Version: v5.4.0
Type Host Ports Directories
---- ---- ----- -----------
pd 172.16.5.134 2379/2380 deploy/pd-2379,data/pd-2379
Expand Down Expand Up @@ -161,10 +161,10 @@ tiup cluster list
```

```
Starting /root/.tiup/components/cluster/v1.3.0/cluster list
Starting /root/.tiup/components/cluster/v1.9.1/cluster list
Name User Version Path PrivateKey
---- ---- ------- ---- ----------
prod-cluster tidb v3.0.12 /root/.tiup/storage/cluster/clusters/prod-cluster /root/.tiup/storage/cluster/clusters/prod-cluster/ssh/id_rsa
prod-cluster tidb v5.4.0 /root/.tiup/storage/cluster/clusters/prod-cluster /root/.tiup/storage/cluster/clusters/prod-cluster/ssh/id_rsa
```

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

```
Starting /root/.tiup/components/cluster/v1.3.0/cluster display prod-cluster
Starting /root/.tiup/components/cluster/v1.9.1/cluster display prod-cluster
TiDB Cluster: prod-cluster
TiDB Version: v3.0.12
TiDB Version: v5.4.0
ID Role Host Ports Status Data Dir Deploy Dir
-- ---- ---- ----- ------ -------- ----------
172.16.5.134:3000 grafana 172.16.5.134 3000 Up - deploy/grafana-3000
Expand Down Expand Up @@ -253,9 +253,9 @@ tiup cluster display prod-cluster
```

```
Starting /root/.tiup/components/cluster/v1.3.0/cluster display prod-cluster
Starting /root/.tiup/components/cluster/v1.9.1/cluster display prod-cluster
TiDB Cluster: prod-cluster
TiDB Version: v3.0.12
TiDB Version: v5.4.0
ID Role Host Ports Status Data Dir Deploy Dir
-- ---- ---- ----- ------ -------- ----------
172.16.5.134:3000 grafana 172.16.5.134 3000 Up - deploy/grafana-3000
Expand Down Expand Up @@ -352,12 +352,12 @@ Global Flags:
-y, --yes 跳过所有的确认步骤
```

例如,把集群升级到 v5.0.0 的命令为:
例如,把集群升级到 v5.4.0 的命令为:

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

```bash
tiup cluster upgrade tidb-test v5.0.0
tiup cluster upgrade tidb-test v5.4.0
```

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

```
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.0/cluster audit
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.9.1/cluster audit
ID Time Command
-- ---- -------
4BLhr0 2020-04-29T13:25:09+08:00 /home/tidb/.tiup/components/cluster/v1.3.0/cluster deploy test v5.0.0-rc /tmp/topology.yaml
4BKWjF 2020-04-28T23:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.3.0/cluster deploy test v5.0.0-rc /tmp/topology.yaml
4BKVwH 2020-04-28T23:02:08+08:00 /home/tidb/.tiup/components/cluster/v1.3.0/cluster deploy test v5.0.0-rc /tmp/topology.yaml
4BKKH1 2020-04-28T16:39:04+08:00 /home/tidb/.tiup/components/cluster/v1.3.0/cluster destroy test
4BKKDx 2020-04-28T16:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.3.0/cluster deploy test v5.0.0-rc /tmp/topology.yaml
4BLhr0 2022-03-01T13:25:09+08:00 /home/tidb/.tiup/components/cluster/v1.9.1/cluster deploy test v5.4.0 /tmp/topology.yaml
4BKWjF 2022-02-28T23:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.9.1/cluster deploy test v5.4.0 /tmp/topology.yaml
4BKVwH 2022-02-28T23:02:08+08:00 /home/tidb/.tiup/components/cluster/v1.9.1/cluster deploy test v5.4.0 /tmp/topology.yaml
4BKKH1 2022-02-28T16:39:04+08:00 /home/tidb/.tiup/components/cluster/v1.9.1/cluster destroy test
4BKKDx 2022-02-28T16:36:57+08:00 /home/tidb/.tiup/components/cluster/v1.9.1/cluster deploy test v5.4.0 /tmp/topology.yaml
```

第一列为 audit-id,如果想看某个命令的执行日志,则传入这个 audit-id:
Expand Down

0 comments on commit 859246b

Please sign in to comment.