Why are you using Varnish to serve primarily images?  Modern webservers serve static files very efficiently off the filesystem. <div><br></div><div>Best regards,<br><div><br></div><div>--Michael<br><br><div class="gmail_quote">
On Sun, Jun 1, 2008 at 8:58 AM, Barry Abrahamson <<a href="mailto:barry@automattic.com">barry@automattic.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Is anyone running multiple varnish instances per server (one per disk<br>
or similar?)<br>
<br>
We are currently running a single varnish instance per server using<br>
the file backend.  Machines are Dual Opteron 2218, 4GB RAM, and 2<br>
250GB SATA drives.  We have the cache file on a software RAID 0<br>
array.  Our cache size is set to 300GB, but once we get to 100GB or<br>
so, IO starts to get very spiky, causing loads to spike into the 100<br>
range.  Our expires are rather long (1-2 weeks).  My initial thoughts<br>
were that this was caused by cache file fragmentation, but we are<br>
seeing similar issues when using the malloc backend.  We were thinking<br>
that running 2 instances per server with smaller cache files (one per<br>
physical disk), may improve our IO problems.  Is there any performance<br>
benefit/detriment to running multiple varnish instances per server?<br>
Is there a performance hit for having a large cache?<br>
<br>
Request rates aren't that high (50-150/sec), but the cached files are<br>
all images, some of which can be rather big (3MB).<br>
<br>
Also, is anyone else seeing similar issues under similar workloads?<br>
--<br>
Barry Abrahamson | Systems Wrangler | Automattic<br>
Blog: <a href="http://barry.wordpress.com" target="_blank">http://barry.wordpress.com</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@projects.linpro.no">varnish-misc@projects.linpro.no</a><br>
<a href="http://projects.linpro.no/mailman/listinfo/varnish-misc" target="_blank">http://projects.linpro.no/mailman/listinfo/varnish-misc</a><br>
<br>
</blockquote></div><br></div></div>