Re: how to flush all cache

2008-04-21 Thread Per Andreas Buer
Yes - but the semantics are the same. There are many ways to skin a cat - if you are into stuff like that. Personally I like "url.purge .*" because it clearly states its a regular expression. Per. Pavel Pragin skrev: > Hello, > > Do you think there is a diff between these two: > > url.purge

Re: stale delivery and prefetch sanity check...

2008-04-21 Thread Jon Drukman
Poul-Henning Kamp wrote: > If any of you have time, your comments to this outline for degraded > mode and prefetching would be appreciated. Looks like a great start to me. Is there an approximate timeframe (very rough is OK) for when we might see these features? > Prefetch > > > Prefe

RE: how to flush all cache

2008-04-21 Thread Pavel Pragin
Hello, Do you think there is a diff between these two: url.purge .* 200 9 PURGE .* url.purge . 200 8 PURGE . Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Per Andreas Buer Sent: Monday, April 21, 2008 11:23 AM Cc: varnish-misc@projects.linpro

Re: how to flush all cache

2008-04-21 Thread Per Andreas Buer
Well, as far as I can see the following entry would answer your question perfectly; http://varnish.projects.linpro.no/wiki/FAQ#HowcanIforcearefreshonaobjectcachedbyvarnish It explains both purging via the command line and HTTP PURGE. I agree that the documentation is a bit on the sparse side. H

Re: regsub, string concatenation?

2008-04-21 Thread Jon Drukman
Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Jon Drukman writes: >> i'm trying to rewrite all incoming URLs to include the http host header >> as part of the destination url. example: >> >> set req.url = regsub(req.url, "^", "/site/" + req.http.host); > > You can't do it directly

Re: how to flush all cache

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >Will this have same effect: >varnishadm -T 127.0.0.1:6082 url.purge "." yes -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never

RE: how to flush all cache

2008-04-21 Thread Pavel Pragin
Will this have same effect: varnishadm -T 127.0.0.1:6082 url.purge "." thanks a lot -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poul-Henning Kamp Sent: Monday, April 21, 2008 11:09 AM To: Pavel Pragin Cc: varnish-misc@projects.linpro.no Subject: Re: h

Re: how to flush all cache

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >Hello. > >Does this mean its cleared? >[EMAIL PROTECTED] varnish]# telnet localhost 6082 >Trying 127.0.0.1... >Connected to localhost. >Escape character is '^]'. >url.purge . >200 8 >PURGE . > > >I don't see any change in the varnish stats?

RE: how to flush all cache

2008-04-21 Thread Pavel Pragin
Hello, I looked at the FAQ and its insufficient. I would love to contribute to it once I get this working. I have been contributing to the Amanda project and I am a believer in open source and taking the time to help others. Varnish is great , but documentation is inadequate to say the least. Tha

Re: how to flush all cache

2008-04-21 Thread Per Andreas Buer
Hi Pavel. Please consult the FAQ before asking on the mailing list. Thanks! Pavel Pragin skrev: > Hello, > > Thanks for that. Where is this run from? Using http request or from the > admin port? > > Thanks > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: how to flush all cache

2008-04-21 Thread Pavel Pragin
Hello. Does this mean its cleared? [EMAIL PROTECTED] varnish]# telnet localhost 6082 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. url.purge . 200 8 PURGE . I don't see any change in the varnish stats? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[

RE: how to flush all cache

2008-04-21 Thread Pavel Pragin
Hello, Thanks for that. Where is this run from? Using http request or from the admin port? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poul-Henning Kamp Sent: Monday, April 21, 2008 10:44 AM To: Pavel Pragin Cc: varnish-misc@projects.linpro.n

Re: how to flush all cache

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >Hello, > >Is there a way to flush all cache from varnish without restarting it? url.purge . -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD sin

how to flush all cache

2008-04-21 Thread Pavel Pragin
Hello, Is there a way to flush all cache from varnish without restarting it? Thanks ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc

RE: url.purge

2008-04-21 Thread Pavel Pragin
Hello, Here is what I am trying to accomplish. We want to be able to clear all varnish cache from the php application. It may be using a php function or something. So far the only way to clear varnish cache has been to restart Varnish. What would be the best way? Thanks -Original Message---

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >How can I purge all the cache using this? Then you need to use the more advanced hash.purge functionality, I'm not sure if we have a cook-book example for that. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAI

RE: url.purge

