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-bakDownload tidb-ansible that corresponds to the tag of TiDB v3.1:
git clone -b $tag https://github.com/pingcap/tidb-ansible.gitDownload binary:
ansible-playbook local_prepare.ymlEdit the
inventory.ini
file.Rolling upgrade TiFlash:
ansible-playbook rolling_update.yml --tags tiflashRolling upgrade the TiDB monitoring component:
ansible-playbook rolling_update_monitor.yml