How many child_processes should I fork() in node.js?

前端 未结 2 2089
终归单人心
终归单人心 2021-02-08 10:01

My question is quite simple. though, it may require different variable to be answered (i guess)

I\'m playing around with node.js and I\'m thinking of how to use it in a

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 11:03

    In Node.js example, they want each core to run a single process only. There is no technical restriction on how many number of workers per core, so you can run as many as you can as long as your systerm can handle.

    However, running more than one process per core does not improve performance of the app.

    hope it helps!

提交回复
热议问题