Cron cleanup for cruncher-aws:/var/www/builds/

RESOLVED FIXED

Status

Release Engineering
Buildduty
RESOLVED FIXED
2 years ago
a year ago

People

(Reporter: nthomas, Assigned: aobreja)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
<nagios-releng> Sun 16:49:57 PDT [4001] cruncher-aws.srv.releng.usw2.mozilla.com:disk - / is WARNING: DISK WARNING - free space: / 3662 MB (10% inode=51%)

About 5G in /var/www/html/builds/allthethings/, and 4G in /var/www/html/builds/reportor/.

As a stopgap I've gzipped 30 day old .json files in the allthethings dir.
(Reporter)

Comment 1

2 years ago
Might just be a path error on the existing cron:
  find /var/www/html/builds/ -type f -name "allthethings._*" -mtime +90 -delete

Updated

2 years ago
Component: Tools → Buildduty
QA Contact: hwine → bugspam.Callek
Assignee: nobody → aobreja
Created attachment 8777271 [details] [diff] [review]
bug1290778_puppet.patch

This patch modifies the cronjob in Puppet,it happens that there are no files named "allthethings._*" so nothing was found to be deleted.
Attachment #8777271 - Flags: review?(nthomas)
(Reporter)

Comment 3

2 years ago
Comment on attachment 8777271 [details] [diff] [review]
bug1290778_puppet.patch

Slightly different intention from the original cron, but I can't think of a reason to keep the log files forever. r+
Attachment #8777271 - Flags: review?(nthomas) → review+
Attachment #8777271 - Flags: checked-in+
The change is in production: http://hg.mozilla.org/build/puppet/rev/5225c94cc16e
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.