Re: [squid-users] Need help with Parent/Client proxy configuration

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 29 Feb 2012 17:21:42 +1300

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
Received on Wed Feb 29 2012 - 04:21:48 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 29 2012 - 12:00:06 MST