On Thu, Dec 20, 2012 at 10:33 AM, Christopher Matheson
<[email protected]> wrote:
> Hi all, This is my first post so please excuse if i've missed some
> etiquette.
>
> Im currently developing my first 'Production' server that will be Node.js
> running on a PaaS (likely a cloud foundry based solution) and while playing
> about with the command line interface i found out something interesting.
> Each "instance" of my application reports having 8 cores avaliable.
>
> +----------+-------------+----------------+--------------+----------------+
> | Instance | CPU (Cores) | Memory (limit) | Disk (limit) | Uptime         |
> +----------+-------------+----------------+--------------+----------------+
> | 0        | 0% (8)      | 20.1M (64M)    | 30.7M (1G)   | 0d:17h:37m:6s  |
> | 1        | 0% (8)      | 20.6M (64M)    | 0B (1G)      | 0d:17h:51m:20s |
> | 2        | 0% (8)      | 19.7M (64M)    | 30.7M (1G)   | 0d:17h:51m:20s |
> | 3        | 0% (8)      | 19.6M (64M)    | 30.7M (1G)   | 0d:17h:26m:0s  |
> | 4        | 0% (8)      | 20.2M (64M)    | 30.7M (1G)   | 0d:17h:26m:0s  |
> +----------+-------------+----------------+--------------+----------------+
>
> Now my understanding of cloud foundry is only consumer at best, i know that
> is essentially a virtual machine running some sort of OS with node
> installed.
>
> What i am wondering now is when i add more "instances" of my application is
> this the same as just having another thread of me node program and these are
> the same 8 cores that each thread can see? or am i actually getting a whole
> other VM with its own 8 cores (seems unlikely).
>
> Also if this is the case (that with five instances i actually have 40 cores)
> should i be doing my own thing in my node app to start 7 more clones of my
> node app to get the best usage out of the resources?
>
> Love to hear anyone's thoughts on this
>
> Chris

You should really be asking your PaaS provider that.  Unless
explicitly stated otherwise, it's generally safe to assume that the
physical machine your application runs on is heavily oversubscribed -
but by how much is anyone's guess.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to