Filippo Giunchedi has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/334342 )
Change subject: graphite: keep labs instance data for 30d
......................................................................
graphite: keep labs instance data for 30d
Disk space used by 'instances' tree grew to 300+GB, keep 30d instead.
Bug: T143405
Change-Id: I97b0b85638f3a13a7f39f97d0f3dddea651c9c92
---
M modules/role/manifests/graphite/production.pp
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Andrew Bogott: Looks good to me, but someone else must approve
Rush: Looks good to me, but someone else must approve
Filippo Giunchedi: Verified; Looks good to me, approved
diff --git a/modules/role/manifests/graphite/production.pp
b/modules/role/manifests/graphite/production.pp
index efb3e4e..cdae4e8 100644
--- a/modules/role/manifests/graphite/production.pp
+++ b/modules/role/manifests/graphite/production.pp
@@ -29,7 +29,7 @@
# Cleanup stale labs instances data - T143405
cron { 'graphite-labs-instances':
- command => "[ -d ${storage_dir}/whisper/instances ] && find
${storage_dir}/whisper/instances -type f -mtime +90 -delete && find
${storage_dir}/whisper/instances -type d -empty -delete",
+ command => "[ -d ${storage_dir}/whisper/instances ] && find
${storage_dir}/whisper/instances -type f -mtime +30 -delete && find
${storage_dir}/whisper/instances -type d -empty -delete",
user => '_graphite',
hour => '8',
minute => fqdn_rand(60),
--
To view, visit https://gerrit.wikimedia.org/r/334342
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I97b0b85638f3a13a7f39f97d0f3dddea651c9c92
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Chasemp <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Madhuvishy <[email protected]>
Gerrit-Reviewer: Rush <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits