Re: [squid-users] Question about 'default' option for cache_peer

From: Henrik Nordstrom <[email protected]>
Date: Sat, 11 Feb 2006 16:12:40 +0100 (CET)

On Thu, 2 Feb 2006, Joost de Heer wrote:

> never_direct allow all
>
> cache_peer IP1 parent 8080 0 no-query default
> cache_peer IP2 parent 8080 0 no-query
> cache_peer IP3 parent 8080 0 no-query default
> cache_peer IP4 parent 8080 0 no-query
>
> acl http proto http
> acl https method CONNECT
> acl all src 0.0.0.0/0.0.0.0
>
> cache_peer_access allow IP1 http
> cache_peer_access deny IP1 all
> cache_peer_access allow IP2 http
> cache_peer_access deny IP2 all
> cache_peer_access allow IP3 https
> cache_peer_access deny IP3 all
> cache_peer_access allow IP4 https
> cache_peer_access deny all
>
> I.e. IP1 is default server for http traffic, and IP2 should only be used
> when IP1 isn't available, and IP3 is default for https, and IP4 should
> only be used if IP3 isn't available.

Looks fine to me.

Peering priorities is approximately

   - Digest HIT
   - ICP HIT
   - First ICP MISS (if no HIT)
   - first default
   - other

cache_peer_access limits which peers are considered for the request. If
cache_peer_access does not allow the peer to be used for the request it's
the same as if the peer had not been specified in squid.conf while
processing that request.

Regards
Henrik
Received on Sat Feb 11 2006 - 08:12:44 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST