此次测试从4.0.8升级到4.0.9
检查当前集群各个节点状态:
tiup cluster display hdcluster
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.2/tiup-cluster display hdcluster
Cluster type: tidb
Cluster name: hdcluster
Cluster version: v4.0.8
SSH type: builtin
Dashboard URL:
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
172.16.254.91:9093 alertmanager 172.16.254.91 9093/9094 linux/x86_64 Up /tidb/tidb-data/alertmanager-9093 /tidb/tidb-deploy/alertmanager-9093
172.16.254.91:3000 grafana 172.16.254.91 3000 linux/x86_64 Up - /tidb/tidb-deploy/grafana-3000
172.16.254.92:2379 pd 172.16.254.92 2379/2380 linux/x86_64 Up|L /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.93:2379 pd 172.16.254.93 2379/2380 linux/x86_64 Up|UI /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.94:2379 pd 172.16.254.94 2379/2380 linux/x86_64 Up /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.91:9090 prometheus 172.16.254.91 9090 linux/x86_64 Up /tidb/tidb-data/prometheus-9090 /tidb/tidb-deploy/prometheus-9090
172.16.254.95:4000 tidb 172.16.254.95 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.96:4000 tidb 172.16.254.96 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.97:4000 tidb 172.16.254.97 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.91:9000 tiflash 172.16.254.91 9000/8123/3930/20170/20292/8234 linux/x86_64 Up /tidb/tidb-data/tiflash-9000 /tidb/tidb-deploy/tiflash-9000
172.16.254.100:20160 tikv 172.16.254.100 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.104:20160 tikv 172.16.254.104 20160/20180 linux/x86_64 Tombstone /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.98:20160 tikv 172.16.254.98 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.99:20160 tikv 172.16.254.99 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
Total nodes: 14
可以看到,版本为4.0.8
下载tidb 4.0.9,并解压
tar zxvf tidb-community-server-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/
tidb-community-server-v4.0.9-linux-amd64/5.node_exporter.json
tidb-community-server-v4.0.9-linux-amd64/3.package.json
tidb-community-server-v4.0.9-linux-amd64/cluster-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tikv-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tidb-lightning-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/timestamp.json
tidb-community-server-v4.0.9-linux-amd64/563.prometheus.json
tidb-community-server-v4.0.9-linux-amd64/587.drainer.json
tidb-community-server-v4.0.9-linux-amd64/552.cdc.json
tidb-community-server-v4.0.9-linux-amd64/client-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/cdc-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tiup-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/node_exporter-v0.17.0-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/1.index.json
tidb-community-server-v4.0.9-linux-amd64/2.mirrors.json
tidb-community-server-v4.0.9-linux-amd64/dumpling-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/grafana-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/dmctl-v2.0.1-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/doc-v0.0.3-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/keys/
tidb-community-server-v4.0.9-linux-amd64/keys/34a1b0ade5469d2f-timestamp.json
tidb-community-server-v4.0.9-linux-amd64/keys/86823fef462a1254-root.json
tidb-community-server-v4.0.9-linux-amd64/keys/4cf8ebbd5f0b1610-snapshot.json
tidb-community-server-v4.0.9-linux-amd64/keys/b41ce5a273aefeda-root.json
tidb-community-server-v4.0.9-linux-amd64/keys/f5eb5c875828c3d8-root.json
tidb-community-server-v4.0.9-linux-amd64/keys/473308cfa6b98eda-index.json
tidb-community-server-v4.0.9-linux-amd64/keys/e0e83799df1b4e63-pingcap.json
tidb-community-server-v4.0.9-linux-amd64/1.root.json
tidb-community-server-v4.0.9-linux-amd64/606.pd.json
tidb-community-server-v4.0.9-linux-amd64/server-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/pd-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/596.pump.json
tidb-community-server-v4.0.9-linux-amd64/tispark-v2.3.12-any-any.tar.gz
tidb-community-server-v4.0.9-linux-amd64/101.cluster.json
tidb-community-server-v4.0.9-linux-amd64/1.spark.json
tidb-community-server-v4.0.9-linux-amd64/dm-worker-v2.0.1-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/alertmanager-v0.17.0-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tidb-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/488.br.json
tidb-community-server-v4.0.9-linux-amd64/dm-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/591.ctl.json
tidb-community-server-v4.0.9-linux-amd64/1.doc.json
tidb-community-server-v4.0.9-linux-amd64/277.dm-master.json
tidb-community-server-v4.0.9-linux-amd64/blackbox_exporter-v0.12.0-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/571.grafana.json
tidb-community-server-v4.0.9-linux-amd64/drainer-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/52.bench.json
tidb-community-server-v4.0.9-linux-amd64/br-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tiflash-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/5.blackbox_exporter.json
tidb-community-server-v4.0.9-linux-amd64/pump-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/9.errdoc.json
tidb-community-server-v4.0.9-linux-amd64/tiup-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/tikv-importer-v4.0.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/prometheus-v4.0.3-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/pushgateway-v0.7.0-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/604.tidb.json
tidb-community-server-v4.0.9-linux-amd64/insight-v0.3.1-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/13.tispark.json
tidb-community-server-v4.0.9-linux-amd64/528.tidb-lightning.json
tidb-community-server-v4.0.9-linux-amd64/73.tiup.json
tidb-community-server-v4.0.9-linux-amd64/604.tikv.json
tidb-community-server-v4.0.9-linux-amd64/75.playground.json
tidb-community-server-v4.0.9-linux-amd64/500.tiflash.json
tidb-community-server-v4.0.9-linux-amd64/8.insight.json
tidb-community-server-v4.0.9-linux-amd64/snapshot.json
tidb-community-server-v4.0.9-linux-amd64/36.dm.json
tidb-community-server-v4.0.9-linux-amd64/package-v0.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/prometheus-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/bench-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/errdoc-v4.0.7-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/599.pd-recover.json
tidb-community-server-v4.0.9-linux-amd64/root.json
tidb-community-server-v4.0.9-linux-amd64/276.dm-worker.json
tidb-community-server-v4.0.9-linux-amd64/273.dmctl.json
tidb-community-server-v4.0.9-linux-amd64/playground-v1.3.2-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/pd-recover-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/local_install.sh
tidb-community-server-v4.0.9-linux-amd64/dm-master-v2.0.1-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/80.tikv-importer.json
tidb-community-server-v4.0.9-linux-amd64/5.pushgateway.json
tidb-community-server-v4.0.9-linux-amd64/ctl-v4.0.9-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/spark-v2.4.3-any-any.tar.gz
tidb-community-server-v4.0.9-linux-amd64/grafana-v4.0.3-linux-amd64.tar.gz
tidb-community-server-v4.0.9-linux-amd64/5.alertmanager.json
tidb-community-server-v4.0.9-linux-amd64/13.client.json
tidb-community-server-v4.0.9-linux-amd64/39.server.json
tidb-community-server-v4.0.9-linux-amd64/455.dumpling.json
将离线包发送到目标集群的中控机后,执行以下命令安装TiUP组件:
local_install.sh 脚本会自动执行 tiup mirror set tidb-community-server-${version}-linux-amd64 命令将当前镜像地址设置为 tidb-community-server-${version}-linux-amd64。
sh local_install.sh
Set mirror to /tidb/tidb-community-server-v4.0.9-linux-amd64 success
Detected shell: bash
Shell profile: /home/tidb/.bash_profile
Installed path: /home/tidb/.tiup/bin/tiup
===============================================
1. source /home/tidb/.bash_profile
2. Have a try: tiup playground
===============================================
source /home/tidb/.bash_profile
备份中控机/home/tidb/.tiup
cp -r .tiup/ .tiup_bak_01
升级TiDB集群
tiup cluster upgrade hdcluster v4.0.9 --force --transfer-timeout 100000000
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.2/tiup-cluster upgrade hdcluster v4.0.9 --force --transfer-timeout 100000000
This operation will upgrade tidb v4.0.8 cluster hdcluster to v4.0.9.
Do you want to continue? [y/N]: y
Upgrading cluster...
+ [ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/ssh/id_rsa.pub
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.91
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.104
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.95
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.92
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.96
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.93
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.97
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.98
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.94
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.99
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.91
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.91
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.91
+ [Parallel] - UserSSH: user=tidb, host=172.16.254.100
+ [ Serial ] - Download: component=tikv, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - Download: component=alertmanager, version=v0.17.0, os=linux, arch=amd64
+ [ Serial ] - Download: component=tiflash, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - Download: component=tidb, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - Download: component=pd, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - Download: component=grafana, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - Download: component=prometheus, version=v4.0.9, os=linux, arch=amd64
+ [ Serial ] - BackupComponent: component=alertmanager, currentVersion=v4.0.8, remote=172.16.254.91:/tidb/tidb-deploy/alertmanager-9093
+ [ Serial ] - BackupComponent: component=tikv, currentVersion=v4.0.8, remote=172.16.254.100:/tidb/tidb-deploy/tikv-20160
+ [ Serial ] - BackupComponent: component=tiflash, currentVersion=v4.0.8, remote=172.16.254.91:/tidb/tidb-deploy/tiflash-9000
+ [ Serial ] - BackupComponent: component=tikv, currentVersion=v4.0.8, remote=172.16.254.104:/tidb/tidb-deploy/tikv-20160
+ [ Serial ] - BackupComponent: component=pd, currentVersion=v4.0.8, remote=172.16.254.92:/tidb/tidb-deploy/pd-2379
+ [ Serial ] - BackupComponent: component=tidb, currentVersion=v4.0.8, remote=172.16.254.95:/tidb/tidb-deploy/tidb-4000
+ [ Serial ] - BackupComponent: component=tidb, currentVersion=v4.0.8, remote=172.16.254.96:/tidb/tidb-deploy/tidb-4000
+ [ Serial ] - BackupComponent: component=pd, currentVersion=v4.0.8, remote=172.16.254.93:/tidb/tidb-deploy/pd-2379
+ [ Serial ] - BackupComponent: component=tidb, currentVersion=v4.0.8, remote=172.16.254.97:/tidb/tidb-deploy/tidb-4000
+ [ Serial ] - BackupComponent: component=prometheus, currentVersion=v4.0.8, remote=172.16.254.91:/tidb/tidb-deploy/prometheus-9090
+ [ Serial ] - BackupComponent: component=pd, currentVersion=v4.0.8, remote=172.16.254.94:/tidb/tidb-deploy/pd-2379
+ [ Serial ] - BackupComponent: component=grafana, currentVersion=v4.0.8, remote=172.16.254.91:/tidb/tidb-deploy/grafana-3000
+ [ Serial ] - BackupComponent: component=tikv, currentVersion=v4.0.8, remote=172.16.254.98:/tidb/tidb-deploy/tikv-20160
+ [ Serial ] - BackupComponent: component=tikv, currentVersion=v4.0.8, remote=172.16.254.99:/tidb/tidb-deploy/tikv-20160
+ [ Serial ] - CopyComponent: component=tikv, version=v4.0.9, remote=172.16.254.104:/tidb/tidb-deploy/tikv-20160 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=pd, version=v4.0.9, remote=172.16.254.92:/tidb/tidb-deploy/pd-2379 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tidb, version=v4.0.9, remote=172.16.254.95:/tidb/tidb-deploy/tidb-4000 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tidb, version=v4.0.9, remote=172.16.254.96:/tidb/tidb-deploy/tidb-4000 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tidb, version=v4.0.9, remote=172.16.254.97:/tidb/tidb-deploy/tidb-4000 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tikv, version=v4.0.9, remote=172.16.254.100:/tidb/tidb-deploy/tikv-20160 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tikv, version=v4.0.9, remote=172.16.254.99:/tidb/tidb-deploy/tikv-20160 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=tikv, version=v4.0.9, remote=172.16.254.98:/tidb/tidb-deploy/tikv-20160 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=pd, version=v4.0.9, remote=172.16.254.94:/tidb/tidb-deploy/pd-2379 os=linux, arch=amd64
+ [ Serial ] - CopyComponent: component=pd, version=v4.0.9, remote=172.16.254.93:/tidb/tidb-deploy/pd-2379 os=linux, arch=amd64
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.95, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tidb-4000.service, deploy_dir=/tidb/tidb-deploy/tidb-4000, data_dir=[], log_dir=/tidb/tidb-deploy/tidb-4000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.94, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/pd-2379.service, deploy_dir=/tidb/tidb-deploy/pd-2379, data_dir=[/tidb/tidb-data/pd-2379], log_dir=/tidb/tidb-deploy/pd-2379/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.97, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tidb-4000.service, deploy_dir=/tidb/tidb-deploy/tidb-4000, data_dir=[], log_dir=/tidb/tidb-deploy/tidb-4000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.96, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tidb-4000.service, deploy_dir=/tidb/tidb-deploy/tidb-4000, data_dir=[], log_dir=/tidb/tidb-deploy/tidb-4000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.92, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/pd-2379.service, deploy_dir=/tidb/tidb-deploy/pd-2379, data_dir=[/tidb/tidb-data/pd-2379], log_dir=/tidb/tidb-deploy/pd-2379/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.93, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/pd-2379.service, deploy_dir=/tidb/tidb-deploy/pd-2379, data_dir=[/tidb/tidb-data/pd-2379], log_dir=/tidb/tidb-deploy/pd-2379/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - CopyComponent: component=alertmanager, version=v0.17.0, remote=172.16.254.91:/tidb/tidb-deploy/alertmanager-9093 os=linux, arch=amd64
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.99, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tikv-20160.service, deploy_dir=/tidb/tidb-deploy/tikv-20160, data_dir=[/tidb/tidb-data/tikv-20160], log_dir=/tidb/tidb-deploy/tikv-20160/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.98, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tikv-20160.service, deploy_dir=/tidb/tidb-deploy/tikv-20160, data_dir=[/tidb/tidb-data/tikv-20160], log_dir=/tidb/tidb-deploy/tikv-20160/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.100, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/tikv-20160.service, deploy_dir=/tidb/tidb-deploy/tikv-20160, data_dir=[/tidb/tidb-data/tikv-20160], log_dir=/tidb/tidb-deploy/tikv-20160/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.91, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/alertmanager-9093.service, deploy_dir=/tidb/tidb-deploy/alertmanager-9093, data_dir=[/tidb/tidb-data/alertmanager-9093], log_dir=/tidb/tidb-deploy/alertmanager-9093/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - CopyComponent: component=prometheus, version=v4.0.9, remote=172.16.254.91:/tidb/tidb-deploy/prometheus-9090 os=linux, arch=amd64
+ [ Serial ] - InitConfig: cluster=hdcluster, user=tidb, host=172.16.254.91, path=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache/prometheus-9090.service, deploy_dir=/tidb/tidb-deploy/prometheus-9090, data_dir=[/tidb/tidb-data/prometheus-9090], log_dir=/tidb/tidb-deploy/prometheus-9090/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/hdcluster/config-cache
+ [ Serial ] - UpgradeCluster
Restarting component tiflash
Restarting instance 172.16.254.91
Restart 172.16.254.91 success
Restarting component pd
Restarting instance 172.16.254.92
Restart 172.16.254.92 success
Restarting instance 172.16.254.93
Restart 172.16.254.93 success
Restarting instance 172.16.254.94
Restart 172.16.254.94 success
Restarting component tikv
Restarting instance 172.16.254.98
Restart 172.16.254.98 success
Restarting instance 172.16.254.99
Restart 172.16.254.99 success
Restarting instance 172.16.254.100
Restart 172.16.254.100 success
Restarting instance 172.16.254.104
Restarting component tidb
Restarting instance 172.16.254.95
Restart 172.16.254.95 success
Restarting instance 172.16.254.96
Restart 172.16.254.96 success
Restarting instance 172.16.254.97
Restart 172.16.254.97 success
Restarting component prometheus
Restarting instance 172.16.254.91
Restart 172.16.254.91 success
Restarting component grafana
Restarting instance 172.16.254.91
Restart 172.16.254.91 success
Restarting component alertmanager
Restarting instance 172.16.254.91
Restart 172.16.254.91 success
Upgraded cluster `hdcluster` successfully
查看集群状态:
tiup cluster list
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.2/tiup-cluster list
Name User Version Path PrivateKey
---- ---- ------- ---- ----------
hdcluster tidb v4.0.9 /home/tidb/.tiup/storage/cluster/clusters/hdcluster /home/tidb/.tiup/storage/cluster/clusters/hdcluster/ssh/id_rsa
查看集群各节点状态:
tiup cluster display hdcluster
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.2/tiup-cluster display hdcluster
Cluster type: tidb
Cluster name: hdcluster
Cluster version: v4.0.9
SSH type: builtin
Dashboard URL:
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
172.16.254.91:9093 alertmanager 172.16.254.91 9093/9094 linux/x86_64 Up /tidb/tidb-data/alertmanager-9093 /tidb/tidb-deploy/alertmanager-9093
172.16.254.91:3000 grafana 172.16.254.91 3000 linux/x86_64 Up - /tidb/tidb-deploy/grafana-3000
172.16.254.92:2379 pd 172.16.254.92 2379/2380 linux/x86_64 Up|L /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.93:2379 pd 172.16.254.93 2379/2380 linux/x86_64 Up|UI /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.94:2379 pd 172.16.254.94 2379/2380 linux/x86_64 Up /tidb/tidb-data/pd-2379 /tidb/tidb-deploy/pd-2379
172.16.254.91:9090 prometheus 172.16.254.91 9090 linux/x86_64 Up /tidb/tidb-data/prometheus-9090 /tidb/tidb-deploy/prometheus-9090
172.16.254.95:4000 tidb 172.16.254.95 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.96:4000 tidb 172.16.254.96 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.97:4000 tidb 172.16.254.97 4000/10080 linux/x86_64 Up - /tidb/tidb-deploy/tidb-4000
172.16.254.91:9000 tiflash 172.16.254.91 9000/8123/3930/20170/20292/8234 linux/x86_64 Up /tidb/tidb-data/tiflash-9000 /tidb/tidb-deploy/tiflash-9000
172.16.254.100:20160 tikv 172.16.254.100 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.104:20160 tikv 172.16.254.104 20160/20180 linux/x86_64 Tombstone /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.98:20160 tikv 172.16.254.98 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
172.16.254.99:20160 tikv 172.16.254.99 20160/20180 linux/x86_64 Up /tidb/tidb-data/tikv-20160 /tidb/tidb-deploy/tikv-20160
Total nodes: 14
可以看到,TiDB已经升级到4.0.9