Add configurable rust-rocksdb logging and log rotation #1

Closed
opened 2023-11-30 05:44:14 +00:00 by girlbossceo · 1 comment
girlbossceo commented 2023-11-30 05:44:14 +00:00 (Migrated from github.com)

Currently there is zero configuration or control over RocksDB logging (verbosity, path, rotate, etc) which ends up creating infinite amounts of LOG files in the database directory that can accumulate overtime. Something in the Conduit chat reported that rm -rf'ing all LOG* files freed 3GB of storage.

https://docs.rs/rocksdb/latest/rocksdb/?search=log

https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_bytes_per_sync

Currently there is zero configuration or control over RocksDB logging (verbosity, path, rotate, etc) which ends up creating infinite amounts of `LOG` files in the database directory that can accumulate overtime. Something in the Conduit chat reported that rm -rf'ing all `LOG*` files freed 3GB of storage. https://docs.rs/rocksdb/latest/rocksdb/?search=log https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_bytes_per_sync
girlbossceo commented 2023-12-03 07:10:59 +00:00 (Migrated from github.com)
https://github.com/girlbossceo/conduwuit/commit/f62f6415450e1ef6326b3ac38406021fff12f0e1 https://github.com/girlbossceo/conduwuit/commit/d9d1ce3cb5a85b719384a7d6d3ebca07cedf062b
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#1
No description provided.