[squid-users] ICP queries for 'dynamic' urls?
Hello. I'm caching dynamic content (urls with ? and in them) and everything's working fine with one exception. I'm seeing ICP queries for only static content and not dynamic content even though squid is actually caching dynamic content. Q: Is there a setting somewhere to ask squid to also do ICP queries for dynamic content like there was with the no-cache directive to originally not cache dynamic content (aka cgi-bin and ? content)? I'm using squid version 2.5 (I know, I should upgrade to 3.x, but I'm trying to stick with the same versions across the board and I don't have time to run my config through QA with 3.0 at this time. Please don't tell me to upgrade.) My cache_peer lines look like: cache_peer 10.23.14.4 sibling 80 3130 proxy-only This is for a reverse proxy setup. Dataflow is: Customer - Internet - Akamai - LB - squid - LB - apache - LB - storage The apache layer does an image resize (which I want to cache) and the url is http://xxx/resize.php?w=xxh=xx;... The storage layer is just another group of apache servers that serve-up the raw files. LB is a load-balancer. - Steve -- Steve Webb - Lead System Administrator for Pronto.com Email: [EMAIL PROTECTED] (Please send any work requests to: [EMAIL PROTECTED]) Cell: 303-564-4269, Office: 303-497-9367, YIM: scumola
Re: [squid-users] ICP queries for 'dynamic' urls?
That did it. Thanks! - Steve On Wed, 19 Nov 2008, Chris Robertson wrote: Date: Wed, 19 Nov 2008 11:42:07 -0900 From: Chris Robertson [EMAIL PROTECTED] To: squid-users@squid-cache.org Subject: Re: [squid-users] ICP queries for 'dynamic' urls? Steve Webb wrote: Hello. I'm caching dynamic content (urls with ? and in them) and everything's working fine with one exception. I'm seeing ICP queries for only static content and not dynamic content even though squid is actually caching dynamic content. Q: Is there a setting somewhere to ask squid to also do ICP queries for dynamic content like there was with the no-cache directive to originally not cache dynamic content (aka cgi-bin and ? content)? http://www.squid-cache.org/Doc/config/hierarchy_stoplist/ I'm using squid version 2.5 (I know, I should upgrade to 3.x, but I'm trying to stick with the same versions across the board and I don't have time to run my config through QA with 3.0 at this time. Please don't tell me to upgrade.) My cache_peer lines look like: cache_peer 10.23.14.4 sibling 80 3130 proxy-only This is for a reverse proxy setup. Dataflow is: Customer - Internet - Akamai - LB - squid - LB - apache - LB - storage The apache layer does an image resize (which I want to cache) and the url is http://xxx/resize.php?w=xxh=xx;... The storage layer is just another group of apache servers that serve-up the raw files. LB is a load-balancer. - Steve Chris -- Steve Webb - Lead System Administrator for Pronto.com Email: [EMAIL PROTECTED] (Please send any work requests to: [EMAIL PROTECTED]) Cell: 303-564-4269, Office: 303-497-9367, YIM: scumola
Re: [squid-users] Peer with http_accel?
Henrik - Thanks! That worked great! So, a semi-related question: If I have machines set up like this now: Inet - cache01 - www01 ^ | v Inet - cache02 - www02 Q: if one of my www boxes dies will the associated squid proxy do all queries through it's peer proxy or will it just return valid data for anything in either cache, but fail on all fetches from the dead machine? Q: if the above answer is it won't query through the peer proxy, is there a way to enable that to happen on a www machine failure? - Steve On Mon, 25 Sep 2006, Henrik Nordstrom wrote: Date: Mon, 25 Sep 2006 10:02:52 +0200 (CEST) From: Henrik Nordstrom [EMAIL PROTECTED] To: Steve Webb [EMAIL PROTECTED] Cc: squid-users@squid-cache.org Subject: Re: [squid-users] Peer with http_accel? I added: cache_peer squid02 sibling 80 3130 [proxy-only] Should be no brakets around proxy-only. The brakets in the documentation only indicates that the options are optional.. Regards Henrik -- Steve Webb - Sr. Linux System Administrator Email: [EMAIL PROTECTED] Cell: 303-564-4269, Office: 303-497-9368 YIM: scumola
Re: [squid-users] Load Balancing Squids
I've got the same kind of thing going and I have it working with sibling-mode (not parent). Might want to check your firewall stuff and make sure that each squid is listening on 3130 for peer requests (forget what the option is). My problem is what happens when the real server behind the proxies dies? How does squid handle a failure like that? - Steve On Thu, 28 Sep 2006, Jose Octavio de Castro Neves Jr wrote: Date: Thu, 28 Sep 2006 19:00:52 -0300 From: Jose Octavio de Castro Neves Jr [EMAIL PROTECTED] To: squid-users@squid-cache.org Subject: [squid-users] Load Balancing Squids Hey Guys, I have a situation here. I have a load balancer sending the requests to two differents squids. I tryied to use cache_peer with proxy only option, but I get TCP Denied. What should I do on both confs? Add both as parents with proxy only option or what? Thanxs in advance, JOC -- Steve Webb - Sr. Linux System Administrator Email: [EMAIL PROTECTED] Cell: 303-564-4269, Office: 303-497-9368 YIM: scumola
[squid-users] Peer with http_accel?
Hello. I've got two squid caches in http_accel mode in front of two apache image servers like this: Inet - squid01:80 - apache01:80 Inet - squid02:80 - apache02:80 Is there a way to enable these two squid machines to peer against themselves to offer some sort of failover or redundancy and overall better caching? Or perhaps there's a better way to do this? I added: cache_peer squid02 sibling 80 3130 [proxy-only] icp_port 3130 cache_peer_access squid02 allow ... on the squid01 machine, but it didn't take it and complained about the cache_peer line. I don't want to add a parent squid to the apache machines because the whole idea was to take disk I/O load off of the apache boxes so we could push tons of data to them 24/7 and impact performance as little as possible to the end-user. - Steve -- Steve Webb - Sr. Linux System Administrator Email: [EMAIL PROTECTED] Cell: 303-564-4269, Office: 303-497-9368 YIM: scumola