Commit e74abf89 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

param: New vary_notice parameter

To control the threshold used to warn.
parent ce9fbe44
......@@ -543,7 +543,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
if (req->hash_objhead)
had_objhead = 1;
lr = HSH_Lookup(req, &oc, &busy);
if (wrk->strangelove >= 10)
if (wrk->strangelove >= cache_param->vary_notice)
VSLb(req->vsl, SLT_Notice, "vsl: High number of variants (%d)",
wrk->strangelove);
if (lr == HSH_BUSY) {
......
......@@ -944,6 +944,18 @@ PARAM_SIMPLE(
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ vary_notice,
/* type */ uint,
/* min */ "1",
/* max */ NULL,
/* def */ "10",
/* units */ "variants",
/* descr */
"How many variants need to be evaluated to log a Notice that there "
"might be too many variants."
)
PARAM_SIMPLE(
/* name */ vcl_cooldown,
/* type */ timeout,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment