[squid-users] Some queries about cache_peer

From: bijayant kumar <bijayant4u_at_yahoo.com>
Date: Wed, 30 Jul 2008 03:01:30 -0700 (PDT)

Hello list,

I tried to set up cache_peer, but i could not understand that it has setup or not. Please give some inputs.

Scenario:-

I have setup three proxy-servers.squid 3.0.7 Stable
proxy1 192.168.99.134
proxy2 192.168.99.135
proxy3 192.168.99.121

Lan Computer 192.168.99.23.

On my Lan Computer, i have configured proxy in my browser as 192.168.99.134 ie proxy1. All request first go to proxy1.

In Proxy1 squid.conf:-
cache_peer 192.168.99.135 parent 3128 3130 proxy-only default
cache_peer 192.168.99.121 parent 3128 3130 proxy-only

cache_peer_domain 192.168.99.135 .com
cache_peer_domain 192.168.99.121 .net

In proxy2 and proxy3 no cache_peer is configured.

I can browse the web. But i didnt understand the working. I have some queries regarding this scenario:
If the page is not in any of the proxy server, then which proxy server will go to internet and fetch for the user. I mean if user access any ".net" domain then the request will come to the proxy1 first, it will query to the proxy3, if its there it will be delivered else the page will be fetched from the internet ,Same is for the ".com" domain right?
Then my question is,
1) which server will query to the internet for the page which is not in the cache ie ".net" dedicated server or the main proxy1 server?
2) The new page will be written to the which cache, proxy1 or proxy2/proxy3

Please help me to understand this feature.

Thanks & Regards,
Bijayant Kumar Send instant messages to your online friends http://uk.messenger.yahoo.com
Received on Wed Jul 30 2008 - 10:01:41 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 31 2008 - 12:00:05 MDT