-
Notifications
You must be signed in to change notification settings - Fork 390
vcl: Make 'none' a reserved keyword and use it for probes #4309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
20e99de
829c804
10bbd83
bf1f80d
760d063
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
varnishtest "none probe" | ||
|
||
server s0 { | ||
rxreq | ||
txresp -status 500 | ||
} -dispatch | ||
|
||
varnish v1 -vcl { | ||
probe default { | ||
.interval = 100ms; | ||
} | ||
backend s0 { | ||
.host = "${s0_sock}"; | ||
.probe = none; | ||
} | ||
} -start | ||
|
||
delay 1 | ||
|
||
varnish v1 -cliexpect healthy "backend.list -p" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ varnish v1 -errvcl {Symbol not found: 'obj'} { | |
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the commit message: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case I think we should consider it a bug fix, we should never have authorized There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes |
||
varnish v1 -errvcl {rot13: VFP already registered (per-vcl)} { | ||
import debug; | ||
backend none none; | ||
backend be none; | ||
sub vcl_init { | ||
debug.rot104(); | ||
} | ||
|
@@ -167,7 +167,7 @@ varnish v1 -errvcl {Failed from VCL} { | |
|
||
varnish v1 -errvcl {Failed initialization} { | ||
import debug; | ||
backend none none; | ||
backend be none; | ||
sub vcl_init { | ||
new fails = debug.obj("fail"); | ||
} | ||
|
@@ -177,7 +177,7 @@ shell { | |
cat >${tmpdir}/f1 <<-EOF | ||
vcl 4.1; | ||
import debug; | ||
backend none none; | ||
backend be none; | ||
sub vcl_init { | ||
new fails = debug.obj("fail"); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also make sure please that this also works for a
VCL_PROBE
vmod function/method argument?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can pass
none
for a backends either, that would be a subsequent change (among a couple others) should this one be approved.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can always define a none backend and then pass that, so that is not so important. For probes we don't have that option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, so you'd like to align this change with backend definitions?
That would increase overall consistency, good idea.