]> err.no Git - varnish/commit
Implement parsing of .window and .threshold in backend polling specifications.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Aug 2008 08:18:43 +0000 (08:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Aug 2008 08:18:43 +0000 (08:18 +0000)
commit5cccd71534650199ab23f9c98290d688fb279981
tree0f81c896698323b2c72e9512f3f76501f7b0c98b
parent001e71b13375a27d22eae580c74961594d609468
Implement parsing of .window and .threshold in backend polling specifications.

.window is how many of the latest polls we examine.
.threshold is how many must have succeeded for the backend to be healthy.

.window = 40;
.threshold = 30;
// Thirty of the last fourty polls must have succeed.

.threshold = 4;
// The last four polls must have succeeded.

Default values:
.window = 8;
.threshold = 3;

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3098 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/vcc_backend.c
varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl