On 29/02/2012 10:57 a.m., Benjamin E. Nichols wrote:
I currently have two networks, one is upstream of the other
192.168.1.x with squid 3.1.16 cache @ 129.168.1.205
and down stream
10.10.1.x network with 10.10.1.105 Squid 3.1.16 Proxy cache
I need to know what I need to ad to the 10.10.1.x proxy config file to
enable caching from the upstream squid box, and I want both squid
machines to serve cache.
This is two different and separate things. One being Caching. The second
being fetching from an upstream peer (aka "parent").
To "serve cache" all you need is a cache in each proxy. If you mean
sharing cache, that is not possible in an up/down hierarchy relationship.
#########################################################################################################
#Begin Squid Configuration 10.10.1.105
#########################################################################################################
http_port 10.10.1.105:3128
hierarchy_stoplist cgi-bin ?
You can drop "hierarchy_stoplist".
cache_mem 500 MB
maximum_object_size_in_memory 150 MB
Er, you can fit 3 of these 150M objects into your 500MB memory cache
space (cache_mem). If we assume your traffic is about average each one
of those will shove more than 10,000 small objects out to disk on
arrival, which could be very slow.
It would be a good idea to drop your in-memory object size limit to
permit more small objects to stay there.
maximum_object_size 150 MB
cache_dir ufs /mnt/secondary/var/spool/squid3 14000 32 256
There you go. You have enabled caching.
To fetch from an upstream proxy configure a link to it with cache_peer.
The relationship type you want is "parent".
http://www.squid-cache.org/Doc/config/cache_peer/
Amos