Search squid archive

Re: Question about 'default' option for cache_peer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux