You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: op-guide/ansible-deployment-rolling-update.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,22 @@ When you perform a rolling update for a TiDB cluster, the service is shut down s
20
20
21
21
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.
22
22
23
-
For example, to upgrade from `v2.0.2` to `v2.0.3`:
23
+
For example, to upgrade from `v2.0.6` to `v2.0.7`:
24
24
25
25
```
26
-
tidb_version = v2.0.3
26
+
tidb_version = v2.0.7
27
27
```
28
28
29
+
> **Note:** If you use `tidb-ansible` of the master branch, you can keep `tidb_version = latest`. The installation package of the latest TiDB version is updated each day.
30
+
29
31
2. Delete the existing `downloads` directory `/home/tidb/tidb-ansible/downloads/`.
30
32
31
33
```
32
34
$ cd /home/tidb/tidb-ansible
33
35
$ rm -rf downloads
34
36
```
35
37
36
-
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.
38
+
3. Use `playbook` to download the TiDB binary and replace the existing binary in `/home/tidb/tidb-ansible/resource/bin/` with it automatically.
37
39
38
40
```
39
41
$ 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
44
46
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.
0 commit comments