<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">80% is considered optimum capacity. You're not maxing out the server and you're not wasting resources either. That's what VPS & cloud providers mean when they say "we're so green that Amazon is a desert in comparison".</font></font></font><div>


<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:large">CPU and memory are not as much of a problem as disk usage. </span><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Disk iowait is one to watch on shared disks. If your disks are doing anything above 5 %iowait (iostat -m 2), you're pushing them too much. sysstat with sar is a good one to have. A lot of the time, when you're CPU usage is high, it's usually network & disk iowait that are the root cause.</font></font></font><div>


<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Put background jobs onto another machine, simple as. Heroku gives you 1 bg worker for free. Each extra worker costs $0.05/h. As a rule of thumb, you don't want to mix the <b>now</b> with <b>whenever</b>.</font></font></font></div>


<div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Gerhard<br clear="all"></font></font></font><br>


<hr style="font-family:arial,helvetica,sans-serif"><font color="#3333ff"><font face="arial, helvetica, sans-serif"><a href="http://twitter.com/#!/gerhardlazu" target="_blank">Twitter</a> <a href="https://github.com/gerhard" target="_blank">Github</a> </font><a href="http://gerhardlazu.com/" style="font-family:arial,helvetica,sans-serif" target="_blank">Blog</a></font><br>



<br><br><div class="gmail_quote">On Mon, Mar 12, 2012 at 4:11 PM, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hola El Rug,<br>
<br>
What sort of capacity do people run their servers at?<br>
<br>
I have a Rails app on a 1-core Ubuntu 10.04 VPS with 1GB RAM.  Everything runs on that box: web server (Nginx), app servers (Unicorn with 5 workers), MySQL, background jobs etc etc.<br>
<br>
The RAM usage hovers at around 75%.  I want to make the most of what I've got; is 75% too conservative?  Adding another Unicorn worker would take the RAM usage to about 85%.  I wonder how much memory it's sensible to use up.<br>



<br>
Another thing: from time to time the app renders big PDFs with Prawn, and when this happens the CPU is maxed out for potentially several minutes, adversely affecting responsiveness.  What's a good way to address this?<br>



<br>
Thanks in advance.  Sorry this isn't a job ad ;)<br>
<br>
Cheers<br>
Andy Stewart<br>
<br>
-------<br>
<a href="http://airbladesoftware.com" target="_blank">http://airbladesoftware.com</a><br>
<br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br></div></div>