研究文章

一种微服务架构下基于自学习调用链拓扑与性能方差的故障检测方法

摘要

针对复杂微服务架构下节点众多、服务调用关系呈网状交织导致故障难以快速定位以及传统监控“事后告警、阈值失效”的问题,本文提出了一种微服务架构下基于自学习调用链拓扑与性能方差的故障检测方法。该方法通过在服务入口注入动态序列号(Sid)并配合非接口服务上报机制,实现了业务调用链拓扑结构的无侵入式自动学习与动态收敛;同时,构建了结合CPU、内存和磁盘IO的硬件瞬时性能综合评估模型,利用滑动方差学习算法自适应捕获微服务性能波动边界;基于该边界驱动全流程业务抽样探针与动态拟合,实现故障的先前预测与精准定位。在实际运维环境中的应用表明,该方法能有效降低无效告警,显著缩短微服务故障根因定位时间。

关键词

微服务架构;调用链拓扑;自学习;性能方差;故障检测;采样探针

参考

Newman S. Building Microservices: Designing Fine-Grained Systems[M]. 2nd ed. Sebastopol: O’Reilly Media, 2021.

Fowler M, Lewis J. Microservices: a definition of this new architectural term[EB/OL]. (2014-03-25). https://martinfowler.com/articles/microservices.html.

王璐, 姜宇轩, 李青山, 等. 微服务故障检测研究综述[J]. 计算机学报, 2023, 46(11): 2342-2369.

贾统, 李影, 吴中海. 基于日志数据的分布式软件系统故障诊断综述[J]. 软件学报, 2020, 31(7): 1997-2018.

Soldani J, Brogi A. Anomaly Detection and Failure Root Cause Analysis in (Micro) Service-Based Cloud Applications: A Survey[J]. ACM Computing Surveys, 2022, 55(3): 1-39.

Sigelman B H, Barroso L A, Burrows M, et al. Dapper, a Large-Scale Distributed Systems Tracing Infrastructure[R]. Google Technical Report, 2010.

杨勇, 李影, 吴中海. 分布式追踪技术综述[J]. 软件学报, 2020, 31(7): 2019-2039.

张齐勋, 吴一凡, 杨勇, 等. 微服务系统服务依赖发现技术综述[J]. 软件学报, 2024, 35(1): 118-135.

王子勇, 王焘, 张文博, 等. 一种基于执行轨迹监测的微服务故障诊断方法[J]. 软件学报, 2017, 28(6): 1435-1454.

于庆洋, 白晓颖, 李明杰, 等. 基于调用链控制流分析的大型微服务系统性能建模与异常定位[J]. 软件学报, 2022, 33(5): 1849-1864.

方浩天, 李春花, 王清, 等. 一种基于深度学习的微服务性能异常检测方法[J]. 计算机研究与发展, 2024, 61(3): 600-613.

He Q, Xie X, Wang Y, et al. Localizing Runtime Anomalies in Service-Oriented Systems[J]. IEEE Transactions on Services Computing, 2017, 10(1): 94-106.

Zhou X, Peng X, Xie T, et al. Latent Error Prediction and Fault Localization for Microservice Apps by Learning from System Trace Logs[C]//Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis (ESEC/FSE). 2019: 683-694.

Liu P, Xu H, Ouyang Q, et al. Unsupervised Detection and Localization of Individual Anomalous Services Based on Trace Logging[C]//IEEE 31st International Symposium on Software Reliability Engineering (ISSRE). 2020: 353-364.

王焘, 张树东, 李安, 等. 基于异常传播的微服务故障诊断方法[J]. 计算机科学, 2021, 48(12): 8-16.

李亚晓, 李青山, 王璐, 等. AmazeMap: 基于多层次影响图的微服务故障定位方法[J]. 软件学报, 2024, 35(7): 3115-3140.

包航宇, 殷康璘, 曹立, 等. 智能运维的实践: 现状与标准化[J]. 软件学报, 2023, 34(9): 4069-4095.

Li Z, Yu J, Huang Z, et al. Surveying Root Cause Analysis Techniques: A Comprehensive Review of Aspects for Multi-Service Applications[J]. IEEE Transactions on Services Computing, 2026, 19(1): 808-825.

Refbacks

  • 当前没有refback。
版权所有(c)2026 腾 周
Creative Commons License
此作品已接受知识共享署名-非商业性使用 4.0国际许可协议的许可。