[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] log file size
- Subject: Re: [cobalt-users] log file size
- From: "Fathi Said" <fathi@xxxxxx>
- Date: Thu Dec 23 23:13:31 1999
Brian,
> Actually, it appears to be set to 10% of the amount of disk space allotted to a given
> domain...
Brian, thanks for correcting me. The reason is that my sites all have a 500megs limit, and therefore all log max sizes were
50megs....
> And that is actually the size the log is rotated at... That is once it passes that
> point...
Are you sure that the logs are ONLY rotated if they reach a certain size? AFAIK they are rotated (1) if they reach a certain size
and (2) weekly, no matter how large they are.
/etc/cron.daily/logrotate is, of course, executed every 24 hours with /etc/logrotate.conf as configuration file. If you have a look
at exactly this /etc/logrotate.conf then you'll know what I mean (with (2)).
> For example, I have a site that has a disk limit of 50 meg... Right now that sites
> log file is about 6 meg... When logrotate runs tonight, it will see that the log is
> over it's limit and it will rotate it... If the log were only 3 meg, it wouldn't get
> rotated until it passed 5 meg...
Yes, this would be the case if logrotate.conf wouldn't tell logrotate to do it's job weekly no matter what size the files have
reached.....
> I have been thinking of killing the size limit thing and specifying the rotate point
> to be monthly... I don't know if the GUI would over write that or not... Does anyone
> know if it will?
No good, no no, because of two reasons:
(1) Imagine the log file size growing over the user's disk space quota? hmm.....
(2) More work. For every virtual site you create you will have to modify the respective /etc/logrotate.d/siteX file....., and nobody
knows when and why the GUI would want to restore the default sizeX file. But I don't think it restores ALL siteX files everytime you
create a new virtual site.....; I guess it only restores the default siteX file if you modify the respective virtual siteX.
Better solution would be, though I don't know if this will work......
(1) Leave the logfile size limits as they are to ensure that they will never exceed user's quota.....
(2) Now you can either move /etc/cron.daily/logrotate to /etc/cron.monthly/logrotate, so that logrotate itself will only be executed
once a month (not good because then the logfiles can still fill / eat up :-) the user's assigned webspace)....., OR leave logrotate
where it is (at /etc/cron.daily/logrotate) and change its configuration file (/etc/logrotate.conf). There just change the line where
it says "weekly" to "monthly".
Again, don't know if this will work..., but I'll make it so. ;-)
Fathi