Commit ebfb59a8 authored by Nils Goroll's avatar Nils Goroll

clean up deep.vtc

parent 4a4b4313
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
......
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