Elukey has uploaded a new change for review.

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

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


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/varnishkafka 
refs/changes/06/324706/1

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: newchange
Gerrit-Change-Id: I31b3139cf6c18f2410ed5e97e75f74a175f4a95a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/varnishkafka
Gerrit-Branch: master
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>

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

Reply via email to