In the early stage of this project, fsync is performed outside the lock. It proves to be inefficient and causes excessive disk IOPS that harms every other I/O task in the system.
Later a proposal was brought up (https://github.com/tikv/raft-engine/issues/258) to parallelize writes in configurable shards. But for our use case (AWS cloud disk), the performance gain is negligible.
In the early stage of this project,
fsync
is performed outside the lock. It proves to be inefficient and causes excessive disk IOPS that harms every other I/O task in the system.Later a proposal was brought up (https://github.com/tikv/raft-engine/issues/258) to parallelize writes in configurable shards. But for our use case (AWS cloud disk), the performance gain is negligible.