[master] 850d1a0 Add a vcl_cooldown parameter which controls when we switch deactivated VCLs to cold (if they're in "auto" mode).
Poul-Henning Kamp
phk at FreeBSD.org
Mon Mar 9 10:29:33 CET 2015
commit 850d1a06ca03235f5435a0a9dc60a304176f4046
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Mar 9 08:41:51 2015 +0000
Add a vcl_cooldown parameter which controls when we switch deactivated
VCLs to cold (if they're in "auto" mode).
diff --git a/bin/varnishd/common/params.h b/bin/varnishd/common/params.h
index cdb8646..f5f9450 100644
--- a/bin/varnishd/common/params.h
+++ b/bin/varnishd/common/params.h
@@ -198,6 +198,8 @@ struct params {
double critbit_cooloff;
+ double vcl_cooldown;
+
double shortlived;
struct vre_limits vre_limits;
diff --git a/bin/varnishd/mgt/mgt_param_tbl.c b/bin/varnishd/mgt/mgt_param_tbl.c
index e57a68f..e705a47 100644
--- a/bin/varnishd/mgt/mgt_param_tbl.c
+++ b/bin/varnishd/mgt/mgt_param_tbl.c
@@ -532,7 +532,12 @@ struct parspec mgt_parspec[] = {
0,
VARNISH_VMOD_DIR,
NULL },
-
+ { "vcl_cooldown", tweak_timeout, &mgt_param.vcl_cooldown,
+ "0", NULL,
+ "How long time a VCL is kept warm after being replaced as the"
+ " active VCL. (Granularity approximately 30 seconds.)",
+ 0,
+ "600", "seconds" },
{ "vcc_err_unref", tweak_bool, &mgt_vcc_err_unref,
NULL, NULL,
"Unreferenced VCL objects result in error.",
More information about the varnish-commit
mailing list