Deploying a Test Cluster on a Virtual Machine, TiFlash Fails to Start

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 一台虚机上部署测试集群,tiflash启动失败

| username: linnana

[Test/Poc Environment for TiDB]
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]

A virtual machine with CentOS 7.9, x86_64, successfully deployed the test cluster, but encountered an error when starting the cluster: Error: failed to start tiflash: failed to start: xxx.xxx.xxx.xxx tiflash-9000.service, please check the instance’s log(/tidb-deploy/tiflash-9000/log) for more detail.: timed out waiting for port 9000 to be started after 2m0s

Error log screenshot from tiflash_stderr.log:
image

| username: redgame | Original post link

Check if port 9000 is in use.

| username: linnana | Original post link

There is no port 9000.

| username: 南征北战 | Original post link

The virtual machine does not support the AVX2 instruction set. Refer to this: 关于dorisdb 本地搭建virtual_box虚拟机设置CPU支持AVX2指令集_virtualbox avx-CSDN博客

| username: linnana | Original post link

It seems that this version of the virtual machine is not supported. Try upgrading.

| username: zhanggame1 | Original post link

Installing VMware Workstation 17 is really great.

| username: 春风十里 | Original post link

When deploying TiFlash on a hardware platform with the Linux AMD64 architecture, the CPU must support the AVX2 instruction set. Ensure that the command cat /proc/cpuinfo | grep avx2 has output. When deploying TiFlash on a hardware platform with the Linux ARM64 architecture, the CPU must support the ARMv8 architecture. Ensure that the command cat /proc/cpuinfo | grep 'crc32' | grep 'asimd' has output. By using vector extension instruction sets, TiFlash’s vectorized engine can provide better performance.

TiFlash Overview | PingCAP Documentation Center

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.