Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 请问TiDB集群如何进行优化?内存和cpu占比很高,
How can I optimize a TiDB cluster? The memory and CPU usage are very high. The cluster is set up on an 8-core, 60GB Linux server.
Still don’t understand the meaning.
Which components have high memory and CPU usage?
Is the resource usage consistently high or only high during certain periods? If it suddenly spikes, troubleshoot as follows:
- Check for slow SQL queries;
- Large transactions;
- Large result sets;
If the usage is consistently high and stable:
It is likely due to overall resource insufficiency.
- Expand resources;
- If you don’t want to expand resources but want to lower the resource usage, adjust the relevant resource configuration parameters.
Specific parameter adjustments: Based on the components with high resource usage and the current resource configuration.
If convenient, you can use the clinic service to upload monitoring information, which can help with diagnosis.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.