Mwalker has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/151133

Change subject: Let OCG do file cleanup
......................................................................

Let OCG do file cleanup

We have a garbage collection thread which runs every 6 hours to clean
up redis and the file system. By default we tolerate max lifetimes of
- redis job status hash objects, 5 days
- completed job files, 5.5 days (/srv/deployment/ocg/output)
- failed job status objects in redis, 0.5 day
- objects on the temp file system, 0.5 day (/mnt/tmpfs)
- postmortem files, 5 days (/srv/deployment/ocg/postmortem)

Change-Id: I5285f3ff091d4f889b0d683f5129eef54f6633d5
---
M modules/ocg/manifests/init.pp
1 file changed, 0 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/33/151133/1

diff --git a/modules/ocg/manifests/init.pp b/modules/ocg/manifests/init.pp
index 355419e..5263b7b 100644
--- a/modules/ocg/manifests/init.pp
+++ b/modules/ocg/manifests/init.pp
@@ -161,26 +161,10 @@
         group   => 'ocg',
     }
 
-    cron { 'Clean up OCG output directory':
-        ensure  => present,
-        command => "find ${output_dir}* -mtime +5 -exec rm {} \\;",
-        user    => 'ocg',
-        hour    => 0,
-        minute  => 0,
-    }
-
     file { $postmortem_dir:
         ensure  => directory,
         owner   => 'ocg',
         group   => 'ocg',
-    }
-
-    cron { 'Clean up OCG postmortem directory':
-        ensure  => present,
-        command => "find ${postmortem_dir}* -mtime +3 -exec rm {} \\;",
-        user    => 'ocg',
-        hour    => 0,
-        minute  => 0,
     }
 
     # makes some basic logfiles readable for non-roots

-- 
To view, visit https://gerrit.wikimedia.org/r/151133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5285f3ff091d4f889b0d683f5129eef54f6633d5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mwalker <mwal...@khaosdev.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to