[squid-users] refresh_pattern rule

2008-11-12 Thread nitesh naik
Hi All, Most of the requests served by squid has expire time of 1 hour because of this we are not seeing expected HIT ratio. What would be refresh_pattern rule we should apply to get higher HIT ratio ? Cache_mem is 2 GB and cache_dir is 6 GB. Currently we are using following refresh pattern

Re: [squid-users] Squid memory usage

2008-11-10 Thread nitesh naik
[EMAIL PROTECTED] wrote: Have you read the faq section on memory usage? On fre, 2008-11-07 at 20:02 +0530, nitesh naik wrote: Henrik / Amos, Do you all think I should reduce cache_mem to lesser value ? Squid stops responding as memory usage of squid grows upto 12GB. I have allocate 8 GB

Re: [squid-users] Squid memory usage

2008-11-07 Thread nitesh naik
Henrik / Amos, Do you all think I should reduce cache_mem to lesser value ? Squid stops responding as memory usage of squid grows upto 12GB. I have allocate 8 GB cache_mem. We are using 64 bit machine running on Suse 10.1. Regards Nitesh On Thu, Nov 6, 2008 at 11:35 PM, nitesh naik [EMAIL

[squid-users] Squid memory usage

2008-11-06 Thread nitesh naik
Hi All, Squid memory usage grows beyond allocate cache_mem size of 8 GB. Total physical memory available on machine is 20 GB. Does that mean there is memory leak and I should replace malloc library and compile squid ? I am using squid2.6 without using disk for caching. Memory usage for squid

Re: [squid-users] Squid memory usage

2008-11-06 Thread nitesh naik
Thanks everyone for your reply. I went through all these docs and also compiled squid with dmalloc option and disabled memory_pool. Squid memory usage grows upto 12GB+ and squid stops responding when we try to rotate logs using squid -k rotate. I want squid up and running all the time even if

Re: [squid-users] origin server health detect

2008-11-04 Thread nitesh naik
Not sure how difficult it is to port it to squid3 as it is already supported in squid2.6. We will take a look at code and see if we could port it to squid3. Regards Nitesh On Tue, Nov 4, 2008 at 6:22 PM, Amos Jeffries [EMAIL PROTECTED] wrote: nitesh naik wrote: Hi, Is there way to stop

Re: [squid-users] Ignoring query string from url

2008-11-03 Thread nitesh naik
high_page_fault_warning 0 high_memory_warning 0 bytes sleep_after_fork 0 windows_ipaddrchangemonitor on Regards Nitesh On Mon, Nov 3, 2008 at 10:27 AM, nitesh naik [EMAIL PROTECTED] wrote: Henrik / Amos, Tried using these setting and I could see see delay in serving the requests even for cached objects

Re: [squid-users] Ignoring query string from url

2008-11-03 Thread nitesh naik
time: 1550 msec # FD PID # Requests Flags TimeOffset Request 1 10 18237 12645 B 0.002 38 (none) 2 15 18238 12335 2.144 0 (none) Regards Nitesh On Mon, Nov 3, 2008 at 2:46 PM, nitesh naik [EMAIL PROTECTED] wrote

Re: [squid-users] Ignoring query string from url

2008-11-03 Thread nitesh naik
Hi All, Issues was with Disk I/O. I have used null cache dir and squid response is much faster now. cache_dir null /empty Thanks everyone for your help. Regards Nitesh On Tue, Nov 4, 2008 at 9:40 AM, nitesh naik [EMAIL PROTECTED] wrote: Does these Redirector statistics mean url rewrite

[squid-users] origin server health detect

2008-11-03 Thread nitesh naik
Hi, Is there way to stop forwarding requests to origin if monitoring url returns 404 in squid 3 ? Sometimes few nodes in our origin server cluster are unavailable and we would like to disable origin which is up but responding with 404 http status code. Also I would like to know if there is

Re: [squid-users] Ignoring query string from url

2008-11-02 Thread nitesh naik
originserver round-robin cache_peer 10.0.0.179 parent 80 0 no-query originserver round-robin cache_peer 10.0.0.181 parent 80 0 no-query originserver round-robin Regards Nitesh On Sun, Nov 2, 2008 at 1:11 AM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On tor, 2008-10-30 at 19:50 +0530, nitesh naik

Re: [squid-users] Ignoring query string from url

2008-10-30 Thread nitesh naik
is not caching the Object. I guess I need to use url rewrite program which will process requests in parallel to handle the load of 5000 req/sec. Regards Nitesh On Mon, Oct 27, 2008 at 5:18 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: See earlier response. On mån, 2008-10-27 at 16:59 +0530, nitesh naik

Re: [squid-users] Ignoring query string from url

2008-10-30 Thread nitesh naik
PM, nitesh naik [EMAIL PROTECTED] wrote: Henrik, With this approach I see that only one redirector process is being used and requests are processed in serial order. This causes delay in serving the objects and even response for cache object is slower. I tried changing url_rewrite_concurrency

Re: [squid-users] Ignoring query string from url

2008-10-30 Thread nitesh naik
2000 url_rewrite_concurrency 5 Regards Nitesh On Thu, Oct 30, 2008 at 3:16 PM, nitesh naik [EMAIL PROTECTED] wrote: There was mistake on my part I should have used following script to process concurrent requests. Its working properly now. #!/usr/bin/perl -an BEGIN { $|=1; } $id = $F[0

[squid-users] slow response for cached objects

2008-10-29 Thread nitesh naik
Hi, Sometimes I see squid is taking time in delivering contents even if object is available in its cache. Any idea what could be the reason? I used external url rewrite program to strip the query string. Is it slowing down serving process ? First 2 line shows squid took 703 milliseconds to

Re: [squid-users] slow response for cached objects

2008-10-29 Thread Nitesh Naik
is requested directly bypassing squid. Regards Nitesh On Wed, Oct 29, 2008 at 4:03 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On ons, 2008-10-29 at 15:08 +0530, nitesh naik wrote: Hi, Sometimes I see squid is taking time in delivering contents even if object is available in its cache. Any

Re: [squid-users] Ignoring query string from url

2008-10-27 Thread nitesh naik
url_rewrite_concurrency 0 url_rewrite_host_header off url_rewrite_bypass off Regards Nitesh On Sun, Oct 26, 2008 at 4:51 PM, Matus UHLAR - fantomas [EMAIL PROTECTED] wrote: On 25.10.08 12:40, Nitesh Naik wrote: Squid should give out same object for different query string. Basically it should strip

Re: [squid-users] Ignoring query string from url

2008-10-27 Thread Nitesh Naik
think squirm with 1500 child processes works differently compared to the solution you are talking about ? Regards Nitesh On Mon, Oct 27, 2008 at 2:39 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On mån, 2008-10-27 at 12:30 +0530, nitesh naik wrote: We use query string in each url

Re: [squid-users] Ignoring query string from url

2008-10-27 Thread nitesh naik
Henrik, Is this code capable for handling requests in parallel ? #!/usr/bin/perl $|=1; while () { s|(.*)\?(.*$)|$1|; print; } Regards Nitesh On Mon, Oct 27, 2008 at 4:04 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On mån, 2008-10-27 at 10:11 +0100, Matus UHLAR - fantomas wrote:

Re: [squid-users] Ignoring query string from url

2008-10-27 Thread nitesh naik
Henrik, What if I use following code ? logic is same as your program ? #!/usr/bin/perl $|=1; while () { s|(.*)\?(.*$)|$1|; print; next; } Regards Nitesh On Mon, Oct 27, 2008 at 4:25 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: Sorry, forgot the following important line in both

Re: [squid-users] Ignoring query string from url

2008-10-25 Thread Nitesh Naik
squirm.patterns contains following rule to strip query string. regex (.*)\?(.*) \1 Regards Nitesh On Fri, Oct 24, 2008 at 6:57 PM, Matus UHLAR - fantomas [EMAIL PROTECTED] wrote: On 24.10.08 13:40, nitesh naik wrote: Is there way to ignore query string in url so that objects are cached without query

[squid-users] Ignoring query string from url

2008-10-24 Thread nitesh naik
Hi All, Is there way to ignore query string in url so that objects are cached without query string ? I am using external perl program to strip them query string from url which is slowing down response time. I have started 1500 processes of redirect program. If I run squid without redirect

[squid-users] Did Anyone used ESI with squid ?

2005-03-08 Thread Nitesh Naik
Hi, I am having problem with configuring squid with ESI parsing. Did anyone implemented it ? Regards Nitesh Naik

Re: [squid-users] Did Anyone used ESI with squid ?

2005-03-08 Thread Nitesh Naik
Regards Nitesh Naik - Original Message - From: Michal Pietrusinski [EMAIL PROTECTED] To: squid-users@squid-cache.org Sent: Tuesday, March 08, 2005 5:26 PM Subject: Re: [squid-users] Did Anyone used ESI with squid ? Dear Nitesh, I'm also trying to use ESI with squid - I installed Squid

Re: [squid-users] Did Anyone used ESI with squid ?

2005-03-08 Thread Nitesh Naik
Michal, Thanks for your suggestion. Changed parser to custom and used following sample ESI code. esi:assign name=test_string value=This is test/ esi:vars $(test_string) /esi:vars Its Working perfectly fine. Is squid not supporting all ESI tags ? Regards Nitesh Naik - Original Message

Re: [squid-users] Did Anyone used ESI with squid ?

2005-03-08 Thread Nitesh Naik
. 1110351386.705541 255.255.255.255 TCP_MISS/403 0 GET http://www.yahoo.com - ANY_PARENT/originserver text/html Is esi:vars$set_redirect('http://www.yahoo.com')/esi:vars works for you ? Regards Nitesh Naik - Original Message - From: Michal Pietrusinski [EMAIL PROTECTED] To: Nitesh

[squid-users] Problem with parsing ESI

2005-03-06 Thread Nitesh Naik
, policyref=/w3c/p3p.xml Last-Modified: Fri, 04 Mar 2005 12:50:06 GMT ETag: 13c8a1-133-4228597e Accept-Ranges: bytes Content-Length: 307 Connection: close Content-Type: text/html Can any one tell us why ESI is not getting parsed ? Regards Nitesh Naik