RE: [squid-users] parent cache information

From: Chris Robertson <crobertson@dont-contact.us>
Date: Thu, 16 Feb 2006 13:13:11 -0900

> -----Original Message-----
> From: Raj [mailto:sunfire2005@gmail.com]
> Sent: Thursday, February 16, 2006 12:47 PM
> To: squid-users@squid-cache.org
> 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
Received on Thu Feb 16 2006 - 15:13:18 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST