Search squid archive

Squids Don't Seem To Peer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've got 3 servers running squid-2.5.STABLE14. They're set up as
accelerators with a redirector, and to peer. I've also turned on cache
digests. Here's the relevant info from squid.conf:

> http_port 80
> cache_peer squid30 sibling 80 3130 proxy-only 
> cache_peer squid31 sibling 80 3130 proxy-only 
> cache_peer squid32 sibling 80 3130 proxy-only 
> redirect_program squidsaver_new 
> acl localnet src x.x.x.0/255.255.255.254.0 
> redirector_access allow !localnet

> acl all src 0.0.0.0/0.0.0.0
> icp_access allow all

> httpd_accell_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on

In access.log I get messages like this

Squid31:
1152521420.841   322 216.145.59.55 TCP_MISS/200 440756 GET
http://f3.xxxxx.com/v1/YE7BRLgkxqx5CqRIllTjGS4WbY68R30zXocYQdkCDwa9Z1mmWA7hJAg5cS6gND4WH2FIgZ8QSb3jyq7KHUAjsQ/rosebowl_02_1280.jpg
- TMIEOUT_DIRECT/66.218.66.240 image/jpeg
***this works properly, the item doesn't exist in the cache so it goes
out and gets it
1152521430.895   237 216.145.59.55 TCP_HIT/200 440763 GET
http://f3.xxxxx.com/v1/YE7BRLgkxqx5CqRIllTjGS4WbY68R30zXocYQdkCDwa9Z1mmWA7hJAg5cS6gND4WH2FIgZ8QSb3jyq7KHUAjsQ/rosebowl_02_1280.jpg
- NONE/- image/jpeg
***this also works properly, the image gets stored in the cache

***I move onto another server
Squid30:
1153521711.139   274 216.145.59.55 TCP_MISS/200 440756 GET
http://f1.xxxxx.com/v1/YE7BRLgkxqx5CqRIllTjGS4WbY68R30zXocYQdkCDwa9Z1mmWA7hJAg5cS6gND4WH2FIgZ8QSb3jyq7KHUAjsQ/rosebowl_02_1280.jpg
- TMIEOUT_DIRECT/66.218.66.240 image/jpeg
***squid31 gets a ICP query:
153521710.866      0 squid30 UDP_HIT/000 145 ICP_QUERY
http://xxxx.com/rosebowl_02_1280.jpg - NONE/- -
*** the short url is the long one, post redirection
*** but for some reason squid30 never requests the image from squid31,
instead it goes to the web server and stores it in it's cache

It should be noted that this doesn't always happen. In our test
environment they almost always go from peers, and I've seen a few
examples use peering in this environment.


Thanks,
Dan Perron

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux