Feature #640
closedsupport log rotation
0%
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.
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
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