Skip to content
Cosmopediaby Unity Nodes
DiscussionsConversationIs there any method or mode provided by Tendermint-core to remove the heavily used write-ahead log mechanism?Forum ↗

Is there any method or mode provided by Tendermint-core to remove the heavily used write-ahead log mechanism?

Conversation3 posts212 views2 likesLast activity Jul 2024
CH
Chenxu_WangOP
Jun 2024 1

The Tendermint-core uses a write-ahead log (WAL) mechanism to guarantee consensus safety after crashed validators recover. But this mechanism requires validators to write any received or generated messages to be written to the WAL, whose content will be synced to the disk. This process seems to incur heavy disk IO in my computer. I wonder whether the developers of Tendermint have provided any method or mode to remove the heavily used write-ahead log mechanism.

JA
jacobgadikian
Jun 2024 1

I don’t think that any such thing exists.

My understanding of the wal is that it ensures that signatures are always available, should a node crash.

The idea of having a toggle for it is kind of interesting.

Would need to study safety impacts.

How much disk io is wal using in your case?

AD
AdiSeredinschi
Jul 2024

The WAL is necessary for crash-recovery. But it can be optimized. This could be a good place for continuing the discussion—Option to reduce cs.wal max size · Issue #1233 · cometbft/cometbft · GitHub

By the way, Tendermint Core is no longer maintained. Switch to CometBFT.

← Back to Discussions