Project

General

Profile

Actions

Feature #640

closed

support log rotation

Added by Colin McCabe over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Here I'm talking about the log messages generated by dout() and friends.

We should allow users to set up log rotation, so that logs can grow to (for example) no more than 500 MB. Then, old logs can be compressed with gzip or something and stored in either the same directory, or a different one.

Actions #1

Updated by Sage Weil over 13 years ago

  • Status changed from New to Closed

see logrotate.conf. it doesn't cap logs by size, but follows the standard scheme used by just about everything else in /var/log

Actions #2

Updated by Colin McCabe over 13 years ago

I guess when I filed this I was thinking of a setup where there was a small tmpfs partition where the logs went to, which were then rotated periodically out to permanent storage. logrotate(8) could get the job done, but some messages might be missed if the small partition overflowed.

Of course, this seems kind of redundant, since the page cache should accomplish something very similar on a regular filesystem. But the page cache is flushed more often than the tmpfs partition need be flushed, so there might be some small difference.

Anyway, probably not worth worrying about for now.

Colin

Actions

Also available in: Atom PDF