improvement: delete old rocksdb LOG files

This commit is contained in:
Timo Kösters 2024-02-29 10:28:06 +01:00
parent 99ab234f40
commit 62dda7a43f
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB

View file

@ -49,6 +49,9 @@ fn db_options(max_open_files: i32, rocksdb_cache: &rocksdb::Cache) -> rocksdb::O
db_opts.set_max_background_jobs(6);
db_opts.set_bytes_per_sync(1048576);
// https://github.com/facebook/rocksdb/issues/849
db_opts.set_keep_log_file_num(100);
// https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes#ktoleratecorruptedtailrecords
//
// Unclean shutdowns of a Matrix homeserver are likely to be fine when