Elukey has submitted this change and it was merged.

Change subject: Set daily logrotation for stats JSON files
......................................................................


Set daily logrotation for stats JSON files

Varnishkafka might produce big JSON stat files during a whole week,
especially when the traffic is high, and the compression happens
only after two rotations (first one to .log.1, then log.1.gz).
This means that logrotate is able to compress a stat json file
after two days rather than two weeks.

Change-Id: I31b3139cf6c18f2410ed5e97e75f74a175f4a95a
---
M templates/varnishkafka-stats.logrotate.erb
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Elukey: Looks good to me, approved
  Ema: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/templates/varnishkafka-stats.logrotate.erb 
b/templates/varnishkafka-stats.logrotate.erb
index f99b228..596f47d 100644
--- a/templates/varnishkafka-stats.logrotate.erb
+++ b/templates/varnishkafka-stats.logrotate.erb
@@ -1,5 +1,5 @@
 <%= @log_statistics_file %> {
-  weekly
+  daily
   rotate 4
   create 0644 varnishlog root
   missingok

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I31b3139cf6c18f2410ed5e97e75f74a175f4a95a
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet/varnishkafka
Gerrit-Branch: master
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: Ottomata <o...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to