Skip to main content

Module cold_storage

Module cold_storage 

Source
Expand description

Cold storage tier management for archiving infrequently accessed blocks.

This module provides a policy-driven system for managing four storage tiers:

  • Hot: frequently accessed, in-memory or fast SSD
  • Warm: infrequent access, on-disk
  • Cold: archival, compressed, slow access
  • Frozen: immutable archive

Blocks are automatically migrated between tiers based on age and access recency.

Structs§

ColdStorageManager
Policy-driven manager that tracks blocks across four storage tiers and migrates them according to access recency.
ColdStorageStats
Aggregate statistics for the cold-storage manager.
TierPolicy
Policy controlling when blocks graduate to colder tiers.
TieredBlock
Metadata record for a single block tracked by the cold-storage manager.

Enums§

StorageTier
The four storage tiers, ordered from hottest (fastest/most expensive) to coldest (slowest/cheapest).

Functions§

fnv1a_cold
Compute FNV-1a 64-bit hash of a byte slice.