1
0
Fork 0
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:
Roman Zeyde 2018-06-24 13:20:33 +03:00
parent 6f3424f734
commit 19c63cf06f
No known key found for this signature in database
GPG key ID: 87CAE5FA46917CBB

View file

@ -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);