Expand description
Block migration planner: schedules and tracks data movement between storage nodes/tiers.
This module provides BlockMigrationPlanner which registers blocks,
creates and executes migration plans, schedules migrations by policy,
runs batch migrations, and generates defragmentation plans to balance data
across nodes.
Structs§
- Block
Migration Planner - Block migration planner: registers blocks, creates plans, executes them, and provides scheduling and defragmentation helpers.
- BmpBatch
Result - Aggregated result of a
BlockMigrationPlanner::run_batch_migrationcall. - BmpBlock
Meta - Metadata tracked for each registered block.
- BmpExecution
Result - Result of executing a single plan.
- BmpMigration
Plan - A migration plan grouping one or more blocks for movement to a destination node.
- BmpMigration
Record - Per-block execution record appended to the execution log.
- BmpPlanner
Config - Planner behaviour configuration.
- BmpPlanner
Stats - Aggregate statistics returned by
BlockMigrationPlanner::migration_stats.
Enums§
- BmpError
- Errors returned by
BlockMigrationPlanneroperations. - BmpPlan
Status - Lifecycle state of a
BmpMigrationPlan. - BmpPriority
Policy - Policy for ordering migration candidates when scheduling.
Functions§
- bmp_
id_ from_ bytes - Build a
BmpBlockIddeterministically from arbitrary bytes using FNV-1a.
Type Aliases§
- BmpBlock
Id - 32-byte content-addressed block identifier (e.g. SHA-256 digest).
- BmpBlock
Migration Planner - Alias for
BlockMigrationPlanner— used in pub re-exports. - BmpPlan
Id - Opaque numeric identifier for a migration plan.