Skip to content

add RocksDB cache size and compression configuration#17

Draft
x100111010 wants to merge 3 commits into
spectre-project:dev-0.3.16from
x100111010:rocksdb2
Draft

add RocksDB cache size and compression configuration#17
x100111010 wants to merge 3 commits into
spectre-project:dev-0.3.16from
x100111010:rocksdb2

Conversation

@x100111010
Copy link
Copy Markdown
Member

  • added rocksdb_cache_size option to Config and Args structs
  • updated ConsensusFactory and ConnBuilder to use configurable cache size
    -> pass rocksdb cache size parameter via cli args to db connector
  • added a new CLI argument for rocksdb-consensus-cache-size with a detailed help description
  • improved other CLI arguments
  • configured RocksDB compression with DBCompressionType::None for level 0 and Lz4 for levels 1-6

@0xA001113 this will be interesting for the 10bps testnet

- Added `rocksdb_cache_size` option to `Config` and `Args` structs.
- Updated `ConsensusFactory` and `ConnBuilder` to use configurable cache size.
- Introduced `ApplyCacheSize` trait for managing cache size in RocksDB options.
- Configured RocksDB compression with `DBCompressionType::None` for level 0 and `Lz4` for levels 1-6.
- Optimized RocksDB settings: background jobs, compaction, buffer sizes, direct I/O, WAL settings, and block-based table options.
@x100111010 x100111010 marked this pull request as draft March 8, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants