说好的Tidb快速上手,结果我安装的太慢了

Tidb安装报错:

[tidb@server01 ~]$ tiup playground v8.3.0 --db 2 --pd 3 --kv 3

Waiting for tiflash instances ready
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠹
[2024/08/29 09:00:18.389 +08:00] [ERROR] [util.rs:819] [“failed to connect to PD member”] [error=“RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: })”] [endpoints=http://127.0.0.1:2384] [thread_id=56]
[2024/08/29 09:00:18.633 +08:00] [ERROR] [raft_client.rs:860] [“wait connect timeout”] [addr=127.0.0.1:20161] [store_id=1] [thread_id=54]
[2024/08/29 09:00:18.665 +08:00] [INFO] [raft_client.rs:830] [“resolve store address ok”] [addr=127.0.0.1:20161] [store_id=1] [thread_id=54]
[2024/08/29 09:00:18.794 +08:00] [WARN] [pd.rs:1773] [“report min resolved_ts failed”] [err=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [thread_id=26]
[2024/08/29 09:00:19.801 +08:00] [WARN] [pd.rs:1773] [“report min resolved_ts failed”] [err=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [thread_id=26]
[2024/08/29 09:00:19.888 +08:00] [INFO] [util.rs:639] [“connecting to PD endpoint”] [endpoints=http://127.0.0.1:2384] [thread_id=56]
[2024/08/29 09:00:20.859 +08:00] [WARN] [pd.rs:1773] [“report min resolved_ts failed”] [err=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [thread_id=26]
[2024/08/29 09:00:21.465 +08:00] [WARN] [peer.rs:725] [“[region 4001] 4003 handle 1 peer messages ("Tick", 1), detail: Some("CheckLeaderLease")”] [takes=579] [thread_id=83]
[2024/08/29 09:00:21.936 +08:00] [WARN] [pd.rs:1773] [“report min resolved_ts failed”] [err=“Grpc(RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: }))”] [thread_id=26]
[2024/08/29 09:00:21.941 +08:00] [ERROR] [util.rs:819] [“failed to connect to PD member”] [error=“RpcFailure(RpcStatus { code: 4-DEADLINE_EXCEEDED, message: "Deadline Exceeded", details: })”] [endpoints=http://127.0.0.1:2384] [thread_id=56]
Waiting for tiflash instances ready
127.0.0.1:3930 … Done

:tada: TiDB Playground Cluster is started, enjoy!

Connect TiDB: mysql --comments --host 127.0.0.1 --port 4000 -u root
Connect TiDB: mysql --comments --host 127.0.0.1 --port 4001 -u root
TiDB Dashboard: http://127.0.0.1:2379/dashboard
Grafana: http://127.0.0.1:3000

请问这些报错是什么原因引起的,如何解决呢,谢谢CCTV,谢谢TiDB,谢谢有你。

字面的意思应该是 tiflash 连接不到 pd,是不是 pd ready 的时间慢于 tiflash ready 的时间?

:sweat_smile:不清楚,我是按文档第一次安装的,就遇到了这个错误。

我本地测也是 tiflash 部署有 error,临时方案加上。tiup playground 加上 --tiflash 0 吧

测试的话,不需要那么多节点,你就一台机器,直接tiup playground v8.3.0 --host 0.0.0.0就行,要那么多节点干啥,资源不够,启动都起不来

我猜你这服务器配置不够,资源不够,pd起来就挂了

一个机器跑这么多组件性能不够了吧,你的机器什么配置

所以最后是启动成功了么?display看看哪些组件没起来?

巧妇难为无米之炊,还是得有硬件。

1 个赞

笔记本是x1 64g内存,vmware给的4g 1cpu.

[root@server01 ~]# lscpu|grep -i cpu
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 1
On-line CPU(s) list: 0
CPU family: 6
CPU MHz: 2304.011
NUMA node0 CPU(s): 0
[root@server01 ~]# free -m
total used free shared buff/cache available
Mem: 3770 3258 116 31 395 254
Swap: 3967 3420 547

看我这个安装吧,从最简单开始。
Centos7离线安装TiDB集群(一台服务器)-CSDN博客

3 个赞

混布,然后pd根本都抢不到cpu执行。然后就连不上。就会报这个错。

你给他50G内存多核,试试。4g那么多节点组件吃内存肯定不够,这是分布式数据库。

分一半内存和cpu装

谢谢各位,确实是内存问题,我给1cpu 32g内存后就正常了,实际上给10g内存也差不多够。

1 个赞

在学习离线安装,参考下

看我这个文章吧,新鲜出炉的。

把节点数量设置为 1,playground 不用那么多节点

PD资源提高一点在看看

内存不够吧,多加点内存

我安装都是k8s一把梭,又快又稳