Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 【tiflash】代价模型是如何选择tikv还是tiflash的?算法是什么?
【TiDB Usage Environment】Production environment or Test environment or POC
Test environment.
【TiDB Version】
Latest version.
【Encountered Problem】
【tiflash】How does the cost model choose between tikv and tiflash? What is the algorithm? Is there any related documentation?
【Reproduction Path】What operations were performed that caused the problem
【Problem Phenomenon and Impact】
【Attachments】 Related logs and monitoring (https://metricstool.pingcap.com/)
If the question is about performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.