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

Add support for negative instances count #1154

Closed
shaharmor opened this issue Apr 8, 2015 · 2 comments
Closed

Add support for negative instances count #1154

shaharmor opened this issue Apr 8, 2015 · 2 comments

Comments

@shaharmor
Copy link
Contributor

Hi,

I think it would be nice to have an option for the instances option to be negative (for example -2), which will then start N-2 instances, N being the cpu count.

So on an 8 core server, i could set instances to "-2", and it will spawn 6 instances, and on a 4 core server it will spawn two.

What do you think?

jshkurti added a commit that referenced this issue Apr 8, 2015
@jshkurti
Copy link
Contributor

jshkurti commented Apr 8, 2015

Here we go ;)
npm i -g git://github.com/Unitech/PM2#development

@jshkurti jshkurti closed this as completed Apr 9, 2015
@shaharmor
Copy link
Contributor Author

Awersome. Thanks a lot.

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

No branches or pull requests

2 participants