Module tiering

Module tiering 

Source
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§

AccessStats
Access statistics for a single block
AccessTracker
Access tracker for monitoring block access patterns
TierConfig
Configuration for tiering behavior
TierStatsSnapshot
Snapshot of tier statistics
TieredStore

Enums§

Tier
Storage tier classification