iroh icon indicating copy to clipboard operation
iroh copied to clipboard

Add support to control block store disk space usage

Open fabricedesre opened this issue 1 year ago • 2 comments

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.

fabricedesre avatar Sep 06 '22 22:09 fabricedesre

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 .

fabricedesre avatar Sep 07 '22 00:09 fabricedesre

from discord chat: we can start with exposing store::delete(cid) and store::estimated_size()

b5 avatar Sep 13 '22 21:09 b5