LearnBoost / cluster

Node.JS multi-core server manager with plugins support.
http://learnboost.github.com/cluster
MIT License
2.29k stars 159 forks source link

spawn(-x) #46

Closed dvv closed 13 years ago

dvv commented 13 years ago

Feasible to make spawn honor negative numbers to decrease the number of workers?

--Vladimir++

tj commented 13 years ago

yeah certainly could do

dvv commented 13 years ago

I drafted in the pull request

TheDeveloper commented 13 years ago

Currently calling spawn(-1) appears to spawn an infinite number of workers. Is there a way to currently decrease the number of workers in realtime, or can you only add them?

tj commented 13 years ago

Added spawn(-n) support. Closed by 3aa1533cef115961c50d963f4b1d83df18589aa8