Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify support for managing multiple node processes #129

Closed
tjanczuk opened this issue Dec 21, 2011 · 3 comments
Closed

simplify support for managing multiple node processes #129

tjanczuk opened this issue Dec 21, 2011 · 3 comments
Labels

Comments

@tjanczuk
Copy link
Owner

This is to

  1. pre-create the configured number of processes per application when the first message arrives; change the default to 1
  2. allow dynamic determination of the number of processes to create based on the number of processors on the machine
  3. use round robin dispatching for subsequent messages
@tjanczuk
Copy link
Owner Author

  1. Replacing iisnode/@maxProcessCountPerApplication setting with iisnode/@nodeProcessCountPerApplication. This controls how many node.exe processes will be activated per each node.js application. Default is 1. Setting it to 0 will default to creating as many node.exe processes as there are processors on the machine. Processes are created when the first message targeting the application arrives.
  2. Messages are dispatched to processes using round robin logic.

@compulim
Copy link

Why this option is not default to 0?

@tjanczuk
Copy link
Owner Author

Most iisnode defaults attempt to optimize the development experience and should be changed for production (e.g. debugging is enabled by default). Presumably troubleshooting one process instead of several during development provides a better development time experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants