Skip to content

Recommended approach for cleaning old logs and test files #803

Answered by carlospzurita
dhdeangelis asked this question in Q&A
Discussion options

You must be logged in to vote

Dear @dhdeangelis

It is normal that the files would grow exponentially. What we would recommend to handle this is to save the HTML report everytime a validation is made, to have a backup of this; and setup a nightly process to

  • Stop the Docker container
  • Eliminate all files that are no longer relevant
  • Restart the docker container

To execute the removal, you can find here this very same process that is performed on the production instance every night to keep the file size limited. You can adapt this cron script to your necessities

sudo find /efs/ds/obj -type f -name 'TestObject-*' -mtime +3 -exec rm {} \;
sudo find /efs/ds/obj -type f -name 'TestRun-*' -mtime +3 -exec rm {} \;
sudo find /e…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fabiovinci
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion This is a discussion about the Validator, any comment is welcome deployment This issue is about the deployment of the Docker image, WAR file or operational environment
2 participants
Converted from issue

This discussion was converted from issue #648 on June 30, 2022 09:09.