Raft Log Latency Too High

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

Original topic: raft log 延迟过高

| username: Kongdom

[TiDB Usage Environment] Online
[TiDB Version] 5.7.25-TiDB-v5.1.0
[Encountered Issue]
[Reproduction Path]
[Issue Phenomenon and Impact]
According to the official documentation, the response time for writing to RocksDB, which stores Raft logs, is significantly high.
The cluster is virtualized on SSDs.
How can I reduce read and write latency?



[Attachment]

| username: xfworld | Original post link

Change the hardware? :rofl:

| username: Kongdom | Original post link

It is already a solid-state drive, but virtualization is done on the solid-state drive here. I am not sure if the impact is significant.

| username: xfworld | Original post link

There will also be speed differences with SSDs. It depends on whether the production environment can accept it. If not, then you still need to consider upgrading the hardware.

| username: Kongdom | Original post link

:wink: Got it, I’ll test the IO tonight.

| username: wuxiangdong | Original post link

It seems there is a parameter to configure RocksDB for asynchronous disk writes. Adjust this parameter and use sysbench to compare the results.

| username: Kongdom | Original post link

This parameter was removed after version 5.x.

| username: wuxiangdong | Original post link

It’s a pity that this parameter was removed.

| username: alfred | Original post link

From the disk latency monitoring, many points fall around 20ms, indicating that the disk latency is slightly high.

| username: Kongdom | Original post link

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