Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-cluster
Commits
ebfb59a8
Commit
ebfb59a8
authored
Mar 19, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up deep.vtc
parent
4a4b4313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
deep.vtc
src/vtc/deep.vtc
+8
-4
No files found.
src/vtc/deep.vtc
View file @
ebfb59a8
varnishtest "
vmod_cluster toy example with round-robin
"
varnishtest "
test resolve=DEEP
"
varnish v1 -vcl {
import cluster;
...
...
@@ -12,14 +12,18 @@ varnish v1 -vcl {
new rr = directors.round_robin();
rr.add_backend(s1);
rr.add_backend(s2);
new cl = cluster.cluster(rr.backend());
new real = directors.round_robin();
real.add_backend(s3);
new cl = cluster.cluster(rr.backend(), deny=s2, real=real.backend());
}
sub vcl_recv {
return (synth(200));
}
sub vcl_synth {
set resp.http.b1 = cl.backend(resolve=DEEP
, deny=s2, real=s3
);
set resp.http.b2 = cl.backend(resolve=DEEP
, deny=s2, real=s3
);
set resp.http.b1 = cl.backend(resolve=DEEP);
set resp.http.b2 = cl.backend(resolve=DEEP);
}
} -start
...
...
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