Re: Varnish Prefetch

2010-02-01 Thread Poul-Henning Kamp
In message <75cf5801002010157ybf03f32v3223260dc...@mail.gmail.com>, Paras F
adte writes:

>Any work around possible in varnish to make varnish check objects at backend
>some time before they actually reach their expires time? Or is it just not
>possible to do so in varnish?

We have a facility called 'grace' that does pretty much the same thing,
just slightly different.

Good explanation here:

http://overstimulate.com/articles/varnish-getting-started

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-02-01 Thread Paras Fadte
Hi Poul,

Any work around possible in varnish to make varnish check objects at backend
some time before they actually reach their expires time? Or is it just not
possible to do so in varnish?

Thank you.

-Paras


On Fri, Jan 29, 2010 at 10:07 AM, Paras Fadte  wrote:

> Thanks for the response Poul.
>
>
>
> On Fri, Jan 29, 2010 at 3:49 AM, Poul-Henning Kamp wrote:
>
>> In message <75cf5801001270025s722f114ax9335dba334a84...@mail.gmail.com>,
>> Paras
>> Fadte writes:
>>
>> >Thanks for the response . So with grace mode is it possible to fetch an
>> >object from backend about "x" seconds before its "expires" time is
>> reached ?
>>
>>
>> No, sorry.
>>
>> --
>> Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
>> p...@freebsd.org | TCP/IP since RFC 956
>> FreeBSD committer   | BSD since 4.3-tahoe
>> Never attribute to malice what can adequately be explained by
>> incompetence.
>>
>
>
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-28 Thread Paras Fadte
Thanks for the response Poul.


On Fri, Jan 29, 2010 at 3:49 AM, Poul-Henning Kamp wrote:

> In message <75cf5801001270025s722f114ax9335dba334a84...@mail.gmail.com>,
> Paras
> Fadte writes:
>
> >Thanks for the response . So with grace mode is it possible to fetch an
> >object from backend about "x" seconds before its "expires" time is reached
> ?
>
>
> No, sorry.
>
> --
> Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
> p...@freebsd.org | TCP/IP since RFC 956
> FreeBSD committer   | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-28 Thread Poul-Henning Kamp
In message <75cf5801001270025s722f114ax9335dba334a84...@mail.gmail.com>, Paras 
Fadte writes:

>Thanks for the response . So with grace mode is it possible to fetch an
>object from backend about "x" seconds before its "expires" time is reached ?


No, sorry.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-27 Thread Paras Fadte
Hi Tollef,

Thanks for the response.

-Paras

On Mon, Jan 25, 2010 at 2:57 PM, Tollef Fog Heen
wrote:

> ]] Paras Fadte
>
> | Is prefetch by default enabled in varnish ?
>
> No, it is not implemented and any references to it should be ignored.
> It is also removed in trunk.
>
> --
> Tollef Fog Heen
> Redpill Linpro -- Changing the game!
> t: +47 21 54 41 73
> ___
> varnish-misc mailing list
> varnish-misc@projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-27 Thread Paras Fadte
Hi Poul,

Thanks for the response . So with grace mode is it possible to fetch an
object from backend about "x" seconds before its "expires" time is reached ?

Thank you.

-Paras

On Mon, Jan 25, 2010 at 2:14 PM, Poul-Henning Kamp wrote:

> In message <75cf5801001241820w3e4afd34v64ad2031b8b7...@mail.gmail.com>,
> Paras Fadte writes:
>
> >> Is prefetch by default enabled in varnish ?
>
> Prefetch never got implemented, we found other ideas to solve the problem,
> such as grace mode.
>
> --
> Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
> p...@freebsd.org | TCP/IP since RFC 956
> FreeBSD committer   | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-25 Thread Tollef Fog Heen
]] Paras Fadte 

| Is prefetch by default enabled in varnish ?

No, it is not implemented and any references to it should be ignored.
It is also removed in trunk.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-25 Thread Poul-Henning Kamp
In message <75cf5801001241820w3e4afd34v64ad2031b8b7...@mail.gmail.com>, Paras 
Fadte writes:

>> Is prefetch by default enabled in varnish ?  

Prefetch never got implemented, we found other ideas to solve the problem,
such as grace mode.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Varnish Prefetch

2010-01-24 Thread Paras Fadte
Can anybody please respond to this query ?

Thank you.

On Fri, Jan 22, 2010 at 11:02 AM, Paras Fadte  wrote:

> Hi,
>
> Is prefetch by default enabled in varnish ?  I have following in VCL . A
> value of -30 seconds would mean that the object would be checked 30 seconds
> before its expiry time is reached to see if its modified on backend ?
>
>
> sub vcl_fetch {
> set obj.grace = 30s;
> if (!obj.cacheable) {
> pass;
> }
> if (obj.http.Set-Cookie) {
> pass;
> }
> set obj.prefetch =  -30s;
> deliver;
> }
>
>
> I see following from varnishlog . What doe that mean ?
>
> 26 VCL_info c XID 3904284923: obj.prefetch (-30) less than ttl
> (-1.26414e+09), ignored.
>
> 0 VCL_call - prefetch
> 0 ExpPick  - 3903448954 prefetch
>
>
>
> Thank you.
>
> -Paras
>
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc