Important

You are viewing the documentation of an older version of the TiDB database (TiDB v3.1).

It is recommended that you use the latest stable version of the TiDB database.

Upgrade TiFlash Nodes

Note:

To upgrade TiFlash from the Pre-RC version to a later version, contact PingCAP for more information and help.

Before the upgrade, make sure that the cluster is started. To upgrade TiFlash nodes, take the following steps:

  1. Back up the tidb-ansible folder:

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

    git clone -b $tag https://github.com/pingcap/tidb-ansible.git
  3. Download binary:

    ansible-playbook local_prepare.yml
  4. Edit the inventory.ini file.

  5. Rolling upgrade TiFlash:

    ansible-playbook rolling_update.yml --tags tiflash
  6. Rolling upgrade the TiDB monitoring component:

    ansible-playbook rolling_update_monitor.yml