Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e74abf89
Commit
e74abf89
authored
Feb 15, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param: New vary_notice parameter
To control the threshold used to warn.
parent
ce9fbe44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+1
-1
params.h
include/tbl/params.h
+12
-0
No files found.
bin/varnishd/cache/cache_req_fsm.c
View file @
e74abf89
...
@@ -543,7 +543,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
...
@@ -543,7 +543,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
if
(
req
->
hash_objhead
)
if
(
req
->
hash_objhead
)
had_objhead
=
1
;
had_objhead
=
1
;
lr
=
HSH_Lookup
(
req
,
&
oc
,
&
busy
);
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)"
,
VSLb
(
req
->
vsl
,
SLT_Notice
,
"vsl: High number of variants (%d)"
,
wrk
->
strangelove
);
wrk
->
strangelove
);
if
(
lr
==
HSH_BUSY
)
{
if
(
lr
==
HSH_BUSY
)
{
...
...
include/tbl/params.h
View file @
e74abf89
...
@@ -944,6 +944,18 @@ PARAM_SIMPLE(
...
@@ -944,6 +944,18 @@ PARAM_SIMPLE(
/* flags */
EXPERIMENTAL
/* 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
(
PARAM_SIMPLE
(
/* name */
vcl_cooldown
,
/* name */
vcl_cooldown
,
/* type */
timeout
,
/* type */
timeout
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment