为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【TiDB 版本】
v4.0.10
【问题描述】
当前集群状态:
我是先扩容了一个pd节点:
扩容时,其实也是有问题,
Error: init config failed: node1:9090: transfer from /root/.tiup/storage/cluster/clusters/tidb-test/config-cache/prometheus-node1-9090.service to /tmp/prometheus_d5c4505b-3398-4ed4-8cfa-ba151afd6249.service failed: failed to scp /root/.tiup/storage/cluster/clusters/tidb-test/config-cache/prometheus-node1-9090.service to xgti@node1:/tmp/prometheus_d5c4505b-3398-4ed4-8cfa-ba151afd6249.service: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none], no supported methods remain
但是当时忽略了,display一看,pd已经加入了:并且也可以新建数据库和表格,插入数据,
但是,缩容时,有问题:
pd的报错日志文件:
[2021/03/15 17:30:17.721 +08:00] [ERROR] [etcdutil.go:117] [“load from etcd meet error”] [key=/pd/6937841770638177244/config] [error=“[PD:etcd:ErrEtcdKVGet]etcdserver: server stopped”]
[2021/03/15 17:30:20.243 +08:00] [WARN] [etcdutil.go:112] [“kv gets too slow”] [request-key=/pd/6937841770638177244/config] [cost=2.522359798s] [error=“etcdserver: server stopped”]
[2021/03/15 17:30:20.243 +08:00] [ERROR] [etcdutil.go:117] [“load from etcd meet error”] [key=/pd/6937841770638177244/config] [error=“[PD:etcd:ErrEtcdKVGet]etcdserver: server stopped”]
[2021/03/15 17:30:22.775 +08:00] [WARN] [etcdutil.go:112] [“kv gets too slow”] [request-key=/pd/6937841770638177244/config] [cost=2.531241729s] [error=“etcdserver: server stopped”]
[2021/03/15 17:30:22.775 +08:00] [ERROR] [etcdutil.go:117] [“load from etcd meet error”] [key=/pd/6937841770638177244/config] [error=“[PD:etcd:ErrEtcdKVGet]etcdserver: server stopped”]
这个是,为什么呢?我看了一下,现在集群状态:tikv为pending并且只剩下一个了,与这个有关嘛?我缩容pd怎么把tikv给弄没有了?
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。