[master] c7c23d9 Run the vcl-cooldown poker at 45% of the vcl_cooldown interval.

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 16 13:16:07 CET 2015


commit c7c23d97b59eb1e31d12ce4bb576ab1d82453850
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 16 12:15:27 2015 +0000

    Run the vcl-cooldown poker at 45% of the vcl_cooldown interval.

diff --git a/bin/varnishd/mgt/mgt_vcl.c b/bin/varnishd/mgt/mgt_vcl.c
index 125f751..062c9ca 100644
--- a/bin/varnishd/mgt/mgt_vcl.c
+++ b/bin/varnishd/mgt/mgt_vcl.c
@@ -433,6 +433,7 @@ mgt_vcl_poker(const struct vev *e, int what)
 
 	(void)e;
 	(void)what;
+	e_poker->timeout = mgt_param.vcl_cooldown * .45;
 	VTAILQ_FOREACH(vp, &vclhead, list)
 		mgt_vcl_setstate(vp, -1);
 	return (0);
@@ -463,6 +464,7 @@ mgt_vcl_init(void)
 	e_poker = vev_new();
 	AN(e_poker);
 	e_poker->timeout = 3;		// random, prime
+
 	e_poker->callback = mgt_vcl_poker;
 	e_poker->name = "vcl poker";
 	AZ(vev_add(mgt_evb, e_poker));



More information about the varnish-commit mailing list