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

op-guide: update tidb download links #899

Merged
merged 4 commits into from
Sep 28, 2018
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
18 changes: 13 additions & 5 deletions op-guide/ansible-deployment-rolling-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,39 @@ category: deployment

### 自动下载 binary

1. 修改 `/home/tidb/tidb-ansible/inventory.ini` 中的 `tidb_version` 参数值,指定需要升级的版本号,如从 `v2.0.2` 升级到 `v2.0.3`
1. 修改 `/home/tidb/tidb-ansible/inventory.ini` 中的 `tidb_version` 参数值,指定需要升级的版本号,如从 `v2.0.6` 升级到 `v2.0.7`

```
tidb_version = v2.0.3
tidb_version = v2.0.7
```

> 如果使用 master 分支 tidb-ansible,`tidb_version = latest` 保持不变即可,latest 版本 tidb 安装包会每日更新。

2. 删除原有的 downloads 目录 `/home/tidb/tidb-ansible/downloads/`

```
$ cd /home/tidb/tidb-ansible
$ rm -rf downloads
```

3. 使用 playbook 下载 TiDB `v2.0.3` 版本 binary,自动替换 binary 到 `/home/tidb/tidb-ansible/resource/bin/`
3. 使用 playbook 下载 TiDB binary,自动替换 binary 到 `/home/tidb/tidb-ansible/resource/bin/`

```
$ ansible-playbook local_prepare.yml
```

### 手动下载 binary

除 “下载 binary” 中描述的方法之外,也可以手动下载 binary,解压后手动替换 binary 到 `/home/tidb/tidb-ansible/resource/bin/`,请注意替换链接中的版本号。
除 “自动下载 binary” 中描述的方法之外,也可以手动下载 binary,解压后手动替换 binary 到 `/home/tidb/tidb-ansible/resource/bin/`,请注意替换链接中的版本号。

```
$ wget http://download.pingcap.org/tidb-v2.0.7-linux-amd64.tar.gz
```

如果使用 master 分支 tidb-ansible,请使用以下命令下载。

```
wget http://download.pingcap.org/tidb-v2.0.3-linux-amd64-unportable.tar.gz
$ wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz
```

### 使用 Ansible 滚动升级
Expand Down