Skip to main content

Module block_migration_planner

Module block_migration_planner 

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

BlockMigrationPlanner
Block migration planner: registers blocks, creates plans, executes them, and provides scheduling and defragmentation helpers.
BmpBatchResult
Aggregated result of a BlockMigrationPlanner::run_batch_migration call.
BmpBlockMeta
Metadata tracked for each registered block.
BmpExecutionResult
Result of executing a single plan.
BmpMigrationPlan
A migration plan grouping one or more blocks for movement to a destination node.
BmpMigrationRecord
Per-block execution record appended to the execution log.
BmpPlannerConfig
Planner behaviour configuration.
BmpPlannerStats
Aggregate statistics returned by BlockMigrationPlanner::migration_stats.

Enums§

BmpError
Errors returned by BlockMigrationPlanner operations.
BmpPlanStatus
Lifecycle state of a BmpMigrationPlan.
BmpPriorityPolicy
Policy for ordering migration candidates when scheduling.

Functions§

bmp_id_from_bytes
Build a BmpBlockId deterministically from arbitrary bytes using FNV-1a.

Type Aliases§

BmpBlockId
32-byte content-addressed block identifier (e.g. SHA-256 digest).
BmpBlockMigrationPlanner
Alias for BlockMigrationPlanner — used in pub re-exports.
BmpPlanId
Opaque numeric identifier for a migration plan.