Re: [squid-users] parent proxy

From: Chris Robertson <crobertson@dont-contact.us>
Date: Mon, 18 Sep 2006 13:36:38 -0800

Nerijus Baliunas wrote:
> Hello,
>
> Because downloads from itu.int are very slow using one proxy server, but ok
> if using another proxy server (I'm still investigating why), I have the following
> setup (proxy1, 10.10.10.5, 2.5.STABLE14):
>
> cache_peer 10.10.10.6 parent 3128 3130
>
Try adding no-query and never direct....

cache_peer 10.10.10.6 parent 3128 3130 no-query
acl ituInt dstdomain .itu.int
never_direct allow ituInt

...as it seems you want this traffic to use the parent proxy regardless
of whether it's a cache hit or not.
> cache_peer_domain 10.10.10.6 .itu.int
>
> I.e. access to *.itu.int should go via another proxy server proxy2 (10.10.10.6, 2.5.STABLE5).
>
> I go to http://www.itu.int/md/R00-CR-CIR-0261/en using proxy1.
>
> Log on proxy1:
> 1158610617.927 4611 127.0.0.1 TCP_MISS/200 17779 GET http://www.itu.int/md/R00-CR-CIR-0261/en - FIRST_PARENT_MISS/10.10.10.6 text/html
>
> Log on proxy2:
> 1158610614.296 0 10.10.10.5 UDP_MISS/000 61 ICP_QUERY http://www.itu.int/md/R00-CR-CIR-0261/en - NONE/- -
> 1158610618.905 4608 10.10.10.5 TCP_MISS/200 17702 GET http://www.itu.int/md/R00-CR-CIR-0261/en - DIRECT/156.106.192.163 text/html
>
> Then I press on any doc or pdf link on that page. The download is very slow,
> and it stops after about 10 minutes, download is incomplete and nothing in squid
> logs on both servers. It seems download does not go via proxy2. Why?
>
Look into the hierarchy_stoplist directive to see why the child proxy
would bypass the parent for the PDF request.
> If I download the same doc or pdf file using proxy2, it is downloaded ok and the log is:
>
> 1158611275.248 418 127.0.0.1 TCP_MISS/200 17697 GET http://www.itu.int/md/R00-CR-CIR-0261/en - DIRECT/156.106.192.163 text/html
> 1158611318.520 1984 127.0.0.1 TCP_MISS/200 243709 GET http://www.itu.int/md/dologin_md.asp? - DIRECT/156.106.192.163 application/pdf
>
> Regards,
> Nerijus
>
Chris
Received on Mon Sep 18 2006 - 15:36:49 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT