Repository navigation
Done
elixir-cloud-aai/conquest
#12Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritytopic: conquestUpstream: anuragxxd/conquesttype: featureNew feature or requestworkload: daysLikely takes days to resolve
Description
Part of #149 (D-463). Conquest never deletes run data today; with one
bucket per run, buckets would pile up and cost money. Add a retention
setting: a terminal run's data is deleted automatically once the run has
been terminal for longer than the retention period.
- Setting
CONQUEST_RUN_RETENTION(Go duration, e.g.720h; chart
runRetention). Default: off (no deletion), so operators who upgrade lose no data; the chart example and our CERIT test deployment set720h(1 month). - A periodic sweep (reconciler or own loop, single-flight across replicas
via a DB claim) finds terminal runs past retention, calls
Provisioner.Delete(runID)and recordsdata_deleted_at(migration).
Shared.Deletedeletes the objects under the run's root;obcdeletes
the OBC (Conquest:obcrun-bucket provisioner #156). Also delete remaining Jobs/PVCs of the run. - Orphan sweep: buckets/OBCs labelled with a run ID that has no run row
(Conquest: run-bucket provisioner withshareddefault #154 keeps the bucket when storing the run fails, since the row may exist;
a failed best-effort Delete also leaves one) are deleted after a grace
period. - API: a run whose data is gone still lists, with outputs/logs answering
that the data expired (no 500s). - No operator clean-up steps (D-463): nothing to run by hand.
- Tests: sweep with fake clock and fake provisioner; shared prefix
deletion against SeaweedFS. - Docs: config table, Run buckets/retention section, upgrade note (enabling
it deletes old runs' data on the first sweep).
Metadata
Metadata
Assignees
Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritytopic: conquestUpstream: anuragxxd/conquesttype: featureNew feature or requestworkload: daysLikely takes days to resolve
Type
Projects
- StatusShow more project fieldsDone
Activity
shareddefault #154shareddefault #154feat: delete run data after a retention period (#12)