项目背景
阿里云NodeJS性能监控平台:https://help.aliyun.com/product/60298.html。
公司内部还没有,只能手动搭建。
本地环境
node-clinic做性能测试报告:https://www.5axxw.com/wiki/content/0dzqnr
线上环境性能监控常见的方案
PM2+ELK(ELK Stack: ElasticSearch, LogStash, Kibana, Beats)
PM2:https://juejin.cn/post/6844903816454733837#heading-0
ELK:https://zhuanlan.zhihu.com/p/57340438
1、问题定位工具散乱、不统一
2、定位问题流程复杂
=> 一体化的运维平台
数据持久化层面的优化:
- 数据缓冲
- 批量入库
- 降级重传
redis自动扩缩容:https://blog.csdn.net/weixin_45912624/article/details/114697174
