invalidating (ban) a cache problematically, real life maximum?
sahmed1020 at gmail.com
Wed Oct 17 18:19:31 CEST 2012
Confused, I thought ban and purge are the same thing now in varnish 3?
Varnish 3 uses the term ban and banning for what was known as purge and
purging in Varnish 2. They are the same.
- Varnish 3 has a new function called purge; that did not exist in VCL
in Varnish 2.
- purge; is a much improved way of doing what was in Varnish 2 done
using set obj.ttl = 0s;.
So when you said limiting ban's to 10-30 per second, you were referring to
a regex based way of removing an item from cache?
And a purge is a specific url?
On Wed, Oct 10, 2012 at 8:59 AM, Per Buer <perbu at varnish-software.com>wrote:
> On Wed, Oct 3, 2012 at 9:31 PM, S Ahmed <sahmed1020 at gmail.com> wrote:
>> I was reading:
>> My main question is, what sort of # of ban requests can one realistically
>> send to varnish to invalid caches? (individual items, not ranges etc.)
> I would limit bans to maybe 10-30 per second, no more. Make sure they are
> Say a site like tumblr is using varnish, which has thousands and thousands
>> of blogs, and so many blog entries are being updated via comments etc. How
>> realistic would sending 1K ban's be to varnish?
> Sending 1k purges to Varnish would be no problem at all. Bans - I'm not
> sure that is a good idea.
>> Maybe I have misunderstood this, but I'm guessing their are ruby/java
>> client libraries that when content gets updated in a web application, I
>> could then send a request using the ruby/java client library to ban a
>> specific item from cache right?
>> If there are client libraries, where can they be found? I'm looking for
>> both ruby and java.
> It might make sense to implement it yourself. It is dead simple and you
> don't need the complexities of a generic library.
> Per Buer
> Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
> *Varnish makes websites fly!*
> Whitepapers <http://www.varnish-software.com/whitepapers> | Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
> Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc