Upgrade TiFlash Nodes
Before the upgrade, make sure that the cluster is started. To upgrade TiFlash nodes, take the following steps:
Back up the
tidb-ansible
folder:mv tidb-ansible tidb-ansible-bak
Download tidb-ansible that corresponds to the tag of TiDB v3.1:
git clone -b $tag https://github.com/pingcap/tidb-ansible.git
Download binary:
ansible-playbook local_prepare.yml
Edit the
inventory.ini
file.Rolling upgrade TiFlash:
ansible-playbook rolling_update.yml --tags tiflash
Rolling upgrade the TiDB monitoring component:
ansible-playbook rolling_update_monitor.yml