[LRUG] Server capacity

George Sheppard george at fuzzmonkey.co.uk
Mon Mar 12 09:33:47 PDT 2012


Hey Andy,

Have you done any performance testing with different numbers of unicorn workers? I was under the impression that with Unicorn the number of workers should be roughly equal to number of cores available. When i've experimented in the past i got better performance out of fewer workers on a low core box.

> 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?

Upgrade your VPS to have more cores ;)

Regards,

George

On 12 Mar 2012, at 16:11, Andrew Stewart wrote:

> Hola El Rug,
> 
> What sort of capacity do people run their servers at?
> 
> 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.
> 
> 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.
> 
> 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?
> 
> Thanks in advance.  Sorry this isn't a job ad ;)
> 
> Cheers
> Andy Stewart
> 
> -------
> http://airbladesoftware.com
> 
> 
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org




More information about the Chat mailing list