Hi Chris, Thanks for your reply. I checked squid -v output on both servers.
/opt/squid/sbin/squid -v Squid Cache: Version 2.5.STABLE10 configure options: --prefix=/opt/squid --enable-auth=ntlm,basic --enable-external-acl-helpers=wbinfo_group --localstatedir=/var/squid --enable-snmp "--enable-storeio=ufs,aufs" is not there. Can I still change the cache_dir line to use aufs. I don't have proxy-only option on the cache_peer line on Server B. Below is the cache_peer option on server B. cache_peer ServerA parent 3128 3130 weight=15 no-query no-digest cache_peer ServerC parent 3128 3130 weight=10 no-query no-digest Should I change the above lines to cache_peer ServerA parent 3128 3130 no-digest proxy-only cache_peer ServerC parent 3128 3130 no-digest proxy-only Please advise. Regards. On 2/17/06, Chris Robertson <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: Raj [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 16, 2006 12:47 PM > > To: [email protected] > > Subject: [squid-users] parent cache information > > > > > > Hi All, > > > > I have 2 servers A and B both running Squid 2.5.STABLE10. Server A is > > a parent server which is sitting on the DMZ segment. Server B is a > > child proxy server which is in LAN (local network). On both servers > > below is the cache_dir configuration. > > > > cache_dir ufs /var/squid/cache 400 16 256 > > > > Run squid -v and look for "--enable-storeio=ufs,aufs". If you see it, change > the cache_dir line to use aufs. You will likely see a performance increase, > even on a lightly loaded proxy. > > > I was not the one who configured these proxy servers. I took over > > somone else recently. Is it necessary to configure cache_dir on both > > the servers. Can I do all the caching on server B (child server). Are > > there any benefits if I configure both the servers to cache. How does > > this caching work if I have cache_dir enabled on both the servers? If > > I access lets say google.com, does the server A caches the URL or both > > A & B. Below are the access logs on both the servers > > See below. > > > > > Server A (Parent server): > > > > SNIP > > > > > > > Server B (Child): > > > > SNIP > > > > > If you look at the above logs Server A goes direct all the time. Does > > it mean it is not caching anything eventhough cache_dir is enabled? > > This just means that server A doesn't have a parent that it queries, not that > the request is somehow bypassing the proxy. > > > What is the best way to configure in this situation? Activate cache on > > both the servers or just on server B? > > The answer to this question depends entirely on the cache_peer line on server > B. If you see the term proxy-only, then using the cache_dir on both is going > to be fine (this will mean that anything found on the parent server will not > be cached locally). Without the proxy-only directive, the two proxies have a > much greater chance of overlapping cached content. > > > > > Any help would be really appreciated. > > > > Chris >
