Re: [squid-users] How get negative cache along with origin server error?

2008-10-02 Thread Mark Nottingham
Have you considered setting squid up to know about both origins, so it can fail over automatically? On 26/09/2008, at 5:04 AM, Dave Dykstra wrote: I am running squid on over a thousand computers that are filtering data coming out of one of the particle collision detectors on the Large Hadr

Re: [squid-users] Is Squid the right tool for the job?

2008-10-02 Thread Gordon Mohr
A squid expert can say whether a squid on your 'B' machine can take a plain HTTP request from A to B and turn it into an HTTPS request from B to C. (I don't know, maybe.) But I suggest you look into "SSH tunneling", and specifically the ssh "-D" option for setting up a SOCKS proxy. Then, if

Re: [squid-users] User bandwidth balancing

2008-10-02 Thread Amos Jeffries
Sebastian Jaurena wrote: Hi, me again, I need know if is possible to divide the bandwidth acording the number of users, and at the same time, any user can't consume more than x bytes/second. For example: I have 1Mb and the max bandwidth allowed is 400Kb/s per user. 1. One user connect to the

Re: [squid-users] Why single thread?

2008-10-02 Thread Amos Jeffries
Roy M. wrote: Hello, Why squid is running as a single thread program, wouldn't it perform better if allow run as multithreaded as SMP or Quad core CPU are popular now? Thanks. Simply 'allowing' squid to run as multi-threaded is a very big change. We are doing what we can to work towards it. A

[squid-users] Is Squid the right tool for the job?

2008-10-02 Thread gms5002
Hello, Sorry if this is a stupid question, but I am a little out of my element here. Our sysadmin recently left, leaving me in charge of this project. Basically what we need to do is encrypt a message from our client's server (we cannot touch their server though) and get it over the public inte

[squid-users] Why always refresh?

2008-10-02 Thread howard chen
Hello, I have a file common.js file, which is now being cached by squid 3, e.g. Sample response === Last-Modified[Thu, 11 Oct 2007 05:04:34 GMT] Accept-Ranges[bytes] Content-Length[27157] Content-Type[application/x-javascript] Date[Thu, 02 Oct 2008 17:54:30 GM

[squid-users] User bandwidth balancing

2008-10-02 Thread Sebastian Jaurena
Hi, me again, I need know if is possible to divide the bandwidth acording the number of users, and at the same time, any user can't consume more than x bytes/second. For example: I have 1Mb and the max bandwidth allowed is 400Kb/s per user. 1. One user connect to the proxy, so, this user have a

[squid-users] Why single thread?

2008-10-02 Thread Roy M.
Hello, Why squid is running as a single thread program, wouldn't it perform better if allow run as multithreaded as SMP or Quad core CPU are popular now? Thanks.

Re: [squid-users] negative_ttl vs. an Expires header -- which should win?

2008-10-02 Thread Gordon Mohr
Amos Jeffries wrote: negative_ttl wins. That seems a violation of the intent of section 13.4 of rfc2616, specifically the "unless" clause of the following sentence which applies to "any other status code" (despite the limitation of examples to 302 and 307): # A response received with any o

RE: [squid-users] Can we use "no-cache" or "max-age=0" to refresh the cached objects

2008-10-02 Thread Christian Tzolov
Thanks Amos, Detailed explanation and Henrik's response helped us to find the proper invalidation mechanism. Cheers, Chris > -Original Message- > From: Amos Jeffries [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2008 1:01 PM > To: Christian Tzolov > Cc: squid-users@squid-cach

RE: [squid-users] Can we use "no-cache" or "max-age=0" to refresh the cached objects

2008-10-02 Thread Christian Tzolov
Thanks for the useful explanation Henrik! Cheers, Chris Christian Tzolov | Senior Software Developer - Content & Services | TomTom | [EMAIL PROTECTED] | +31 (0)207575451 | Oosterdoksstraat 114, 1011 DK, Amsterdam > -Original Message- > From: Henrik Nordstrom [mailto:[EMAIL PROTECT

Re: [squid-users] Squid not delivering https sites

2008-10-02 Thread Hendrik Pahl
Hi Amos, > ... It may be a fixed bug. Can you provide a link or something so that i can inform myself about that bug? Freundliche Grüße, i.A. Hendrik Pahl Systemingenieur -- LWsystems GmbH & Co. KG ++ http://www.lw-systems.de/impressum Tel: +49 (0)5403 / 5556 ++ Fax: +49 (0)5403 / 7 95 89 97

Re: [squid-users] Squid not delivering https sites

2008-10-02 Thread Amos Jeffries
Hendrik Pahl wrote: Hi all, On debian etch, squid 2.6.5-6etch1 installed, were having this problem: Squid proxy is running on 192.168.0.1 for example. Now, we try surfing the web and accessing a https-enabled website - squid does not deliver it. This happens with any browser - firefox 3.0.3 and

[squid-users] Squid not delivering https sites

2008-10-02 Thread Hendrik Pahl
Hi all, On debian etch, squid 2.6.5-6etch1 installed, were having this problem: Squid proxy is running on 192.168.0.1 for example. Now, we try surfing the web and accessing a https-enabled website - squid does not deliver it. This happens with any browser - firefox 3.0.3 and IE7 have been tested.

Re: [squid-users] Can we use "no-cache" or "max-age=0" to refresh the cached objects

2008-10-02 Thread Amos Jeffries
Christian Tzolov wrote: Hi Amos, Squid would request new data, I believe. Any time Squid receives new files from an authoritative source it updates its cached copy with the new content (except possibly in cases of bug #7). I am scared by the "I believe" part :). Sorry for that. I'm sure c

RE: [squid-users] Can we use "no-cache" or "max-age=0" to refresh the cached objects

2008-10-02 Thread Henrik Nordstrom
On tor, 2008-10-02 at 10:57 +0200, Christian Tzolov wrote: > I am scared by the "I believe" part :). > > 1. Can we relay on Squid to always update its cached content if the > response is newer (e.g. response has new Expires date and no other > validators)? Yes. > 2. Squid does not change/opti

Re: [squid-users] ICP and sibling peers in reverse proxies?

2008-10-02 Thread Amos Jeffries
Christian Tzolov wrote: Hi Amos, Thanks for your immediate response, Yes. you can set the peers as siblings and configure the proxy-only option. I did that but now I face another problem. How can I make both squid nodes use the same hostname for their cached object's Keys? For example th

Re: [squid-users] Squid dying

2008-10-02 Thread Henrik Nordstrom
On tor, 2008-10-02 at 15:57 +1300, Amos Jeffries wrote: > > Hi, > > > > we have latest Squid 3 STABLE9 running... this night we saw it dying: > > > > 2008/09/30 23:33:27| idnsGrokReply: Malformed DNS response > > FATAL: Received Segment Violation...dying. > > 2008/09/30 23:33:31| storeDirWriteClean

Re: [squid-users] Expires: vs. Cache-Control: max-age

2008-10-02 Thread Henrik Nordstrom
On ons, 2008-10-01 at 15:42 +1000, Mark Nottingham wrote: > I.e., the max-age cache-control directive takes precedence over Expires. > I've tested Squid and a number of other caches with Co-Advisor, and if > Expires indicates the response is fresh, but CC: max-age says it's > stale, it will tr

Re: [squid-users] cache size

2008-10-02 Thread Henrik Nordstrom
On tis, 2008-09-30 at 20:15 -0700, Stand H wrote: > Hi, > > Suppose that I have 100GB cache size. Roughly, how much hit rate or > byte rate can I improve if I increase the size to 500GB? Is larger > cache better than smaller cache, say 500GB vs 1TB? Suppose I have > enough RAM. When the cache has

Re: [squid-users] How get negative cache along with origin server error?

2008-10-02 Thread Henrik Nordstrom
By default Squid tries to use a parent 10 times before declaring it dead. Each time Squid retries a request it falls back on the next possible path for forwarding the request. What that is depends on your configuration. In normal forwarding without never_direct there usually never is more than at

Re: [squid-users] negative_ttl vs. an Expires header -- which should win?

2008-10-02 Thread Amos Jeffries
Mark Nottingham wrote: What version of Squid are you using? This changed somewhat in 2.7; IIRC in 2.6 negative_ttl overrides response freshness, whereas in 2.7 response freshness (i.e., expires or cache-control) has precedence. Cheers, On 02/10/2008, at 3:56 PM, Gordon Mohr wrote: Usin

[squid-users] Adding Another HardDisk and the read_only option

2008-10-02 Thread Mr. Issa(*)
Hello mates, Well i have added to separate hard disks (200GB hd and 500GB hd) and added them in the cache_dir but i noticed that squid Uses the hardisk with MORE disk space and leaves the second one epmty... why? another question lets say the 500GB is full off cache , will squid directly start

RE: [squid-users] Can we use "no-cache" or "max-age=0" to refresh the cached objects

2008-10-02 Thread Christian Tzolov
Hi Amos, > Squid would request new data, I believe. > Any time Squid receives new files from an authoritative source it updates > its cached copy with the new content (except possibly in cases of bug #7). I am scared by the "I believe" part :). 1. Can we relay on Squid to always update its cach

RE: [squid-users] ICP and sibling peers in reverse proxies?

2008-10-02 Thread Christian Tzolov
Hi Amos, Thanks for your immediate response, > Yes. you can set the peers as siblings and configure the proxy-only > option. I did that but now I face another problem. How can I make both squid nodes use the same hostname for their cached object's Keys? For example the same response returned

Re: [squid-users] negative_ttl vs. an Expires header -- which should win?

2008-10-02 Thread Mark Nottingham
What version of Squid are you using? This changed somewhat in 2.7; IIRC in 2.6 negative_ttl overrides response freshness, whereas in 2.7 response freshness (i.e., expires or cache-control) has precedence. Cheers, On 02/10/2008, at 3:56 PM, Gordon Mohr wrote: Using 2.6.14-1ubuntu2 in a