2008-04-21 Thread Pavel Pragin
Hello, How can I purge all the cache using this? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poul-Henning Kamp Sent: Monday, April 21, 2008 8:05 AM To: Pavel Pragin Cc: Sven Tietje; varnish-misc@projects.linpro.no Subject: Re: url.purge In

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >I am pretty sure there is: >282624 .. bytes allocated >5368426496 .. bytes free > > >Does this purge all cache for beta.manyone.net? >PURGE / HTTP/1.1 >Host: beta.manyone.net No, it only purges

RE: url.purge

2008-04-21 Thread Pavel Pragin
I am pretty sure there is: 282624 .. bytes allocated 5368426496 .. bytes free Does this purge all cache for beta.manyone.net? PURGE / HTTP/1.1 Host: beta.manyone.net Thank a lot Pavel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >I am getting this now. Its says nothing to purge? > >[EMAIL PROTECTED] ~]# telnet localhost 80 >Trying 127.0.0.1... >Connected to localhost. >Escape character is '^]'. >PURGE / HTTP/1.1 >Host: beta.manyone.net > >HTTP/1.0 404 Not Found That

RE: url.purge

2008-04-21 Thread Pavel Pragin
I am getting this now. Its says nothing to purge? [EMAIL PROTECTED] ~]# telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. PURGE / HTTP/1.1 Host: beta.manyone.net HTTP/1.0 404 Not Found Server: Varnish Retry-After: 0 Content-Type: text/html; charset=utf-8 Co

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >Hello, > >Can you please help me put it the right order. I will be very great >full. Put the purge stuff first. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer

RE: url.purge

2008-04-21 Thread Pavel Pragin
Hello, Can you please help me put it the right order. I will be very great full. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poul-Henning Kamp Sent: Monday, April 21, 2008 7:49 AM To: Pavel Pragin Cc: Sven Tietje; varnish-misc@projects.linpro

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >I tried the whole example it still doesn't work. >Here is my whole vcl file: Order is important here... Your first vcl_recv {} sends the PURGE request to pipe before the second copy ever gets at it. > sub vcl_recv { [...] >

RE: url.purge

2008-04-21 Thread Pavel Pragin
I tried the whole example it still doesn't work. Here is my whole vcl file: backend default { set backend.host = "127.0.0.1"; set backend.port = "9090"; } sub vcl_recv { if (req.request == "GET" && req.url ~ "\.(gif|jpg|swf|css)$") { lookup;

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED] m>, "Pavel Pragin" writes: >directions in this link: >http://varnish.projects.linpro.no/wiki/VCLExamplePurging > >I added these lines to my VCL configuration file and restarted Varnish: >sub vcl_hit { >if (req.request =3D=3D "PURGE") { >set obj

RE: url.purge

2008-04-21 Thread Sven Tietje
>>> isn`t it implemented in varnish-1.1? >> >> No, sorry. >> >> I can't remember if it's in 1.2 http://varnish.projects.linpro.no/browser/branches/1.2/include/cli.h looks like that. am i right? >ok, i`ll give svn-trunk a try. will it be possible to pruge all documents of >a specified host and

RE: url.purge

2008-04-21 Thread Pavel Pragin
Hello, Please help me get Purging working. I am really stuck. I followed the directions in this link: http://varnish.projects.linpro.no/wiki/VCLExamplePurging I added these lines to my VCL configuration file and restarted Varnish: sub vcl_hit { if (req.request == "PURGE") {

Re: url.purge

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, "Sven Tietje " writes: >so, i try to purge all documents for a host by doing >varnishadm -T 127.0.0.1:6082 url.purge "#http://mydomain.de/#$"; url.purge only operates on the URL part of the request, not on the Host: header part. If you need to select on both hos

url.purge

2008-04-21 Thread Sven Tietje
hi, i have got a problem with url.purge :D i already have searched the mailing list archive and the svn and i have found http://varnish.projects.linpro.no/browser/trunk/varnish-cache/include/cli.h? rev=1816 so, i try to purge all documents for a host by doing varnishadm -T 127.0.0.1:6082 url.pu

Re: default_ttl applied even when Expires exist

2008-04-21 Thread Ricardo Newbery
On Apr 20, 2008, at 10:33 PM, Poul-Henning Kamp wrote: > In message <8240BA9F- > [EMAIL PROTECTED]>, Ricardo N > ewbery writes: > >>> I see in rfc2616.c that this behavior is intentional. Varnish >>> apparently assumes a "clockless" origin server if the Expires date >>> is not in the future and

Re: Varnish crashing when system starts to swap

2008-04-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Ca lle Korjus writes: >Varnish looks fine until it's had abour 1,5 million requests, then >we can see the kswapd0 and kswapd1 start working and load average >rises to about 200 and the machine gets totally unresponsive. Top >shows a lot of cpu beeing spent on i/o wa