[MediaWiki-commits] [Gerrit] Let OCG do file cleanup - change (operations/puppet)

2014-08-01 Thread Jgreen (Code Review)
Jgreen has submitted this change and it was merged.

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(-)

Approvals:
  Jgreen: Checked; Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I5285f3ff091d4f889b0d683f5129eef54f6633d5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mwalker 
Gerrit-Reviewer: Cscott 
Gerrit-Reviewer: Jgreen 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Let OCG do file cleanup - change (operations/puppet)

2014-08-01 Thread Mwalker (Code Review)
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 

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