Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 近期tidb 同一个sql 查询突然变慢,发现 Coprocessor 执行耗时太长
To improve efficiency, please provide the following information. Clear problem descriptions can lead to faster resolutions:
【TiDB Usage Environment】
【Overview】 Scenario + Problem Overview
【Background】 Operations performed
【Symptoms】 Business and database symptoms
【Problem】 Current issue encountered
Coprocessor execution takes too long, the SQL itself is very fast. Found that grpc takes a long time, seeking help from experts
【Business Impact】
【TiDB Version】
v5.4.0
【Application Software and Version】
【Attachments】 Relevant logs and configuration information
- TiUP Cluster Display information
- TiUP Cluster Edit config information
Monitoring (https://metricstool.pingcap.com/)
- TiDB-Overview Grafana monitoring
- TiDB Grafana monitoring
- TiKV Grafana monitoring
- PD Grafana monitoring
- Corresponding module logs (including logs 1 hour before and after the issue)
If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.