Questions about periodic CPU spikes 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: 啦啦啦啦啦

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] 6.1.6
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
The region heartbeat suddenly increases every 10 minutes, and the corresponding raft store CPU also periodically increases. I don’t quite understand what causes this 10-minute cycle. Can any expert explain this?


image

| username: songxuecheng | Original post link

Check the GC settings.

| username: 啦啦啦啦啦 | Original post link

The tikv_gc_run_interval is 10 minutes. Why does it affect the heartbeat? This happens even in clusters with no writes.

| username: dba远航 | Original post link

It is possible that this is caused by the scheduled execution of GC, during which there may be a large number of DML operations.

| username: 啦啦啦啦啦 | Original post link

It seems to be caused by GC, but the cluster without writes has the same effect, without a large amount of DML.

| username: songxuecheng | Original post link

Guess the reason is here.

| username: 啦啦啦啦啦 | Original post link

Got it, thanks for the clarification.

| username: songxuecheng | Original post link

The images you provided are not visible. Please provide the text content that you need translated.

| username: dba远航 | Original post link

Glad you found the problem, congratulations!

| username: 啦啦啦啦啦 | Original post link

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