Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@
- [Maintain a TiFlash Cluster](/reference/tiflash/maintain.md)
- [Monitor TiFlash](/reference/tiflash/monitor.md)
- [Scale TiFlash](/reference/tiflash/scale.md)
- [Upgrade TiFlash Nodes](/reference/tiflash/upgrade.md)
- [Configure TiFlash](/reference/tiflash/configuration.md)
+ TiDB Binlog
- [Overview](/reference/tidb-binlog/overview.md)
Expand Down
51 changes: 51 additions & 0 deletions reference/tiflash/upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
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. Back up the `tidb-ansible` folder:

{{< copyable "shell-regular" >}}

```shell
mv tidb-ansible tidb-ansible-bak
```

2. Download tidb-ansible that corresponds to the tag of TiDB v3.1:

{{< copyable "shell-regular" >}}

```shell
git clone -b $tag https://github.com/pingcap/tidb-ansible.git
```

3. Download binary:

{{< copyable "shell-regular" >}}

```shell
ansible-playbook local_prepare.yml
```

4. Edit the `inventory.ini` file.

5. Rolling upgrade TiFlash:

{{< copyable "shell-regular" >}}

```shell
ansible-playbook rolling_update.yml --tags tiflash
```

6. Rolling upgrade the TiDB monitoring component:

{{< copyable "shell-regular" >}}

```shell
ansible-playbook rolling_update_monitor.yml
```