From 60d296ba98204a4b2acb251e732b4d40c1738c27 Mon Sep 17 00:00:00 2001 From: Ran Date: Tue, 7 Apr 2020 14:28:05 +0800 Subject: [PATCH 1/2] tiflash: add upgrade.md doc --- TOC.md | 1 + reference/tiflash/upgrade.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 reference/tiflash/upgrade.md diff --git a/TOC.md b/TOC.md index 14682038d2c02..2dc4aefcaa712 100644 --- a/TOC.md +++ b/TOC.md @@ -305,6 +305,7 @@ - [Overview](/reference/tiflash/overview.md) - [Deploy a TiFlash Cluster](/reference/tiflash/deploy.md) - [Use TiFlash](/reference/tiflash/use-tiflash.md) + - [Upgrade Nodes](/reference/tiflash/upgrade.md) + TiDB Binlog - [Overview](/reference/tidb-binlog/overview.md) - [Deploy](/reference/tidb-binlog/deploy.md) diff --git a/reference/tiflash/upgrade.md b/reference/tiflash/upgrade.md new file mode 100644 index 0000000000000..5e2f568c531c9 --- /dev/null +++ b/reference/tiflash/upgrade.md @@ -0,0 +1,30 @@ +--- +title: Upgrade TiFlash Nodes +summary: Learn how to upgrade TiFlash nodes. +category: reference +--- + +# Upgrade TiFlash Nodes + +To upgrade TiFlash nodes, take the following steps: + +1. Download the new TiFlash binary to the Control Machine by either of the following two methods: + + - Download the latest TiDB Ansible, or update the TiDB Ansible git repository by running the `git pull` command. Then run the `ansible-playbook local_prepare.yml` command. + - Manually download TiFlash binary and overwrite to `resource/bin/tiflash`. + +2. Rolling upgrade TiFlash: + + {{< copyable "shell-regular" >}} + + ```shell + ansible-playbook rolling_update.yml --tags tiflash + ``` + +3. Rolling upgrade the TiDB monitoring component: + + {{< copyable "shell-regular" >}} + + ```shell + ansible-playbook rolling_update_monitor.yml + ``` From 4e0710c6bc30d0e50b7a934f76c53dd34e6062d1 Mon Sep 17 00:00:00 2001 From: Ran Date: Tue, 7 Apr 2020 14:32:59 +0800 Subject: [PATCH 2/2] minor change --- reference/tiflash/upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/tiflash/upgrade.md b/reference/tiflash/upgrade.md index 5e2f568c531c9..b1b02e5c4eb1a 100644 --- a/reference/tiflash/upgrade.md +++ b/reference/tiflash/upgrade.md @@ -11,7 +11,7 @@ To upgrade TiFlash nodes, take the following steps: 1. Download the new TiFlash binary to the Control Machine by either of the following two methods: - Download the latest TiDB Ansible, or update the TiDB Ansible git repository by running the `git pull` command. Then run the `ansible-playbook local_prepare.yml` command. - - Manually download TiFlash binary and overwrite to `resource/bin/tiflash`. + - Manually download TiFlash binary and overwrite `resource/bin/tiflash`. 2. Rolling upgrade TiFlash: