RE: Preserve cache - remember to increase refresh patterns

From: Richard Dale <richard.dale@dont-contact.us>
Date: Thu, 19 Nov 1998 12:19:19 +0800

Hi Charles (cool surname!) & squid-users

There's a slight change to your procedure that would make things run a bit
smoother...

...

> Basically you do something like this:
>
> 1. install Squid-2, configure with 16gigs of cache space, even if this
> might already by used by Squid-1. Configure to use a different port to
> Squid-1.
>
> 2. Configure Squid-2 with parent Squid-1, and enable PURGE requests on
> Squid-1 (in squid.conf).
>
> 3. Create a list of all the URLs in Squid-1's cache (from the logs).

3A - Set the refresh pattern(s) in Squid v1 squid.conf file REALLY HIGH so
that all objects are apparently fresh. Otherwise Squid-1 will do all sorts
of IMS requests. The alternative to this is to create a smart list of URLs
that are fresh based upon the entries in squid-1's store.log and squid.conf.

> 4. Recurse through this lists of URLs. For each URL:
> a. send a GET request to Squid-2 for that URL.
> Squid-2 will then
> grab
> the object from Squid-1 and store it in its cache.
> b. send a PURGE request to Squid-1 for that URL.
>
> Eventually Squid-2 will have all the objects, and Squid-1
> will be empty.
>
> FAQ maintainer note: This sounds like a good candidate for updating in
> the FAQ.

Agreed.
rm -rf cache & made me cringe :)

_________________________________________________
Richard Dale - AOT Consulting
        Suite 4, Business Centre, Technology Park
        2 Brodie Hall Drive
        Bentley Perth WA 6102 Australia
        ph +61 8 9451 0853 fax +61 8 9451 0889
        mailto:richard.dale@aotconsulting.com.au
_____________________________________________________________
 AOT Consulting has a policy to use digital signatures
and certificates for confidential information. Please contact
us if you wish to exchange information using this
security mechanism.
_____________________________________________________________
Received on Wed Nov 18 1998 - 21:07:19 MST

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