Re: [squid-users] squid and quota check

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 11 Feb 2003 10:26:12 +0100

"Piccoli, Lucio" wrote:
>
> hi all,
>
> i have implemented quota checking by parsing squid's acces.log and an using
> an acl. However it seems that a better solution is possible. The main
> problem being that parsing the access.log every 15minutes or so causing a
> massive spike in CPU utilisation for several seconds. (To parse a 10Mb
> access.log takes 3-5 CPU secs on a sun netra solaris 5.8) I have a read a
> few other comments about having quota checking in squid, so i guess it might
> be useful. My plan is rather raw at present but goes something like this.

You could "tail -f" the access log and incrementally update the users
quota usage.. there is no need to process the same access.log line more
than once.

Regards
Henrik
Received on Tue Feb 11 2003 - 02:27:58 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:18 MST