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

numCPUs is not used anywhere #7

Closed
Morriz opened this issue Jun 17, 2013 · 3 comments
Closed

numCPUs is not used anywhere #7

Morriz opened this issue Jun 17, 2013 · 3 comments

Comments

@Morriz
Copy link

Morriz commented Jun 17, 2013

Hi, I was wondering if it would be possible to max out the number of instances (i.e. by using param 'max') against the available number of cpus. You seem to are ready for this by having the following line in God.js (line 5):

var numCPUs = require('os').cpus().length;

However, it is never used.

What is the idea?

@Unitech
Copy link
Owner

Unitech commented Jun 19, 2013

Hey,

Yes at the beginning pm2 was directly poping X numbers of processes depending on the number of CPU.
I will add a CLI option to pop the max numbers of processes

Thanks

@Unitech
Copy link
Owner

Unitech commented Jun 23, 2013

fixed in 0.4.4, now you can add the option max to -i

@Unitech Unitech closed this as completed Jun 23, 2013
@Morriz
Copy link
Author

Morriz commented Jun 23, 2013

Thanks for implementing these request so quick dude!

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

No branches or pull requests

2 participants