-
Notifications
You must be signed in to change notification settings - Fork 35
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
Metrics with pm2 cluster #89
Comments
Each worker in the cluster mode behave like a standalone process so there are no reason switching to fork -> cluster change something, i guess you had more requests when you checked the probe. |
I have exactly the same issue - I'm running a stable load test using jMeter, and the reported RPS drops by almost the number of processes:
Average request time is ~30-40ms - so I don;t think this should affect that I'm comparing requests per second (PMX) against responses received per second (jMeter) My custom metric code:
It is almost like the metrics are being aggregated per process.. although I have no idea which process's metric is being reported back by PMX. |
My issue is my mistake - I am not accumulating the metrics from each process when reading the report back from PMX.. |
So after switching from fork to cluster metrics works incorrectly (rps for example gone from 10 to 1.4 in 8 clusters), how to solve that? It's inccorect just to multiply by 8 I think.
The text was updated successfully, but these errors were encountered: