<div dir="ltr"><div><div><div>Hi,<br><br></div>Im new to varnish, and I've been following the tutorial to set it up.<br><br></div>Currently Im trying to set up varnish also as a load balancer, however it comes out an error:<br>
<br><span style="font-family:courier new,monospace">[vagrant@cache ~]$ sudo varnishd -n foo -f /etc/varnish/default.vcl -s malloc,1G -T <a href="http://127.0.0.1:2000">127.0.0.1:2000</a> -a <a href="http://0.0.0.0:8080">0.0.0.0:8080</a> -d<br>
Message from VCC-compiler:<br>Unused backend code_sample_director, defined:<br>('input' Line 29 Pos 10)<br>director code_sample_director round-robin {<br>---------####################--------------<br><br>Running VCC-compiler failed, exit 1<br>
<br>VCL compilation failed</span><br><br><br></div>This is my default.vcl:<br><br clear="all"><div><div><div><div><div><div dir="ltr"><span style="font-family:courier new,monospace">backend app1 {<br> .host = "<a href="http://app1.hgraca.com">app1.hgraca.com</a>";<br>
.port = "80";<br> .probe = {<br> .url = "/";<br> .interval = 5s;<br> .timeout = 1s;<br> .window = 5;<br> .threshold = 3;<br> }<br>}<br>backend app2 {<br> .host = "<a href="http://app2.hgraca.com">app2.hgraca.com</a>";<br>
.port = "80";<br> .probe = {<br> .url = "/";<br> .interval = 5s;<br> .timeout = 1s;<br> .window = 5;<br> .threshold = 3;<br> }<br>}<br>director workspace_director round-robin {<br>
# server1<br> {<br> .backend = app1;<br> }<br> # server2<br> {<br> .backend = app2;<br> }<br>}</span><br><br></div><div>Any ideaas about what Im missing?<br><br></div><div>Tkx,<br></div><div dir="ltr">
<br>Herberto Graça<br>_________________________________<br><a href="http://pt.linkedin.com/pub/herberto-gra%C3%A7a/8/10/b32" target="_blank"><img src="http://4.bp.blogspot.com/-Q55h0zMIhbw/Thpb2f7KI_I/AAAAAAAAAo4/2oQopJ26fX4/s1600/linkedin.png" height="30" width="30"></a><br>
</div></div>
</div></div></div></div></div>