Re: [squid-users] Squid + MySQL ?

From: Chris Robertson <crobertson_at_gci.net>
Date: Fri, 31 Jul 2009 15:42:41 -0800

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.

> Just my 2 (euro)cents.
>

Ditto. Except US currency.

> Marcello
>

Chris

* Ostensibly one could determine the size of the denied object to
determine the immediate/minimal bandwidth savings, but that would ignore
the possibility of the denied object referencing CSS, JavaScript,
images, etc. that a browser might further have requested. Further, the
object size would have to be determined out-of-band and (if an accurate
Content-Length header was not provided) might require downloading the
object which would negate the savings. *shrug*
Received on Fri Jul 31 2009 - 23:43:01 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 01 2009 - 12:00:05 MDT