Search squid archive

Re: Query Parameters

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

 



On Wed, 24 Feb 2010 16:55:47 +0000, "John G. Moylan" <John.Moylan@xxxxxx>
wrote:
> Hi,
> 
> I would like to add tags to links , eg:
> 
>
http://127.0.0.1/?__utma=78950923.1224724239.1267008791.1267008791.1267008791.1&__utmb=78950923.2.10.1267008791&__utmc=78950923&__utmx=-&__utmz=78950923.1267008791.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=165879736
> 
> I'm using a director LVS cluster of Squid boxes to reverse proxy my
> webservers and I currently cache query strings (using both Squid 2.6 and
> 2.7). I am concerned that if I use the new store url rewrite
> functionality in 2.7 I'll have to use a storeurl_rewrite_program which
> will spawn an extra process per request and kill performance. Is there

Not per-request.  per-Squid, and only the number N you configure.

Each HTTP request only adds a tiny sub-request to find out the mapping,
still a slow down but nowhere near as bad as a fork. It also has a very
high chance of mapping to a cached object in reverse-proxies, which reduces
the back-end fetch and makes up for the extra time.

> any other way to tag links and munge the URLS into a single page request
> for squid. 

The best way to help yourself out is to ensure that the content you want
cached has its own public no-changing URL.
That way your squid can cache them without problems or fancy stuff, AND
all other caches around the Internet can do the same on your behalf (DDoS
protection free of charge!).

Squid-3.2 adds the ability to do proper redirection maps with deny_info
instead of URL rewriters. But thats a year or so away from production use
yet.

Amos

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

  Powered by Linux