Hello list,<br><br>I was about to setup another squid install for a drupal site that is going to be getting some high traffic and I found varnish. I think that product is really great but I am having some issues. <br><br>
<br>First hardware.<br>I have varnish and the web server running on the same quad core dual xeon box 8gb of ram on debian. I have used the debian package to install varnish and it installed version1.0.2-2 <br><br>There is a database for the site running on another box. <br>
<br>Here are my 2 questions, I hope someone out there can point me in the right direction.<br><br>1. connection reset issues<br>I ran <br> siege -c 250 -r 1000 -i -d 1 http://<myip><br><br>This is a sample of the output I get<br>
HTTP/1.1 200 0.41 secs: 5548 bytes ==> /<br>HTTP/1.1 200 0.41 secs: 5548 bytes ==> /<br>HTTP/1.1 200 0.42 secs: 5548 bytes ==> /<br>HTTP/1.1 200 0.41 secs: 5548 bytes ==> /<br>Error: socket: read error Connection reset by peer sock.c:455: Connection reset by peer<br>
Error: socket: read error Connection reset by peer sock.c:455: Connection reset by peer<br>Error: socket: read error Connection reset by peer sock.c:455: Connection reset by peer<br>Error: socket: read error Connection reset by peer sock.c:455: Connection reset by peer<br>
Error: socket: read error Connection reset by peer sock.c:455: Connection reset by peer<br>HTTP/1.1 200 1.17 secs: 5548 bytes ==> /<br>HTTP/1.1 200 1.94 secs: 5548 bytes ==> /<br>HTTP/1.1 200 0.63 secs: 5548 bytes ==> /<br>
HTTP/1.1 200 0.63 secs: 5548 bytes ==> /<br>HTTP/1.1 200 0.62 secs: 5548 bytes ==> /<br><br>At the end of the run I get Availability of around 45% If I run siege directly to the webserver, I get an Availability of 98%. (it also takes longer) <br>
<br>2. caching pages<br>I have updated content on my main site, and would like to clear the varnish cache, I telnet into the management interface and run purge * (I also tried purge *. , purge .* , purge *.*) I then clear my browser cache, and refresh the page, I get the old page. If I visit the server directly, I get the new page? <br>
<br><br>Below is my vcl.conf file I have comment out the cookie part because I would like it to pass those requests to the webserver. (I guess it could cache the front page) <br><br><br>backend default {<br> set backend.host = "<a href="http://10.10.0.10">10.10.0.10</a>";<br>
set backend.port = "81";<br>}<br><br>sub vcl_recv {<br> if (req.request == "POST") {<br> pipe;<br> }<br><br> # force lookup even when cookies are present<br>
# if (req.request == "GET" && req.http.cookie) {<br># lookup;<br># }<br> if (req.request == "GET" && req.url ~ "\.(gif|jpg|swf|css|js)$") {<br> lookup;<br>
}<br>}<br><br>sub vcl_fetch {<br> # force minimum ttl of 180 seconds<br> if (obj.ttl < 180s) {<br> set obj.ttl = 180s;<br> }<br>}<br><br><br>Thanks for any help someone can give. <br>
<br><br>