Node Hosting advice.

89 views
Skip to first unread message

Amal

unread,
Feb 21, 2012, 2:19:43 PM2/21/12
to nod...@googlegroups.com

I am working on a node web app with a very simple architecture. The architecture is as follows:
- MongoDB as the database
- Nginx as the web server and as the reverse proxy.
- ExpressJs for the app server.


I was planning to use 2 large Amazon Large Ec2 instances for the same. One large instance for the DB and another for the Node App.
But I got a few doubts.  Doubts are :

- Large instance has 4 CPU EC2 units. But since Node does not yet use multi-cores well, will it make sense to use a Large instance for the same. Or Should I try to run multiple small instances.
- Has anyone ever had experience in running Node on EC2 Small instance. How many users does it support simultaneously ?

Amal.

Joshua Kehn

unread,
Feb 21, 2012, 5:43:01 PM2/21/12
to nod...@googlegroups.com
I like using Rackspace's cloud servers. Another idea would be to look at nodejitsu's platform and see if you can get in on the beta.

Regards,

–Josh
____________________________________
Joshua Kehn | @joshkehn
http://joshuakehn.com

--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Murvin Lai

unread,
Feb 21, 2012, 5:56:34 PM2/21/12
to nod...@googlegroups.com
Recommendation:
MongoDB: use the Instance wtih more memory.  It is memory intensive. (For single Mongo Server), and also one EBS for actual storage of the data (file).     i.e. you need 1 Ec2 (high memory) with 1 EBS.
Node.js / expressJS : use a more CPU high instance. i.e. you need 1Ec2 (high CPU).   You probalby have 4CPU or more, so you can run cluster and utilize all CPU. 

How many users?  A lot.  i mean. it can take at least 2000+ req/sec  with one CPU.   

Other hints:  for Mongo, you need to also change your EC2 configure so that it has ulimit over 20000 for optimal performance. 
same as Node.js, better to set ulimit over 2000 for each CPU.  or if you do http remote call from node.js, then you need to increase ulimit (# of socket / file open) to over 10000. 




Amal.

--

Joshua Holbrook

unread,
Feb 21, 2012, 6:05:37 PM2/21/12
to nod...@googlegroups.com
> see if you can get in on the beta.

protip: join #nodejitsu on freenode and ask about the beta, and
there's a good chance you'll get the mad hookups.

--Josh

--
Joshua Holbrook
Engineer
Nodejitsu Inc.
jo...@nodejitsu.com

Reply all
Reply to author
Forward
0 new messages