tikv集群部署

如下是我topology.yaml文件内容:
topology.yaml (1.7 KB)

使用命令部署时报错:
tiup cluster start tidb-test --init
报错信息如下:
root@iZt4n5bvovcl0qcyct7nw8Z:~# tiup cluster start tidb-test --init
Starting cluster tidb-test…

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=tidb, host=47.245.30.213
  • [Parallel] - UserSSH: user=tidb, host=101.32.10.67
  • [Parallel] - UserSSH: user=tidb, host=47.84.34.131
  • [Parallel] - UserSSH: user=tidb, host=47.245.30.213
  • [Parallel] - UserSSH: user=tidb, host=101.32.10.67
  • [Parallel] - UserSSH: user=tidb, host=47.84.34.131
  • [Parallel] - UserSSH: user=tidb, host=101.32.10.67
  • [Parallel] - UserSSH: user=tidb, host=47.84.34.131
  • [Parallel] - UserSSH: user=tidb, host=47.84.34.131
  • [Parallel] - UserSSH: user=tidb, host=47.84.34.131
  • [Parallel] - UserSSH: user=tidb, host=47.245.30.213
  • [ Serial ] - StartCluster
    Starting component pd
    Starting instance 101.32.10.67:2379
    Starting instance 47.84.34.131:2379
    Starting instance 47.245.30.213:2379
    Start instance 47.84.34.131:2379 success
    Start instance 101.32.10.67:2379 success
    Start instance 47.245.30.213:2379 success
    Starting component tikv
    Starting instance 101.32.10.67:20160
    Starting instance 47.84.34.131:20160
    Starting instance 47.245.30.213:20160

Error: failed to start tikv: failed to start: 47.84.34.131 tikv-20160.service, please check the instance’s log(/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 2m0s

Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2024-12-30-14-12-45.log.

创建集群是成功的,命令如下:tiup cluster deploy tidb-test v8.5.0 topology.yaml --user root -i /root/id_rsa

最终输出如下:
Cluster tidb-test deployed successfully, you can start it with command: tiup cluster start tidb-test --init

附加一份端口监控信息:

看看 47.84.34.131 tikv-20160.service 的日志,如果没有信息看看所在节点的message日志。

47.84.34.131 上systemctl status tikv-20160.service 看看

看日志没有相关20160端口的报错

/tidb-deploy/tikv-20160/log/tikv_stderr.log路径下,日志为空
如下是我:/tidb-deploy/tikv-20160/log/tikv.log日志文件:

tikv.log (1.1 MB)

检查下这个端口是否存在

20160端口没有被占用:
image


我有一个tidb没有起来,如何指定重启这一个

tiup clustr start tidb-test -N ip:4000

重启成功,但查看集群状态时还是down状态

display结果贴下

老哥,有bug:

display查看的集群时 tidb的status是down,但又可以连接上,dashboard查看的集群信息状态也是在线的

去这个显示down的节点 ps -ef | grep -i tidb-server 看看呢

正常的

有防火墙之类的吗

看下tidb的日志正常吗

down节点的嘛?

对的。