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

prometheus数据上报问题 #1323

Open
soarding opened this issue Oct 12, 2021 · 7 comments
Open

prometheus数据上报问题 #1323

soarding opened this issue Oct 12, 2021 · 7 comments
Assignees

Comments

@soarding
Copy link

  • Node Version:
  • Egg Version:
  • Plugin Name: prometheus
  • Plugin Version:
  • Platform:
  • Mini Showcase Repository:

使用prometheus插件中,我观察到代码中使用request http://unix:sockFile的方式汇总prometheus数据,遇到qps非常高的场景中,请求sock会报出EAGAIN/ECONNREFUSED,请问这里是否考虑合并上报数据呢

@czy88840616
Copy link
Member

大概有多大的量?

@soarding
Copy link
Author

大概是3000qps,应该是http.createServer.listen(sockFile)的限制

@caroline73
Copy link

请问这个可以修改成端口号的方式吗

@czy88840616
Copy link
Member

当前是 IPC 通信,unix socket 做转发。

@soarding
Copy link
Author

soarding commented Oct 21, 2021

这里其实就是单进程并发连接数到限制,一般是128

@czy88840616
Copy link
Member

可能需要先聚合了。

@stone-jin
Copy link
Member

@soarding 嗯,刚刚思考了一下,可能要测试一下性能。

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

No branches or pull requests

4 participants