add rocksdb configurable options and tweaks, logging improvements, exp. room v11 support
split out the spinning disk focused options into a configurable option, current conduwuit users are NVMe/SSDs anyways so those options are just hindering performance. rocksdb logging builds up overtime with no cleanup or anything, adds support for configuring the amount of logging, size of files, log rotate, etc. fixes https://gitlab.com/girlbossceo/conduwuit/-/issues/1 misc conduit logging improvements for help debugging issues and maybe a future feature experimental Room V11 support from https://gitlab.com/famedly/conduit/-/merge_requests/562 Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -395,6 +395,22 @@ impl Service {
|
||||
self.config.presence_offline_timeout_s
|
||||
}
|
||||
|
||||
pub fn rocksdb_log_level(&self) -> &String {
|
||||
&self.config.rocksdb_log_level
|
||||
}
|
||||
|
||||
pub fn rocksdb_max_log_file_size(&self) -> usize {
|
||||
self.config.rocksdb_max_log_file_size
|
||||
}
|
||||
|
||||
pub fn rocksdb_log_time_to_roll(&self) -> usize {
|
||||
self.config.rocksdb_log_time_to_roll
|
||||
}
|
||||
|
||||
pub fn rocksdb_optimize_for_spinning_disks(&self) -> bool {
|
||||
self.config.rocksdb_optimize_for_spinning_disks
|
||||
}
|
||||
|
||||
pub fn supported_room_versions(&self) -> Vec<RoomVersionId> {
|
||||
let mut room_versions: Vec<RoomVersionId> = vec![];
|
||||
room_versions.extend(self.stable_room_versions.clone());
|
||||
|
||||
Reference in New Issue
Block a user