iroh
iroh copied to clipboard
Add support to control block store disk space usage
Currently there is no such configuration, so the storage engine will just fail when it can't write. Instead we need to manage CID eviction based on some heuristic when a size threshold is reached.
Relevant RocksDB documentation: https://github.com/facebook/rocksdb/wiki/Managing-Disk-Space-Utilization
But it looks like SstFileManager
is not exposed in the Rust crate. I opened https://github.com/rust-rocksdb/rust-rocksdb/issues/684 .
from discord chat: we can start with exposing store::delete(cid)
and store::estimated_size()