Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RocksDB cache size and compression configuration #17

Open
wants to merge 3 commits into
base: dev-0.3.16
Choose a base branch
from

Conversation

x100111010
Copy link
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.
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