<div dir="ltr">Just to chime in:<div><ul><li>1 CPU is a good starting point, as others have said, Varnish does not need much CPU. If you max out the CPU, then move to 2 CPUs, repeat...</li><li>Do not change any of the thread settings, the defaults will work nice on a single CPU or more.</li></ul></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<br>Reza Naghibi<br>Varnish Software</div></div></div>
<br><div class="gmail_quote">On Fri, Mar 10, 2017 at 3:16 PM, Craig Servin <span dir="ltr"><<a href="mailto:cservin-varnish@cromagnon.com" target="_blank">cservin-varnish@cromagnon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We found that we run into the network IO limits before we had CPU issues.  You have to use trial and error to figure out how much IO you can get from each instance type as we couldn't find good documentation defining that.  However it seemed that the network limit goes up as you step up machine sizes in each family.<br>
<br>
You could also put your varnish into an ASG and add instances on CPU or Network IO.  The cache wouldn't be shared between them, but depending on your traffic that may not matter.<br>
<br>
At our busiest time we were running 6 c4.4xlarge instances 3 east 3 west.  Now, we run 4 r4.xlarge instances.  The nice thing about them being virtual is you can load test them and then load test another instance type fairly easily.<br>
<br>
Cheers,<br>
<br>
Craig<span class="im HOEnZb"><br>
<br>
<br>
On 2017-03-10 03:58, Jordi Llach wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
any suggestion choosing an Amazon EC2 instance type for Varnish ?<br>
</blockquote>
<br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><br>
</div></div></blockquote></div><br></div>