Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tiflash启动失败请教
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] v6.4.0-linux-amd64
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Operating System Version CentOS Linux release 7.9.2009 (Core), using QingCloud host
[Attachments: Screenshots/Logs/Monitoring]
tiflash failed to start,
Error: failed to start tiflash: failed to start
Entering the tiflash-9000/scripts directory and executing sh run_tiflash.sh results in the following error:
sync …
real 0m0.005s
user 0m0.000s
sys 0m0.003s
ok
Illegal instruction
error
There is only one file tiflash_stderr.log under tiflash-9000/log, but the file content is empty.
Is this an issue with the CPU instruction set when the virtual machine was created?
Is TiFlash an expansion process, or is this node instantiated during initialization…
Wasn’t it handled using the TiUP toolkit?
What does the log look like when using tiup to operate?
At the beginning, I used tiup to start the cluster. When starting tiflash, it reported a timeout.
Error: failed to start tiflash: failed to start,
Under tiflash-9000/log, there is only one file named tiflash_stderr.log, but the file content is empty.
At the beginning, I used tiup to start the cluster on a single machine, and the log showed that starting tiflash timed out.
It might be that the memory is too small. My 16GB also couldn’t start up and timed out. After increasing it to 32GB, it started up.
Priority should be given to meeting the minimum requirements.
Could you try directly executing sh run_tiflash.sh
on your side? Will it report an Illegal instruction?
It is recommended to refer to TiDB 6.3.0 Release Notes | PingCAP Docs
Starting from v6.3.0, deploying TiFlash on the Linux x86-64 architecture platform requires AVX2 instruction set support.
Currently, mainstream cloud hosts already support the AVX2 instruction set.
Use the tiup command. If you execute sh run_tiflash.sh separately, you will need to add many parameters afterward.
Resolved, thank you. Adjusted the CPU to support the AVX2 instruction set, and TiFlash has successfully started.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.