Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 用sysbench 压测tidb的时候某一台节点的cpu 使用率上不去
Version: v6.1.0
Using Hygon CPU + Kylin system, we conducted performance testing with sysbench connecting to HAProxy. Three machines were deployed with 2 TiDB, 1 TiKV, and 1 PD each, with consistent CPU, memory, and storage resources. We found that when stress testing with more than 100 concurrent threads, the CPU usage of one machine couldn’t go up. For example, the average CPU usage of machine A was 70%, while machine C’s average CPU usage was 35%. Moreover, the CPU usage of both the TiDB server and TiKV node on machine C couldn’t go up. After analysis:
- No components crashed during the test.
- There were no obvious read/write hotspots.
- The number of regions and leaders on the three TiKV nodes remained consistent.
- The number of connections to each TiDB server was consistent.
- By directly connecting to the TiDB server on machine C for testing, we found that the CPU usage on machine C could go up.
Could the experts please help to identify what might be causing this issue?