On Tue, Mar 21, 2006 at 08:22:59AM +0100, Bernhard Reiter wrote:
> Am Montag, 20. März 2006 19:19 schrieb Ralf S. Engelschall:
> > On Mon, Mar 20, 2006, Bernhard Reiter wrote:
> > > [...]
> > > Ralf: Can you confirm that fsl 1.6.1 does not have large file support and
> > > will barf on >2Gibibyte logfiles?
> >
> > OSSP fsl uses OSSP l2 and yes, OSSP l2 still doesn't have "large file"
> > support.
> >
> > OTOH 2GB for a single logfile is really a lot, especially if log
> > rotations are in place. I actually would expect that the log rotation
> > parameters are reconfigured via rc.conf to log earlier (so the logfiles
> > doesn't grow to such dramatic sizes).
> 
> The log file grew to this size because of other bad conditions that produced
> very long logfile entries. The number of processes had been limited and
> a script made many connections to timsieved. Cyrus logged a lot to say that it
> cannot create new processes. So any faster restart time would not have helped 
> in this particular case. 
> 
> After this, Cyrus refused to start because of the huge logfile size.
> 
> But thinking about this: 
> shtool rotate does not seem to have a parameter to limit the upper size
> of a logfile. Adding a check there or within fsl probably will be more work 
> then adding large file support to l2 and fsl.

Hi,

Why don't you just use multilog from daemontools?  I use openpkg for
apache + openldap, and use either log to stdout/stderr or simply push
the log through a fifo and into multilog.  That way, it auto-rotates
logs and gives them unique filenames (timestamp).  Those unique file
names means that a good backup system will keep them for a very long
time.

http://cr.yp.to/daemontools/multilog.html

-- 
adam
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to