mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 23:08:39 +01:00
Limit max # of RockDB open files
This commit is contained in:
parent
6f3424f734
commit
19c63cf06f
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ impl DBStore {
|
|||
db_opts.set_target_file_size_base(64 << 20);
|
||||
db_opts.set_write_buffer_size(64 << 20);
|
||||
db_opts.set_disable_auto_compactions(opts.bulk_import);
|
||||
db_opts.set_max_open_files(1024); // default ulimit value
|
||||
|
||||
let mut block_opts = rocksdb::BlockBasedOptions::default();
|
||||
block_opts.set_block_size(256 << 10);
|
||||
|
|
Loading…
Add table
Reference in a new issue