Last modified: 2014-10-16 00:57:42 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 T71604, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69604 - acct (process and login accounting) fill up instances /var/ partition
acct (process and login accounting) fill up instances /var/ partition
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: ops
Depends on:
Blocks: 69601
  Show dependency treegraph
 
Reported: 2014-08-15 12:36 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-10-16 00:57 UTC (History)
8 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2014-08-15 12:36:37 UTC
I noticed 'acct' generates log files under /var/log/account/ which is on a 2GB partition.  It is log rotated via a daily cron  /etc/cron.daily/acct , keeping the last day uncompressed.

On deployment-bastion.eqiad.wmflabs that is 542MB currently, or a quarter of /var/ available disk space.

/etc/default/acct has an option to change the number of day to be kept:

 # Amount of days that the logs are kept.
 ACCT_LOGGING="30"


Maybe we can reduce it to 15 days?
Comment 1 Antoine "hashar" Musso (WMF) 2014-10-03 08:12:14 UTC
The package is acct which is part of of our standard packages installed via puppet. It provides data for commands such as 'ac' or 'lastcomm'.
Comment 2 Gerrit Notification Bot 2014-10-03 08:17:04 UTC
Change 164520 had a related patch set uploaded by Hashar:
labs: reduce acct archiving retention

https://gerrit.wikimedia.org/r/164520
Comment 3 Antoine "hashar" Musso (WMF) 2014-10-03 08:23:49 UTC
+bd808  +jeremyb
Comment 4 Gerrit Notification Bot 2014-10-16 00:56:10 UTC
Change 164520 merged by Dzahn:
labs: reduce acct archiving retention

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

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


Navigation
Links