
herberto.graca at gmail
Jun 29, 2013, 5:44 AM
Post #1 of 1
(69 views)
Permalink
|
|
Unused backend code_sample_director, defined
|
|
Hi, Im new to varnish, and I've been following the tutorial to set it up. Currently Im trying to set up varnish also as a load balancer, however it comes out an error: [vagrant [at] cach ~]$ sudo varnishd -n foo -f /etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000 -a 0.0.0.0:8080 -d Message from VCC-compiler: Unused backend code_sample_director, defined: ('input' Line 29 Pos 10) director code_sample_director round-robin { ---------####################-------------- Running VCC-compiler failed, exit 1 VCL compilation failed This is my default.vcl: backend app1 { .host = "app1.hgraca.com"; .port = "80"; .probe = { .url = "/"; .interval = 5s; .timeout = 1s; .window = 5; .threshold = 3; } } backend app2 { .host = "app2.hgraca.com"; .port = "80"; .probe = { .url = "/"; .interval = 5s; .timeout = 1s; .window = 5; .threshold = 3; } } director workspace_director round-robin { # server1 { .backend = app1; } # server2 { .backend = app2; } } Any ideaas about what Im missing? Tkx, Herberto Graça _________________________________ <http://pt.linkedin.com/pub/herberto-gra%C3%A7a/8/10/b32>
|