Re: logfile (Re: Frequency of reboot?)

From: Apiset Tananchai <aet@dont-contact.us>
Date: Wed, 2 Jul 1997 09:09:49 +0700 (ICT)

On Tue, 1 Jul 1997, Duane Wessels wrote:

> JLarmour@origin-at.co.uk writes:
>
> >At 18:11 01/07/97 +0200, Stephen R. van den Berg wrote:
> >>Jonathan Larmour <JLarmour@origin-at.co.uk> wrote:
> >>>At 17:49 01/07/97 +0200, Stephen R. van den Berg wrote:
> >>>>Correct me if I'm wrong, but, if you don't restart squid every now
> >>>>and then, your cache logfile (the one with the state information) will
> >>>>eventually grow out of bounds, will it not?
> >>
> >>>Use "kill -USR1 `cat /usr/local/squid/logs/squid.pid`" (or wherever squid
> >>>puts its PID, defined in squid.conf). This rotates the log files without
> >>>restarting squid.
> >>
> >>The regular logfiles, yes. Not the cache-log with the state information
> >>(the logfile in your cache directory), though.
> >
> >In that case, the answer is that it won't grow out of bounds. Its strictly
> >one line per cache entry, so its size will change (and grow dramatically
> >when you first start squid until the disk usage reaches cache_swap), but it
> >will always hover around a fixed size.
>
> No, thats not quite right. The "log" file is always appended to, so it will
> grow and grow. However, the USR1 signal also causes the "log" file to be
> rewritten with only current cache objects, so that keeps its size roughly
> constant over time.

After sending the USR1 signal to squid, will squid purge all current
connection? I've seen squid writing to 'log' file and during that time it
seems not responding to any request. (but it takes only ~30 secs though)

--
aet
Received on Tue Jul 01 1997 - 19:00:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:39 MST