<br><br><div class="gmail_quote">On 13 March 2012 00:11, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com">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>

</blockquote><div><br></div><div>I'd normally push it to the limit.</div><div><br></div><div>Most likely your app server's memory usage will be pretty constant,</div><div>keep watching new relic,</div><div>but most likely adding another 1 or 2 unicorns will be a stable solution. </div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>

</blockquote><div><br></div><div>The easy answer would be to keep these offline tasks on another machine.</div><div>Keep a shared queue between the two machines</div><div>and then do the work on your "worker" server,</div>

<div>push the resulting pdf out to S3 and serve it from the "app" server when it's done. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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">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>