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

PM2 running more than 1 clustered process #1

Closed
rodenj1 opened this issue Dec 12, 2018 · 3 comments
Closed

PM2 running more than 1 clustered process #1

rodenj1 opened this issue Dec 12, 2018 · 3 comments

Comments

@rodenj1
Copy link

rodenj1 commented Dec 12, 2018

First off, just wanted to say I have been looking for something like this for a while! Nice work!

It looks like as part of your metric gathering process that you send a message to all PM2 controlled process to report their stats and this works great if you only have 1 clustered process running in PM2. If you have multiple, it sends a request to all and waits for a reply. If the other process is not running your module, it does not respond causing a timeout. If it is running your module, it will inadvertently report stats for a process a different process. I was wondering if you could add a filter to only send a message to process with the same process name "process.env.name". I figure a quick filter under getProcList would do the trick. :)

@JakeH
Copy link
Owner

JakeH commented Dec 12, 2018 via email

@JakeH JakeH closed this as completed in a3adc64 Dec 12, 2018
@JakeH
Copy link
Owner

JakeH commented Dec 12, 2018

A couple of days, or 7 hours.

NPM package version is 1.0.6. Please let me know if this works for you now.

@rodenj1
Copy link
Author

rodenj1 commented Dec 12, 2018 via email

This issue was closed.
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