Expand description
Hot/cold storage tiering with access tracking.
Manages automatic migration of blocks between fast (hot) and slow (cold) storage tiers based on access patterns.
§Access Tracking
Uses a combination of access frequency and recency to determine block temperature. Blocks with high access frequency stay hot, while rarely accessed blocks become cold over time.
§Example
ⓘ
use ipfrs_storage::tiering::{AccessTracker, TierConfig};
let tracker = AccessTracker::new(TierConfig::default());
tracker.record_access(&cid);
if tracker.is_hot(&cid) {
// Block is frequently accessed
}Structs§
- Access
Stats - Access statistics for a single block
- Access
Tracker - Access tracker for monitoring block access patterns
- Tier
Config - Configuration for tiering behavior
- Tier
Stats Snapshot - Snapshot of tier statistics
- Tiered
Store
Enums§
- Tier
- Storage tier classification