Bug 876473
| Summary: | scalable php-5.3/python-2.6/perl-5.10/ruby-1.8/ruby-1.9 apps' access log keeps growing | ||
|---|---|---|---|
| Product: | OKD | Reporter: | jizhao |
| Component: | Containers | Assignee: | Ram Ranganathan <ramr> |
| Status: | CLOSED UPSTREAM | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | atodorov, development, mfisher, szhou |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-11-14 22:25:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
jizhao
2012-11-14 09:10:54 UTC
This is expected behaviour -- since the user may want to know who's accessing their apps. We don't want to break that behaviour
We might want to add some log rollover support in the future.
For now, the workaround is the user ssh into their app and cleans log files older than 'n' days :
cd $OPENSHIFT_LOGS_DIR
find . -type f ( -name access_log-* , -name error_log-* ) -mtime +180
# Add this to the above command to backup as a gzipped tarball: | xargs tar -czvf backup-logs-$(date +%Y%m%d).tar.gz
# Add this to the above command to delete 'em: -exec rm {} \; or | xargs rm)
And if you want to script it, you can do this via the cron cartridge - say a job that runs daily.
For a scalable app, cron may not be an alternative - but its still possible to script it w/ some script that gets started with the app server (post_start_$appservertype) and periodically do the cleanup. need to create a user story for feature work Created a user story US 3111 for this: https://rally1.rallydev.com/#/4670516379d/detail/userstory/9481317081 *** Bug 918783 has been marked as a duplicate of this bug. *** *** Bug 923141 has been marked as a duplicate of this bug. *** |