Re: [squid-users] smart caching...

From: Arindam Haldar <arindam@dont-contact.us>
Date: Wed, 11 Sep 2002 16:03:02 +0530

hi again,
got the following errors while i tried configure with the said lines..

15:11:09| squid.conf, line 1475: No cache_peer 'squid2'
15:12:48| squid.conf, line 1475: No cache_peer 'allow'

the above errors occured while i changed squid2--with--allow &
vice-versa, as in the conf file below..

cache_peer cache.foo.org sibling 3128 3130 login=.................
cache_peer squid2 parent 3128 0 no-query connect-timeout=2
acl squid2_cache dst_as xx.yy.0.0/16 <<<--even tried dst insted of dst_as
cache_peer_access allow squid2 squid2_cache

*****squid2 is as numeric ip address*****

i also saw that squid2 being **parent** all the querries are passed to
squid2.. but my main objective is to pass only xx.yy.0.0/16 to squid2..
  i commented the line but it didnt help either..

in the conf file its written with an eg as ...
     # Except for access control, AS numbers can be used for
     # routing of requests to specific caches.
AS numbers here means **Autonomous system** numbers ?? .. as used in BGP
?? .. if so we dont have AS numbers..
so what can v do to make it happen.. ?

A.H

Henrik Nordstrom wrote:
> This kind of things is best controlled by using the cache_peer_access or
> neighbor_type_domain directives.
>
> Something like the following should do it I think:
>
> cache_peer your.squid2.address parent 3128 0 no-query connect-timeout=2
> acl squid2_domains dstdomain .com
> acl squid2_destinations dst xx.yy.0.0/16
> cache_peer_access allow squid2 squid2_domains
> cache_peer_access allow squid2 squid2_destinations
> prefer_direct off
> nonhierarchical_direct off
>
>
> but several other configurations are possible depending on what you
> really want when it comes to load balancing, failover and sharing of
> cache content.
>
> Regards
> Henrik
>
>
> Arindam Haldar wrote:
>
>>hi all,
>>we have two internet links(after merger).. both links have a squid cache
>>each(i say **each** becaus of the ip distribution/allocation)..
>>modifying our setup a little v have made our exsisting squid cache as
>>main cache(we will call it squid 1) & other acting as parent for .com
>>sites( we will call it squid 2)..
>>i have seen that a big network( xx.yy.0.0/16) reaches in significantly
>>lesser hops with squid 2.. i want to change my conf for squid 1 so that
>>it passes queries for that network to squid 2.. am so far unable to do
>>that..
>>pls help in getting it done....
>>thanking in advance...
>>A.H
>
Received on Wed Sep 11 2002 - 04:25:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:12 MST