I need nodejs and mongodb to handle 5000 requests per second

mongodbnode.jsscalability

As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually.

My initial thoughts are to put each on separate machines, though I'm not sure if I should start with small machines and prepare to scale out soon, or start with larger machines and scale out later.

Either way I fully expect to eventually scale these two out, but Im wondering what the upscale trigger would be. Would I scale on CPU or memory usage? If on CPU what should I try to keep average CPU usage under?

Oh and yes I will be buying support from 10gen so they can review my document model and ensure that I'm storing data in the most efficient way.

Best Answer

"Generally speaking", there is no number you should keep your CPU under. If you have a quad-core system and your application is performing well at a load average of 12, then more power to you. You really need to test and determine these things yourself. Much more is reflected in CPU load averages than just what the CPU is doing.

Related Topic