]> err.no Git - varnish/commit
Add an optional shortcut:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 11 Jun 2008 21:12:26 +0000 (21:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 11 Jun 2008 21:12:26 +0000 (21:12 +0000)
commit01801156ffb7d374a2e864158bd3b2a7725af08c
tree79fd77c740efb6f19241da4d1dc9012caf93442c
parent7cd74dc2aa324859055d1e37780e1c42bcfcde54
Add an optional shortcut:

The parameter session_linger determines how many milliseconds the
workerthread waits to see if another request has arrived, before
handing the session over to the session herder.

If we manage to catch the next request this way, we save a number
of semi-expensive steps, if we hang around too long, the worker-thread
gets to goof off.

A relatively small sample of data from a live server, indicates
that 20% of all requests arrive within 50 msec of the previous
request and 50% within 100msec.

It is not clear at present how these timeintervals relate to client
RTT, or if they are systematically too high, due to the duration
of the detour over the herder.

There is a new line in varnishstat keeping track of how many times
this gamble succeeds.

Experimentation is encouraged.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2663 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/include/stat_field.h