Last modified: 2014-05-19 11:40:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65935, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63935 - Zuul log should be compressed after rotation
Zuul log should be compressed after rotation
Status: ASSIGNED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks: gallium-backup
  Show dependency treegraph
 
Reported: 2014-04-15 12:56 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-05-19 11:40 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-04-15 12:56:50 UTC
The Zuul logs on gallium in /var/log/zuul are 4GB large. They are rotated by the python logging module but we should find out whether we can have them compressed as well to save up space when backing up.
Comment 1 Antoine "hashar" Musso (WMF) 2014-04-15 12:59:49 UTC
python logging does not compress them. They are rotated at midnight UTC, I guess we can  trigger a gzip cron of /var/log/zuul/*.log.????-??-??
Comment 2 Gerrit Notification Bot 2014-04-18 11:35:04 UTC
Change 127230 had a related patch set uploaded by Hashar:
zuul: compress log daily

https://gerrit.wikimedia.org/r/127230
Comment 3 Antoine "hashar" Musso (WMF) 2014-05-06 15:06:33 UTC
Being tested on integration-dev.eqiad.wmflabs instance which has Zuul.
Comment 4 Antoine "hashar" Musso (WMF) 2014-05-19 11:18:55 UTC
Compression looks fine to me:

root@integration-dev:/var/log/zuul# ll
total 224
-rw-rw-rw- 1 jenkins jenkins   9248 May 19 11:15 debug.log
-rw-rw-rw- 1 jenkins jenkins 113265 May  5 23:55 debug.log.2014-05-05.gz
-rw-rw-rw- 1 jenkins jenkins   1524 May  6 23:55 debug.log.2014-05-06.gz
-rw-rw-rw- 1 jenkins jenkins   1107 May  7 23:55 debug.log.2014-05-07.gz
-rw-rw-rw- 1 jenkins jenkins   1120 May  8 23:55 debug.log.2014-05-08.gz
-rw-rw-rw- 1 jenkins jenkins   1119 May  9 23:55 debug.log.2014-05-09.gz
-rw-rw-rw- 1 jenkins jenkins   1126 May 10 23:55 debug.log.2014-05-10.gz
-rw-rw-rw- 1 jenkins jenkins   1120 May 11 23:55 debug.log.2014-05-11.gz
-rw-rw-rw- 1 jenkins jenkins   1096 May 12 23:55 debug.log.2014-05-12.gz
-rw-rw-rw- 1 jenkins jenkins   1114 May 13 23:55 debug.log.2014-05-13.gz
-rw-rw-rw- 1 jenkins jenkins   1124 May 14 23:55 debug.log.2014-05-14.gz
-rw-rw-rw- 1 jenkins jenkins   1102 May 15 23:55 debug.log.2014-05-15.gz
-rw-rw-rw- 1 jenkins jenkins   1113 May 16 23:55 debug.log.2014-05-16.gz
-rw-rw-rw- 1 jenkins jenkins   1097 May 17 23:55 debug.log.2014-05-17.gz
-rw-rw-rw- 1 jenkins jenkins   1112 May 18 23:55 debug.log.2014-05-18.gz
-rw-rw-rw- 1 jenkins jenkins      0 May  5 11:58 gearman-server.log
-rw-rw-rw- 1 jenkins jenkins  28291 May  5 20:27 merger-debug.log
-rw-rw-rw- 1 jenkins jenkins      0 May  5 11:58 merger.log
-rw-rw-rw- 1 jenkins jenkins    143 May  6 20:40 zuul.log
-rw-rw-rw- 1 jenkins jenkins  10940 May  5 20:28 zuul.log.2014-05-05.gz
root@integration-dev:/var/log/zuul#
Comment 5 Gerrit Notification Bot 2014-05-19 11:39:16 UTC
Change 127230 abandoned by Hashar:
zuul: compress log daily

Reason:
Will get a patch submitted upstream to have file compressed directly by Zuul

https://gerrit.wikimedia.org/r/127230
Comment 6 Antoine "hashar" Musso (WMF) 2014-05-19 11:40:15 UTC
On review, both Ariel and Filippo asked to get the compression to be directly handled by Zuul. Will figure out a patch and send it upstream then upgrade our Zuul install.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links