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

HTTP P95 Latency with socket.io #268

Open
md-seb opened this issue Dec 24, 2019 · 2 comments
Open

HTTP P95 Latency with socket.io #268

md-seb opened this issue Dec 24, 2019 · 2 comments

Comments

@md-seb
Copy link

md-seb commented Dec 24, 2019

When using socket.io as described in socket.io docs, sometimes the connection switches from websockets into long polling. This causes PM2 to report HTTP P95 Latency at around 25 seconds.

As I understand, there is a hook in https://github.com/keymetrics/pm2-io-apm/blob/master/src/metrics/httpMetrics.ts

Is there a way to prevent the long polling requests from skewing the stats?

@DalerAkhmetov
Copy link

+1

@TimCrooker
Copy link

+2

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

3 participants