Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(db): Configurable maximum number of open RocksDB files (#1401)
## What ❔ Added a field to RocksDBOptions, which is used as an argument to rocksdb::Options::set_max_open_files(). ## Why ❔ This allows Merkle tree users to limit the number of open files required by RocksDB, which otherwise grows beyond normal OS limits (8192 files) and requires large amounts of memory (currently, beyond 32GB). ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - current (integration) tests run as before - external program requiring the change is now running - [x] Documentation comments have been added / updated. - all new fields and methods are documented - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [ ] Linkcheck has been run via `zk linkcheck`. - no links added (nor modified)
- Loading branch information