Juju should provide customizable logrotation (or optionally leverage logrotated)

Bug #1955750 reported by Paul Goins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ben Hoyt

Bug Description

This is based on lp#1078213.

Apparently Juju does have log rotation internally now, after files reach 300M in size. However, on smaller environments this can still end up taking a large amount of disk. I'm working on an instance which only has an 8G disk, and /var/log/juju is taking roughly 1G of that - and individual logfiles within are taking between 51 and 183 MB of that. If I simply rely on Juju's file rotation here, these files can get quite a bit larger (and take quite a bit of this small instance's disk) before log rotation really kicks in. On this box, with 7 Juju units (including subordinates) plus the machine log, logs could easily take over 25% of the whole disk if no mitigation is put in place.

It'd be nice if log rotation could be customized in cases like this. Or perhaps it could be optionally addressed by logrotated on Ubuntu-based Juju units.

Tags: logging
Revision history for this message
Ian Booth (wallyworld) wrote :

It seems reasonable that the max log file size and number of files be configurable. Juju uses the upstream lumberjack library to do the rotation and the file size and count are both hard coded. It is easy to make these controller config options.

Changed in juju:
milestone: none → 2.9.23
importance: Undecided → High
status: New → Triaged
tags: added: logging
Ben Hoyt (benhoyt)
Changed in juju:
assignee: nobody → Ben Hoyt (benhoyt)
Changed in juju:
milestone: 2.9.23 → 2.9.24
Ben Hoyt (benhoyt)
Changed in juju:
milestone: 2.9.24 → 2.9.25
Revision history for this message
Ben Hoyt (benhoyt) wrote :
Changed in juju:
status: Triaged → Fix Committed
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9.25 → 2.9.24
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9.24 → 2.9.25
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.