Re: [squid-users] logrotate only instead (all) squid rotate

From: Alfredo Rezinovsky <alfredo_at_fing.uncu.edu.ar>
Date: Sun, 16 Mar 2014 01:00:00 -0300

El 15/03/14 22:21, Amos Jeffries escribió:
> On 15/03/2014 12:26 a.m., Alfredo Rezinovsky wrote:
>> Using: "squid -k rotate" squid rotates logs but also closes and reopen
>> caches_dirs and url_rewrite_programs
>>
>> There's a way to signal only the (logfile-daemon) processes to rotate
>> the logs and only the logs ?
> Not with any current Squid. The helpers error reporting (stderr)
> channels are plugged directly into cache.log. So they need to be
> detached and re-attached by restarting when that log is moved. The cache
> journal(s) need cleaning up occasionally and are done as well on rotation.
>
> If you are using a daemon there should be no need to rotate much. The
> daemon is fully responsible for the access.logs and can rotate them even
> without an explicit command from Squid.
> For example; the log_file_daemon bundled with the latest Squid will
> rotate access.log on 32-bit systems whenever the current file exceeds
> 32-bit file sizes and starts getting errors.
>
> On the other hand the daemon helper is a separate helper partially so
> you can write your own and have it do whatever you like. If you do
> extend the bundled file daemon please consider submitting the patch for
> communal benefit.
>
>
> Also, why exactly are you asking for this? perhapse it does not exist
> yet because what you are needing is better or easier done some other way.
Sometimes when rotating a heavy loaded (200 requests per seconds) squid
with workers the cache reloads and one of the workers stops working
Received on Sun Mar 16 2014 - 04:00:12 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 16 2014 - 12:00:05 MDT