1.4 KiB
1.4 KiB
LNM Backfill Plan (DEVOPS-LNM-22-001)
Goal
Run staging backfill for advisory observations/linksets, validate counts/conflicts, and document rollout steps for production.
Prereqs
- Concelier API CCLN0102 available (advisory/linkset endpoints stable).
- Staging Mongo snapshot taken (pre-backfill) and stored at
s3://staging-backups/concelier-pre-lnmbf.gz. - NATS/Redis staging brokers reachable.
Steps
- Seed snapshot
- Restore staging Mongo from pre-backfill snapshot.
- Run backfill job
dotnet run --project src/Concelier/StellaOps.Concelier.Backfill -- --mode=observations --batch-size=500 --max-conflicts=0dotnet run --project src/Concelier/StellaOps.Concelier.Backfill -- --mode=linksets --batch-size=500 --max-conflicts=0
- Validate counts
- Compare
advisory_observations_totalandlinksets_totalvs expected inventory; export to.artifacts/lnm-counts.json. - Check conflict log
.artifacts/lnm-conflicts.ndjson(must be empty).
- Compare
- Events/NATS smoke
- Ensure
concelier.lnm.backfill.completedemitted; verify Redis/NATS queues drained.
- Ensure
- Roll-forward checklist
- Promote batch size to 2000 for prod, keep
--max-conflicts=0. - Schedule maintenance window, ensure snapshot available for rollback.
- Promote batch size to 2000 for prod, keep
Outputs
.artifacts/lnm-counts.json.artifacts/lnm-conflicts.ndjson(empty)- Log of job runtime + throughput.
Acceptance
- Zero conflicts; counts match expected; events emitted; rollback plan documented.