Page MenuHomePhabricator

acct (process and login accounting) fill up instances /var/ partition
Closed, ResolvedPublic

Description

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:

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

Maybe we can reduce it to 15 days?


Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:33 AM
bzimport set Reference to bz69604.

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'.

Change 164520 had a related patch set uploaded by Hashar:
labs: reduce acct archiving retention

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

Change 164520 merged by Dzahn:
labs: reduce acct archiving retention

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

Change 177427 had a related patch set uploaded (by Yuvipanda):
base: Make number of days acct logs are kept customizable

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

Patch-For-Review

Change 177427 abandoned by Yuvipanda:
base: Make number of days acct logs are kept customizable

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

/var is still filling up on deployment-bastion on a fairly regular basis because of these logs with the current retention on labs instances set to only 7 days.