执行 tiup cluster reload <tidb_name> 无法启动tidb

【 TiDB 使用环境`】测试环境
【 TiDB 版本】v4.0.0
【复现路径】开启tidb binlog
image
【遇到的问题】reload 无法启动tidb 报错如下:

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

日志里面输出:
{“level”:“warn”,“ts”:“2022-04-14T14:51:28.690+0800”,“caller”:“clientv3/retry_interceptor.go:61”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-8a0c9953-2460-489c-b35d-d541b2032c95/192.168.63.145:2379”,“attempt”:0,“error”:“rpc error: code = Canceled desc = grpc: the client connection is closing”}

和升级的流程一样会按顺序重启服务,重启过程中集群仍然可用,建议在业务低风期操作。可以用 --skip-restart只刷新配置,不重启服务,等下次重启的时候生效。

如果是开启binlog 如果不重启是不生效的

是的,如果要立即生效只能重启。

reload会导致tidb重启,如果是多个tidb,做了HA,影响很小,但不能完全无影响,最好在低峰期reload

重启之后直接报错
Error: failed to start tidb: failed to start: 192.168.63.145 tidb-4000.service, please check the instance’s log(/tidb-deploy/tidb-4000/log) for more detail.: timed out waiting for port 4000 to be started after 2m0s

老哥有遇到这个情况么

看下详细日志呢/tidb-deploy/tidb-4000/log,在重试几次看看

重启试一下

tiup cluster stop -N xxxxxx单独停止这个tiidb节点,然后检查下主机上tidb 进程是否还在

该主题在最后一个回复创建后60天后自动关闭。不再允许新的回复。