raft-engine icon indicating copy to clipboard operation
raft-engine copied to clipboard

Support double write to avoid io spike

Open Connor1996 opened this issue 2 years ago • 0 comments

In cloud environment, cloud disk IO may get stuck for a while due to cloud vendor infrastructure issues. This may affect the foreground latency dramatically. Raft log apply doesn't sync mostly, so it wouldn't be a problem. While raft log append is synced every time. To alleviate that, we can hedge raft log to two different cloud disks. If either one of them is synced, the raft log append is considered finished. Thus when one of the cloud disk IO is stuck, the other one can still work and doesn't affect foreground write flow.

Connor1996 avatar Oct 23 '23 08:10 Connor1996