MrCroxx / RunKV

[WIP] An experimental cloud-native distributed KV engine for OLTP workload.
MIT License
68 stars 7 forks source link

feat: raft log store sync detail metrics #137

Closed MrCroxx closed 2 years ago

MrCroxx commented 2 years ago

As titled.

... and, the sync duration looks weird, 20ms?

Ref: #66 .

image
MrCroxx commented 2 years ago

It reasonable that the fsync duration is more than 20ms on macbook with rust, even if fio has gaven a much smaller duration, because fio is not calling F_FULLFSYNC on mac, and fsync only flush dirty buffer to device but not waiting.

FYI: https://twitter.com/marcan42/status/1494213855387734019

MrCroxx commented 2 years ago

From TiKV:

https://github.com/pingcap/tidb/issues/18024

https://docs.google.com/document/d/1P_CsHs-9Vlzizohzr6REIgVacPwBG_0vP4T7QEKswxI/edit