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
4703c26f
Commit
4703c26f
authored
Jan 21, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test more of the fallback director
parent
dfee06d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
d00001.vtc
bin/varnishtest/tests/d00001.vtc
+25
-0
No files found.
bin/varnishtest/tests/d00001.vtc
View file @
4703c26f
...
...
@@ -16,6 +16,7 @@ server s3 {
} -start
varnish v1 -vcl+backend {
import std;
import directors;
sub vcl_init {
...
...
@@ -33,11 +34,17 @@ varnish v1 -vcl+backend {
return (pass);
}
sub vcl_deliver {
set resp.http.health = std.healthy(fb1.backend());
}
sub vcl_backend_fetch {
set bereq.backend = fb1.backend();
}
} -start
varnish v1 -cliok "param.set debug +vclrel"
varnish v1 -cliok "backend.set_health s1 sick"
varnish v1 -cliok "backend.set_health s2 sick"
...
...
@@ -48,6 +55,8 @@ client c1 {
expect resp.http.foo == "3"
} -run
varnish v1 -vsl_catchup
varnish v1 -cliok "backend.set_health s2 healthy"
client c1 {
...
...
@@ -56,6 +65,8 @@ client c1 {
expect resp.http.foo == "2"
} -run
varnish v1 -vsl_catchup
varnish v1 -cliok "backend.set_health s1 healthy"
client c1 {
...
...
@@ -64,6 +75,8 @@ client c1 {
expect resp.http.foo == "1"
} -run
varnish v1 -vsl_catchup
varnish v1 -cliok "backend.set_health s1 sick"
server s3 -start
...
...
@@ -75,3 +88,15 @@ client c1 {
rxresp
expect resp.http.foo == "3"
} -run
varnish v1 -vsl_catchup
varnish v1 -vcl+backend {
sub vcl_recv {
set req.backend_hint = s1;
set req.backend_hint = s2;
set req.backend_hint = s3;
}
}
varnish v1 -cliok "vcl.discard vcl1"
varnish v1 -cliok "vcl.list"
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