Skip to content

Commit

Permalink
op-guide: update TiDB download links
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Sep 29, 2018
1 parent fa00d14 commit 2c12c13
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions op-guide/ansible-deployment-rolling-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ When you perform a rolling update for a TiDB cluster, the service is shut down s

1. Edit the value of the `tidb_version` parameter in the `/home/tidb/tidb-ansible/inventory.ini` file, and specify the version number you need to upgrade to.

For example, to upgrade from `v2.0.2` to `v2.0.3`:
For example, to upgrade from `v2.0.6` to `v2.0.7`:

```
tidb_version = v2.0.3
tidb_version = v2.0.7
```
> **Note:** If you use the master branch of `tidb-ansible`, you can keep `tidb_version = latest`. The installation package of the latest TiDB version is updated each day.
2. Delete the existing `downloads` directory `/home/tidb/tidb-ansible/downloads/`.
```
$ cd /home/tidb/tidb-ansible
$ rm -rf downloads
```
3. Use `playbook` to download the TiDB `v2.0.3` binary and replace the existing binary in `/home/tidb/tidb-ansible/resource/bin/` with it automatically.
3. Use `playbook` to download the TiDB binary and replace the existing binary in `/home/tidb/tidb-ansible/resource/bin/` with it automatically.
```
$ ansible-playbook local_prepare.yml
Expand All @@ -44,11 +46,17 @@ When you perform a rolling update for a TiDB cluster, the service is shut down s
You can also download the binary manually. Use `wget` to download the binary and replace the existing binary in `/home/tidb/tidb-ansible/resource/bin/` with it manually.
```
wget http://download.pingcap.org/tidb-v2.0.3-linux-amd64-unportable.tar.gz
wget http://download.pingcap.org/tidb-v2.0.7-linux-amd64.tar.gz
```
> **Note:** Remember to replace the version number in the download link with the one you need.
If you use the master branch of `tidb-ansible`, download the binary using the followin command:
```
$ wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz
```
### Perform a rolling update using Ansible
- Apply a rolling update to the PD node (only upgrade the PD service)
Expand Down

0 comments on commit 2c12c13

Please sign in to comment.