[squid-users] cache_peer configuration

From: senthil kumar <senthilkumaar2021_at_gmail.com>
Date: Fri, 27 May 2011 09:21:52 +0530

Hello Amos,

Thanks for your reply.

As you suggested i will use ICP or HTCP.

Is it necessary to use round-robin in sibling ?

Based on the porxy1 config, If a client in 172.16.1.0/24 range makes a
request and the requested object is not�found in any of sibling
servers,
In the case the request will be forwarded via parent peer or as a
direct request?

proxy1 configuration:
client range: 172.16.1.0/24 and 10.0.0.0/8

cache_peer proxy2 sibling 3128 3130 proxy-only round-robin
cache_peer proxy3 sibling 3128 3130 proxy-only round-robin
cache_peer proxy4 sibling 3128 3130 proxy-only round-robin
cache_peer proxy5 sibling 3128 3130 proxy-only round-robin

cache_peer example.com �parent 3128 7 no-query no-digest default name=filter

acl peer src 172.16.1.0/24
cache_peer_access filter allow peer

Thanks,
Senthil

On 20/05/11 00:27, senthil kumar wrote:
> Hello All,
>
> We have 5 squid servers and each squid server is configured to send
> requests from certain clients to cache_peer( cache_peer is a filter)
> and rest of the request passes as direct requests. We have disk
> caching at all servers and need to share disk caching among the five
> servers. How to configure all squid servers with sibling relationship
> and ensure the clients which are supposed to pass through
> filter(cache_peer) are not bypassed filter or passed as direct
> requests?
>
> Whether following configuration will achieve it? Please share your views.
>

No it will not.
You used "no-query" which disables ICP (Internet Cache Protocol)
sharing of information.

I also recommend you experiment with HTCP. Which is a slightly
improved version of ICP.

> proxy1 configuration:
>
> client range: 172.16.1.0/24 and 10.0.0.0/8
>
> cache_peer example.com �parent 3128 7 no-query no-digest default name=filter
> acl peer src 172.16.1.0/24
> cache_peer_access filter allow peer
>
> cache_peer proxy2 sibling 3128 7 no-query proxy-only round-robin
> cache_peer proxy3 sibling 3128 7 no-query proxy-only round-robin
> cache_peer proxy4 sibling 3128 7 no-query proxy-only round-robin
> cache_peer proxy5 sibling 3128 7 no-query proxy-only round-robin
>
> Thanks
> Senthil

Amos

--
Please be using
�Current Stable Squid 2.7.STABLE9 or 3.1.12
�Beta testers wanted for 3.2.0.7 and 3.1.12.1
Received on Fri May 27 2011 - 03:52:00 MDT

This archive was generated by hypermail 2.2.0 : Fri May 27 2011 - 12:00:03 MDT