Detailed Explanation of CPU Usage Monitoring Issues in Raft Store

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Raft store CPU 的使用率监控问题详解

| username: Raymond

The official website says that the CPU usage rate of the raftstore thread should ideally be below 80% * raftstore.store-pool-size. Assuming my raftstore.store-pool-size is 2 (default), then 80% * 2 = 160%. Does this mean that the CPU usage rate of a single raftstore can exceed 100%? How exactly is this calculated? Please advise.

| username: Raymond | Original post link

Referring to the usage rate of async apply CPU, it can indeed exceed 100%. I found the answer myself.

| username: hey-hoho | Original post link

100% is calculated per core, setting it to 2 means a maximum of 200%.

| username: tidb菜鸟一只 | Original post link

It’s normal. Two threads use two CPUs, so the maximum usage can reach 200%.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.