为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:V4.0.0
- 【问题描述】:
原来是用tidb-ansible安装的集群,切换到tiup后,用tiup新增tiflash节点,报错,但新节点上的tiflash已起来,监控上也能看到新节点,请问下是什么原因。报错信息:
- [ Serial ] - Download: component=alertmanager, version=v0.17.0, os=linux, arch=amd64
- [ Serial ] - Download: component=prometheus, version=v4.0.0, os=linux, arch=amd64
Error: read manifest from mirror(https://tiup-mirrors.pingcap.com) failed: checksum mismatch, expect: 4b0e6cdecf85651819f88a48b9644fbe252c16b065445cfedd5bc032cbec8aa2, got: bf1d772f537edce6461275fc28cca7fb3e72df0454dfb0b578a67f91a741da15
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-cluster-debug-2020-12-10-11-19-09.log.
Error: run /home/tidb/.tiup/components/cluster/v1.2.5/tiup-cluster
(wd:/home/tidb/.tiup/data/SIjYu73) failed: exit status 1
具体操作:
-
导入ansible
tiup cluster import -d /home/tidb/tidb-ansible -
tiup cluster display aist-test-cluster
[tidb@localhost ~]$ tiup cluster display aist-test-cluster
Starting componentcluster
: /home/tidb/.tiup/components/cluster/v1.2.5/tiup-cluster display aist-test-cluster
Cluster type: tidb
Cluster name: aist-test-cluster
Cluster version: v4.0.0
SSH type: builtin
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
192.168.1.9:9093 alertmanager 192.168.1.9 9093/9094 linux/x86_64 Up /data/deploy/data.alertmanager /data/deploy
192.168.1.9:3000 grafana 192.168.1.9 3000 linux/x86_64 Up - /data/deploy
192.168.1.9:2379 pd 192.168.1.9 2379/2380 linux/x86_64 Up|L|UI /data/deploy/data.pd /data/deploy
192.168.1.9:9090 prometheus 192.168.1.9 9090 linux/x86_64 Up /data/deploy/prometheus2.0.0.data.metrics /data/deploy
192.168.1.9:4000 tidb 192.168.1.9 4000/10080 linux/x86_64 Up - /data/deploy
192.168.1.6:20160 tikv 192.168.1.6 20160/20180 linux/x86_64 Up /data/deploy/data /data/deploy
192.168.1.7:20160 tikv 192.168.1.7 20160/20180 linux/x86_64 Up /data/deploy/data /data/deploy
192.168.1.8:20160 tikv 192.168.1.8 20160/20180 linux/x86_64 Up /data/deploy/data /data/deploy
3.扩容文件
tiflash_servers:
- host: 192.168.1.4
4.扩容
tiup cluster scale-out aist-test-cluster scale-out.yaml
- tiflash节点进程
[root@slave1 conf]# ps aux |grep tidb
tidb 8846 7.9 22.7 4819384 1791136 ? Ssl 11:17 3:07 bin/tiflash/tiflash server --config-file conf/tiflash.toml
tidb 9085 0.0 0.0 112524 5184 ? Ssl 11:17 0:00 bin/node_exporter/node_exporter --web.listen-address=:9100 --collector.tcpstat --collector.systemd --collector.mountstats --collector.meminfo_numa --collector.interrupts --collector.vmstat.fields=^.* --log.level=info
tidb 9086 0.0 0.0 113176 628 ? S 11:17 0:00 /bin/bash /data/deploy/scripts/run_node_exporter.sh
tidb 9087 0.0 0.0 108168 680 ? S 11:17 0:00 tee -i -a /data/deploy/log/node_exporter.log
tidb 9143 0.0 0.0 13828 4820 ? Ssl 11:17 0:00 bin/blackbox_exporter/blackbox_exporter --web.listen-address=:9115 --log.level=info --config.file=conf/blackbox.yml
tidb 9144 0.0 0.0 113176 628 ? S 11:17 0:00 /bin/bash /data/deploy/scripts/run_blackbox_exporter.sh
tidb 9145 0.0 0.0 108168 676 ? S 11:17 0:00 tee -i -a /data/deploy/log/blackbox_exporter.log