This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Wrong RocksDB.Options parameter #11233
Labels
Z0-unconfirmed 🤔
Issue might be valid, but it’s not yet known.
Greetings!
I have discovered a possibly mistake parameter who the parity initializes the RocksDB. The latest parity what i use:
Parity-Ethereum/v2.7.0-nightly-cd8e8c4-20191031/x86_64-linux-gnu/rustc1.38.0
in archive mode.The RocksDB LOG file says the following:
Initializing
default
column family:Initializing other columns family (
col0
-col8
) :14.9 mb is way to low for storing terrabytes of data on 7 level.
The RocksDB engine gives also warnings about this:
I think the
max_bytes_for_level_base
parameter are accidentally mixed up. RocksDB recommendation for this value for big databases are 512MB ( https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide )I'm not an expert in RocksDB, but i think because of this parameter the auto compact module compact a lot of tables unnecessary. Today have started my client in
offline
mode the check what RocksDB works without any syncing. They have done about thousands of:compacting. It has run 4.5 hours until they has idle.
This can significant increase db corruption and lot of IO work for nothing.
CF RocksDB statistics:
The text was updated successfully, but these errors were encountered: