Re: [squid-users] Squid + MySQL ?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 01 Aug 2009 21:58:54 +1200

Chris Robertson wrote:
> Marcello Romani wrote:
>> Il Friday 31 July 2009 17:29:51 Maxime Gaudreault ha scritto:
>>
>>> After all logs entries are in the database I need to calculate how much
>>> bandwidth has been saved by squid. What HTTP Code tells me that the
>>> object came from the cache ? Everything with HIT in it ? TCP_HIT,
>>> TCP_MEM_HIT, TCP_NEGATIVE_HIT ?
>>>
>>
>> Don't know about NEGATIVE_HIT, but I would add TCP_DENIED to the list.
>>
>
> While it is served from the cache, there is no way to calculate
> bandwidth savings associated with a TCP_DENIED*. By the same metric,
> TCP_NEGATIVE_HIT is served from the cache and has a size associated with
> it and seems like a valid bandwidth savings metric to me.
>

Also, don't forget to use the logformat tag %st instead of the default
%<st.
That will catch the true bandwidth used for PUT, POST, file uploads and
AJAX stuff.

>> Just my 2 (euro)cents.
>>
>
> Ditto. Except US currency.
>

Ditto. In NZc.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE17
   Current Beta Squid 3.1.0.12
Received on Sat Aug 01 2009 - 09:59:01 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 28 2009 - 12:00:03 MDT