fix(job-orchestration): Move garbage collector recovery file to temporary directory (fixes #1823).#1834
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe archive garbage collector’s recovery file path is changed from the configured logs directory to the configured temporary directory. Deployment artifacts (Helm template and Docker Compose) are updated so the garbage-collector container mounts the shared tmp volume at the new path; chart version is bumped. ChangesGarbage Collector: tmp recovery file + deployment mounts
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# Conflicts: # tools/deployment/package-helm/Chart.yaml # tools/deployment/package-helm/templates/garbage-collector-deployment.yaml
|
Since "using tmpfs instead of binding mount" is a different requirement from changing the GC file list directory to use clpConfig.tmp_directory, i believe that change should be submitted in a separate PR. |
hoophalab
left a comment
There was a problem hiding this comment.
LGTM.
It looks that the garbage collector could leave orphaned archives in storage if the pod crashes and k8s recycles its emptyDir volume. Not saying we should fix this right now -- we can just ask coderabbit to create an issue
@coderabbitai create an issue to track |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 43
|
…rary directory (fixes y-scope#1823). (y-scope#1834) Co-authored-by: hoophalab <200652805+hoophalab@users.noreply.github.com>
Description
This PR moves the garbage collector recovery file from the logs directory to the temporary directory, addressing the issues raised in #1823.
The archive_garbage_collector.py was writing its recovery file to clp_config.logs_directory, which:
This PR:
Checklist
breaking change.
Validation performed
Confirmed that the garbage-collector service has the tmp volume * mounted in Docker Compose
Docker Compose deployment
All services started successfully including garbage-collector with the tmp volume mounted.
Helm chart deployments
Single-node setup
Multi-node setup with shared worker nodes
Multi-node setup with dedicated worker nodes
Summary by CodeRabbit