Re: Squid config

From: Don Joy <joydon@dont-contact.us>
Date: Fri, 25 Apr 1997 08:45:09 -0400

Ok, i am using version "Squid Cache: Version 1.1.beta16". Lets see if i
understand this.
If i use the default line in the shipped version of:
        refresh_pattern . 0 20% 4320
Then a cached entry that was created 10 hours ago and accessed 5 hours
ago would evaluate like this:

    if (CLIENT_MAX_AGE)
        if (AGE > CLIENT_MAX_AGE)
            return STALE
    if (AGE <= MIN_AGE)
        return FRESH
    if (EXPIRES) {
        if (EXPIRES <= NOW)
            return STALE
        else
            return FRESH
    }
    if (AGE > MAX_AGE)
        return STALE
    if (LM_FACTOR < PERCENT)
        return FRESH
    return STALE

    if (CLIENT_MAX_AGE)
        if (600 > 4320)
            return STALE
    if (600 <= 0)
        return FRESH
    if (EXPIRES) {
        if (EXPIRES <= NOW)
            return STALE
        else
            return FRESH
    }
    if (10 > 4320)
        return STALE
    if (2 < 20)
        return FRESH
    return STALE

Am i on the right track? What kind of values are others using? I don't
want to have too long a period for refresh as many often hit pages are
updated daily.

Duane Wessels wrote:
>
> joydon@soonet.ca writes:
>
> >I am fairly new to squid. I am running a test install on a bsdi 3.0
> >system. The one thing i'm most curious about here is how "ttl" works.
> >Btw, i'm currently set up as a caching only proxy. How can i adjust the
> >ttl on cached urls? If a page changes before the ttl expires, will the
> >page be updated? I noticed the default values are fairly large, for
> >example, currently i have the following:
> >
> > www.soonet.ca C 0 21102 1 208.128.155.2
> > www.infoseek.com C 122 21391 6 204.162.96.20
> >204.162.96.68 204.162.96.76 204.162.96.33 204.162.96.34
> >204.162.96.21
> > wuarchive.wustl.edu C 131 21401 1 128.252.135.4
> > www.cs.ruu.nl C 139 21461 1 131.211.80.17
> > ftp.sunet.se C 149 21451 2 130.238.253.4
> >130.238.253.5
> > newton.math.psu.edu C 158 21442 2 146.186.130.5
> >146.186.131.193
> > risc220.piaggio.cba.unige.it C 171 21429 1 130.251.107.121
> > www.math.uio.no C 178 21422 1 129.240.223.53
> > www.inf.utfsm.cl C 187 21413 3 200.1.19.129
> >146.83.198.3 200.1.19.1
> > www.jmas.co.jp C 194 21406 1 133.226.128.136
> >
> >Are these normal values. What kind of ttl sizes are recommended? TIA.
>
> What you have there is the IP cache. These are not the same TTLs
> for the cached Web pages.
>
> I don't know which version you're running. If its 1.0.x, then you
> should probably upgrade to 1.1.x. For a description of how Squid 1.1.x
> deals with fresh/stale objects, see the v1.1 Release Notes section
> "Refresh Rules and If-Modified-Since"
>
> Duane W.

-- 
Don Joy
System Administrator
SooNet Corp
Received on Fri Apr 25 1997 - 06:03:04 MDT

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