Migration Orchestrator
Question this page answers: How do I resume large backfills after interruption without breaking data consistency?
Core concept
Section titled “Core concept”- One-line definition: the orchestrator is an execution layer tracking backfill lifecycle with
plan/apply/status/retry. - Why it matters: failed chunks are retried precisely without duplicate writes.
- Configuration example (
safe): persist progress in DB meta tables and local snapshots. - Common mistake: relying only on logs with no resumable state.
CLI flow
Section titled “CLI flow”k-msg db tracking migrate plan --sqlite-file ./local.dbk-msg db tracking migrate apply --sqlite-file ./local.dbk-msg db tracking migrate status --sqlite-file ./local.dbk-msg db tracking migrate retry --sqlite-file ./local.dbOperational checkpoints
Section titled “Operational checkpoints”- Keep the same
planIdfor resumed execution. - Retry only failed chunks with
retry. - Switch
compatPlainColumns=falseonly after hash/cipher consistency checks.
Risk labels
Section titled “Risk labels”safe: validate status before each stage transitioncaution: force-stop during apply without reading statusunsafe: create a new plan while old plan is still active