[squid-users] Siblings querying over HTCP with the originating squid IP in URL

From: Dan Ford <dan.ford_at_wmode.com>
Date: Fri, 15 Jul 2011 11:24:51 -0600

Hello,

  I am trying to setup a sibling cache using htcp between the sibling
cache_peers so that squid will differentiate cache hits from different
user agents. When I hit the squid via localhost it queries it's sibling
cache and is able to serve back the cache hit from the sibling however
when I hit it using a non localhost address it appears to use it's IP in
the request to it's sibling. . .

here's my setup:
sibling caches - transcode-cache-04 (10.0.21.15) and transcode-cache-05
(10.0.21.25)
parent cache - transcode-cache-prod

If I do the following hit:
curl -D - -s -o /dev/null -A "audio/VAN_MP3 FBR 64kbps 125kB.xml"
"http://127.0.0.1:8080/TranscodingInterface/preview/RAAz1rqL"
on transcode-cache-05 with that piece of content in the cache on
transcode-cache-04 it works as it queries the cache for the request:
http://127.0.0.1:8080/TranscodingInterface/preview/RAAz1rqL which is the
same on both 04 and 05.

If I do the following hit:
curl -D - -s -o /dev/null -A "audio/VAN_MP3 FBR 64kbps 125kB.xml"
"http://10.0.21.25:8080/TranscodingInterface/preview/RAAz1rqL"
it makes the request from it's sibling cache (10.0.21.15) as:
http://10.0.21.25:8080/TranscodingInterface/preview/RAAz1rqL which will
never be in the cache for 10.0.21.15 even though the actual content is
in the cache.

My question is how do I get squid using HTCP to query the sibling cache
with the sibling's IP as opposed to the originating cache's IP? Is this
possible? If not how do others use HTCP?

Thanks for any help,
-Dan
Received on Fri Jul 15 2011 - 17:24:59 MDT

This archive was generated by hypermail 2.2.0 : Sat Jul 16 2011 - 12:00:02 MDT