New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purge the artifacts in the cache directory when they are not being used #5924
Comments
I did some quick analysis of the current code and here's a summary of the existing implementation:
A possible solution:
When a file in the cache expires after a set (configurable) TTL, it can be safely purged (as long as the reference count for that file is |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
Currently, GoCD does not clean the artifacts stored in the artifacts/cache directory. With setups with larger artifacts being generated in each run of the job, this can eat up quite some space on the GoCD server and cause the server itself to starve. This further causes the server to be preemptive and delete the artifacts causing some jobs to fail.
The text was updated successfully, but these errors were encountered: