Make logrotate a background process #23
Merged
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.
Background logrotate process
Description
Closes #22
This runs logrotate as a background process rather than in the
foreground. Degradation was caused by a delay in container startup when
catalina.out gets rotated. If the file is big enough, the delay can be
significant to cause degradation.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Testing is done by doing the following:
stop any existing metacat containers/processes in the case of Spin run this using
ess-dive-config:./deploy.sh dev stop data-dev-ess-dive-lbl/app-metacatthen check if catalina.out is big enough on the community file system located on Cori:
ls -lah $CFS/m2690/ess-dive/metacat/usr/local/tomcat/logs/catalina.outif it is less than 100M then make it bigger by using
truncate:truncate -s 200M catalina.outThen restart the container using the built image with the commit number
p57. So modify thedocker-compose.ymlfile iness-dive-config. You'll have to build the image and push to the spin registry using theessdive-appstackrepository../deploy.sh dev up -d app-metacatThen check for the following:
Note: You will have to delete one of the old tarballs if they already exist since logrotate will check for the existence of that tarball. If it already exists then no logrotation will happen.
Test Configuration