• Poul-Henning Kamp's avatar
    Add an experimental thread to lurk at the bottom of the ban-list · 833f5680
    Poul-Henning Kamp authored
    and try to push objects away from the tail end so that the list
    can be shortened.
    
    It won't work if your bans contains any req.* tests, because the
    lurker has no request to compare against.
    
    By default the lurker is disabled, you enable it by setting the
    'ban_lurker_sleep' parameter to the amount of time the lurker
    should sleep between doing things.
    
    If it cannot do anything, it always sleeps for a second.
    
    NB: This feature is on probation, there is currently no guarantee
    it will end up in a future varnish release, it depends on the
    impact and usability.  Feedback much anticipated.
    
    
    One of the quasi-nasty details of this feature, is the need to work
    against the lock-order in cache_hash.c, see details in comments for
    HSH_FindBan().
    
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4206 d4fa192b-c00b-0410-8231-f00ffab90ce4
    833f5680
Name
Last commit
Last update
..
compat Loading commit data...
Makefile.am Loading commit data...
binary_heap.h Loading commit data...
cli.h Loading commit data...
cli_common.h Loading commit data...
cli_priv.h Loading commit data...
flopen.h Loading commit data...
http_headers.h Loading commit data...
http_response.h Loading commit data...
libvarnish.h Loading commit data...
libvcl.h Loading commit data...
miniobj.h Loading commit data...
persistent.h Loading commit data...
purge_vars.h Loading commit data...
shmlog.h Loading commit data...
shmlog_tags.h Loading commit data...
stat_field.h Loading commit data...
stats.h Loading commit data...
svnid.h Loading commit data...
varnishapi.h Loading commit data...
vbm.h Loading commit data...
vcl.h Loading commit data...
vcl_returns.h Loading commit data...
vct.h Loading commit data...
vev.h Loading commit data...
vlu.h Loading commit data...
vpf.h Loading commit data...
vqueue.h Loading commit data...
vrt.h Loading commit data...
vrt_obj.h Loading commit data...
vsb.h Loading commit data...
vsha256.h Loading commit data...
vss.h Loading commit data...