From aa034a2ac706c93d10496152b6bb2e9e621df3e4 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 25 Aug 2016 13:30:32 +0000 Subject: [PATCH] Reduce job log retention to 90 days In recent months, log volume has picked up considerably. Since we can't increase the size of this volume any further, reduce retention from 120 days to 90 days for now. This has already been manually run on static.openstack.org and reduced utilization of the volume from 100% to 92%. Change-Id: I848f4fd1ef8238743981fa3a62f3638ca5f2cff6 --- modules/openstack_project/files/log_archive_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/log_archive_maintenance.sh b/modules/openstack_project/files/log_archive_maintenance.sh index db09356677..88685644c1 100644 --- a/modules/openstack_project/files/log_archive_maintenance.sh +++ b/modules/openstack_project/files/log_archive_maintenance.sh @@ -6,7 +6,7 @@ find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \ \( -type f -mmin +10 -not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \ \( -name \*.txt -or -name \*.html -or -name tmp\* \) \ -exec gzip -f \{\} \; \) \ - -o \( -type f -mtime +120 -execdir rm \{\} \; \) \ + -o \( -type f -mtime +90 -execdir rm \{\} \; \) \ -o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \) find -O3 /srv/static/docs-draft/ -depth -not -name lost+found \( \ \( -type f -mtime +21 -execdir rm \{\} \; \) \