TiKV indicates cannot step raft local message

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

Original topic: tikv 提示 cannot step raft local message

| username: TiDBer_Q6L2quQQ

[Test Environment for TiDB]
[TiDB Version] 5.2.1
[Encountered Issue: Problem Description and Impact]
During the data loading process, TiKV frequently reports this type of error.


According to community posts, I have checked for bad-sst, but found none.

| username: WalterWj | Original post link

Set up monitoring… High resource usage might also cause TiKV to be unable to handle it…

| username: TiDBer_Q6L2quQQ | Original post link

I can’t set up the environment, so I’ll try reducing the concurrency.

| username: zhaokede | Original post link

The “cannot step raft local message” error is usually related to message handling in the Raft consensus protocol. Carefully check and diagnose the network, node load, Raft state, and the implementation of TiKV and Raft. Locate and resolve the issue by reviewing logs, monitoring node load, upgrading versions, and contacting support.

| username: TiDBer_Q6L2quQQ | Original post link

I reduced the concurrency, lowering the cosbench concurrency from 3000 to 200. This significantly reduced the error logs, but there are still some.

| username: WalterWj | Original post link

How many CPUs are needed for 200 parallel tasks…

| username: TiDBer_Q6L2quQQ | Original post link

4k with 200 parallelism, mainly inserting data into objects, TiKV only generates the corresponding index.
7 servers of the same model, configuration as follows:

| username: WalterWj | Original post link

Try turning off the server swap. TiDB 环境与系统配置检查 | PingCAP 文档中心 It’s best to align the system parameter configurations. :thinking: