FIREFLY-2077: Refactor cleanup.sh to improve configuration and maintainability - #2014
Open
loitly wants to merge 4 commits into
Open
FIREFLY-2077: Refactor cleanup.sh to improve configuration and maintainability#2014loitly wants to merge 4 commits into
loitly wants to merge 4 commits into
Conversation
…nability - Fix entrypoint.py to prevent duplicate props added to the command line
loitly
force-pushed
the
FIREFLY-2077-cleanup-script
branch
from
September 11, 2026 21:56
de9a9b1 to
0c48d5e
Compare
Contributor
|
I will look at this PR on Monday. However, a quick comment. Why not use both age mode and percent full mode together? I think that is what Frossie wanted. The age mode runs and the percent full is a fallback if the disk is still getting too full after the age mode run. |
Contributor
Author
Ah, I misunderstood. Let me make the change, and I’ll let you know when to review it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: https://jira.ipac.caltech.edu/browse/FIREFLY-2077
Additional changes here: https://github.com/IPAC-SW/irsa-ife/pull/478
Many changes to the cleanup process. Best way to understand it is to read the script's docs.
Tests:
The best way to test this is to remote shell into the pod and observe how cleanup.sh behaves.
Cleanup logs are under
/firefly/logs/cleanup/firefly/AGE mode:
https://firefly-2077-cleanup-script.irsakubedev.ipac.caltech.edu/firefly/
Built with envVars:
Check every minute:
PCT-FULL: mode:
https://firefly-2077-cleanup-script-pct-full.irsakubedev.ipac.caltech.edu/firefly/
Built with envVars:
The script also checks every minute. It evaluates /firefly/workarea and /firefly/shared-workarea separately.
Because /firefly/workarea/firefly is an emptyDir backed by the pod's local node filesystem, df reports usage for the underlying host filesystem. For example:
Used is greater than 30%, so it will attempt to clean all files until it's under 15%.
The results is it deleted all of the files with nothing left to remove.
/firefly/shared-workareais NFS-mounted filesystem. It's below the configured watermark. Nothing to clean.