From 2c12c13fc1d2a34058b494658188f05384c0cf2e Mon Sep 17 00:00:00 2001 From: lilin90 Date: Sat, 29 Sep 2018 19:19:55 +0800 Subject: [PATCH] op-guide: update TiDB download links Via: https://github.com/pingcap/docs-cn/pull/899 --- op-guide/ansible-deployment-rolling-update.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/op-guide/ansible-deployment-rolling-update.md b/op-guide/ansible-deployment-rolling-update.md index 3b711d2df4e1c..40e1bbaff0fa7 100644 --- a/op-guide/ansible-deployment-rolling-update.md +++ b/op-guide/ansible-deployment-rolling-update.md @@ -20,12 +20,14 @@ 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/`. ``` @@ -33,7 +35,7 @@ When you perform a rolling update for a TiDB cluster, the service is shut down s $ 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 @@ -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)