From: Lawrence Pit <lawrence.pit@gmail.com>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Cc: Nate Clark <nate@pivotallabs.com>
Subject: Re: workers not utilizing multiple CPUs
Date: Tue, 31 May 2011 22:10:35 +1000 [thread overview]
Message-ID: <4DE4DABB.3070503@gmail.com> (raw)
In-Reply-To: <BANLkTinR31Zeufc11sSffXpRiciosTGpUA@mail.gmail.com>
Hi Nate,
> We've been watching the CPU
> graphs from collectd data when the website is under load, and only
> cpu-0 shows any activity ... the others seem to be idle, or minimally
> used by other services.
I don't think you can rely on the numbers collectd (nor top) gives you
when measuring from within the hypervisor powering your EC2 instance.
The only reliable source of CPU utilization is Cloudwatch, as that
measures outside your instances.
I've used an array of xlarge instances myself, each running 17 unicorn
workers serving a rails app, consuming 4GB, leaving 3GB, no swap. Worked
well for us under high load. It couldn't have handled that if all 17
unicorn workers would've been served by 1 of those 8 virtual cores.
Cheers,
Lawrence
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
next prev parent reply other threads:[~2011-05-31 12:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 9:02 workers not utilizing multiple CPUs Nate Clark
2011-05-31 12:10 ` Lawrence Pit [this message]
2011-05-31 12:20 ` Nate Clark
2011-05-31 14:07 ` Clifton King
2011-05-31 15:48 ` Eric Wong
2011-05-31 15:55 ` Clifton King
[not found] ` <BANLkTikC5D+0pUDRDgvQbzu=dpwmdKNY=A@mail.gmail.com>
2011-06-01 6:51 ` Nate Clark
2011-05-31 15:27 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DE4DABB.3070503@gmail.com \
--to=lawrence.pit@gmail.com \
--cc=mongrel-unicorn@rubyforge.org \
--cc=nate@pivotallabs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).