TiUP cluster 在单机上模拟生产环境部署步骤,tiflash 172.20.0.246:9000 failed to start: timed out waiting for port 9000

TiUP cluster 在单机上模拟生产环境部署步骤,tiflash 172.20.0.246:9000 failed to start: timed out waiting for port 9000

版本v4.0.1

你好,

1, 确认pd 已经开启相关参数
2, 上传下 debug 日志和 tiflash deploy dir log 下的所有日志文件,这边排查下

tiup-cluster-debug-2020-06-23-18-26-54.log (127.0 KB) topo.yaml (1023 字节)
/tidb-deploy/tiflash-9000目录下的log文件件是空的

在 tiflash 服务器手动执行下,systemctl start tiflash-9000.service 看是否成功,这个需要 tiflash.log 提供详细的日志才方便定位。请将 log 和 屏幕输出上传下

没找到任何tiflash日志,systemctl start tiflash-9000.service没有报错,但是找不到tiflash进程。9000端口也未占用。

在 系统 message 中看是否有 tiflash tidb 的相关日志?

系统日志如下

你查下是否有 oom 的日志,目前看所有节点都在一台服务器上,并上传下服务器配置。可内存使用情况

没有oom日志,启动过程中使用top看服务器,还有22G左右内存。目前服务器处于启动了不含tiflash节点的tidb,其他节点正常,可用内存为20G。服务器总配置8core+32G,系统为centos7.5。附截图如下

![|480x118](file:////Users/Ao.du/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/CFFCEC45-C7F8-0E4D-BDBB-D799B9989A11.png)

不太清楚tiup cluster display为什么会显示有tiflash

此时尝试使用 scale-out 进行扩容tiflash,也是相同报错。

你好,

tiup cluster edit-config TiDBTest ,删除 tiflash 的配置即可,

可否将 scale-out 的 debug 日志上传下,并看下 deploy dir 下 是否有 tiflash 相关的日志,并截图反馈下

tiup cluster edit-config TiDBTest已经删除了tiflash,没有删除tiflash的时候,整个集群是无法启动的。
使用scale-out和直接在集群中加tiflash一样的效果,都是9000超时。deploy dir 没有tiflash相关的日志。从效果上看,scale-out和直接在配置文件里面放tiflash启动集群,是一样的效果。

你好,

此为两种操作,edit-config 之前删除 tiflash 是因为扩容失败,edit-config 中的配置已经写进去了,算是清理。

scale-out 与 edit-config 不可混淆。

debug 日志上传下,看是否有有用的信息,我这边反馈下。

界面截图如下

日志文件如下
tiup-cluster-debug-2020-06-24-14-22-39.log (166.6 KB)

你好,可以提供下 CPU 型号吗
cat /proc/cpuinfo

输出如下
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 0
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 1
cpu cores : 4
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 2
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel® Xeon® CPU E5430 @ 2.66GHz
stepping : 6
microcode : 0x60f
cpu MHz : 2660.000
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts nopl tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 hypervisor lahf_lm dtherm
bogomips : 5320.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

您好,请问,这个单机是虚拟机吗?多谢

对的,虚拟机。

1.具体是什么虚拟机?
2. 检查下虚拟机网络配置是否都方通了?
3. 能否尝试重新虚拟一个,试试是否有相同问题,多谢