Re: Easy way to increase cache size without flushing cache?

From: Malcolm B.J. Garbutt <mgarbutt@dont-contact.us>
Date: Sat, 2 Aug 1997 10:44:48 +1000 (EST)

On Sat, 2 Aug 1997, WWW server manager wrote:

> Henny Bekker wrote:
> >
> > Dear Mike,
> >
> > > Now that I've got Squid up and running swimmingly, I'm interested in
> > > increasing the size of the cache to fill up the room left over by the
> > > shut-down of the Apache cache. Is there a way to do this without entirely
> > > erasing the cache? Do I just increase "cache_size" and HUP it? How many
> > > storage dirs should I have for a particular cache size?
> > >
> > You can increase the "cache_size" and then kill -HUP the Squid server.
> > What you can't do without problems in adding another "cache_dir"..
> > Squid assumes that the caches are of the same size..It just alternates
> > between the caches for every object which gets stored.
>
> When I tried that (not sure which version; 1.1.something or 1.NOVM.something;
> whatever was current a month or two ago...), it looked as though HUP was not
> enough. Either that, or the cachemgr display showed the old cache size even
> though Squid was actually using more space as specified in the updated
> configuration - the Max Swap size that was displayed was the pre-edit value.
> When I restarted Squid, the cache.log entries showed it was using the new size.

I had the Same awhile ago, last start was successfull with a kill -TERM PID
wait 30 Seconds and then RunCache &

Don't do it(Runcache) straight away as you might get probs, if you have
time wait a couple of minutes, for everything else to shutdown like the
dnsservers and current requests.

>
> John Line
>
> --
> University of Cambridge WWW manager account (usually John Line)
> Send general WWW-related enquiries to webmaster@ucs.cam.ac.uk
>

_________________________________________________________
Malcolm Garbutt
Network Operations-
OZLAND.NET MILDURA.NET MURRAY.NET

Office Ph. 03 50 212 991 Office Fax 03 50 212 932
Emergency Ph. 018 596 150

            .....Bringing the World to You......
_________________________________________________________
Received on Fri Aug 01 1997 - 16:40:57 MDT

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