Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Node.js App with cluster module is meaningless in Heroku?

Heroku can run

Web Dynos

and

Worker Dynos

so that Web Dynos take care of routes

and worker Worker Dynos take care of processing works.

Since there is a unit of Dyno,

It seems using Node.js cluster module is meaningless to me on Heroku.

Because Node.js cluster module is to use all cores of server CPU

and Dyno seems virtual unit of CPU core to me.

Am I right? Or is it still worth to run a node.js app with cluster module?

like image 391
jwchang Avatar asked Jul 10 '12 09:07

jwchang


1 Answers

I've found that it actually worth to use cluster module

because each dyno has 4 CPU cores.


Reference: http://www.quora.com/Heroku/How-powerful-is-one-Heroku-dyno

like image 59
jwchang Avatar answered Sep 20 '22 18:09

jwchang