-
Notifications
You must be signed in to change notification settings - Fork 57
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
[WIP] 纳入对 epoll 一轮循环耗时的监控 #143
Comments
是指 uv_metrics_idle_time 吗 |
其实是 loop 几个阶段耗时累加,正好有个对应的 case 需要这种监控才方便告警 |
看了下 |
监控是希望看 loop 利用率吗?比如这种 https://nodesource.com/blog/event-loop-utilization-nodejs ? |
我觉得从采集的间隔维度来说(比如 1min 为最小间隔),它提到的 elu 和 cpu 是不会有特别大的波动的;这个 feat 更希望能获取到每次 loop 循环的 cpu 具体时间开销,那么可以在单次 loop 阻塞(但是 1min 维度平均负载不高)时提供一些有用的告警信息。 实际上确实在生产中遇到了 1min 内仅有几次 loop 阻塞严重产生的 rpc 超时问题,此时抓 profile 是看不到太多细节的(时间被拉长) |
这个说的不对,cpu 还包含 gc 那些 |
感觉这种场景检测 event loop delay 就能满足需求的样子,比如设置一个 repeated timer,看 timer 延迟,如果高的话就记录报告。e.g. https://github.com/tj/node-blocked |
有道理,我来研究下 |
ELU 也可以作为一个观测指标监控起来。 |
嗯,这个 issue 计划增加 loop delay 和 elu 的指标监控 |
No description provided.
The text was updated successfully, but these errors were encountered: