TIDB2.1 version upgrade steps

To upgrade to the latest version 2.1.14 A Case Study

mv tidb-ansible tidb-ansible-bak

git clone -b v2.1.14 https://github.com/pingcap/tidb-ansible.git

pip show jmespath
cd tidb-ansible

vi inventory.iniRefers to the parameter file before modification and route ip
vi /home/tidb/tidb-ansible/conf/tikv.ymlparameter file before modifying the reference parameters memory
vi /home/tidb/tidb-ansible/conf/alertmanager.ymlparameter file before modifying the message with reference information
vi /home/tidb/tidb-ansible/conf/tidb.yml(modified split-table: true)
vi /home/tidb/tidb-ansible/conf/pump.yml(modified gc: 10)
vi /home/tidb/tidb-ansible/group_vars/all.yml(modified tikv_metric_method: "pull")
vi /home/tidb/tidb-ansible/roles/prometheus/defaults/main.yml(modified prometheus_storage_retention: "90d")

ansible-playbook local_prepare.yml
ansible-playbook rolling_update.yml
ansible-playbook rolling_update_monitor.yml

Guess you like

Origin blog.csdn.net/u014609263/article/details/95305445