PDF (1172K)
摘要
在微服务架构下,当某节点出现性能衰退或隐蔽性故障时,级联效应容易导致全链路瘫痪,而频繁的全量探测会带来严重的系统资源开销.针对这一难题,本文设计了一种微服务网络下基于“最小探针”的故障精确定位、服务隔离与拓扑自适应收敛机制.该机制采用最低优先级的虚拟探针对可疑高方差节点实施连续探测,结合探针响应超时判定故障节点;随后通过断路器剥离故障服务,并配合动态拉起、限流及最小代价拓扑收敛算法,保障微服务的高可用性.实验表明,该机制在保持极低探针开销的同时,能够实现秒级的故障隔离与拓扑重建.
Abstract
Under microservice architecture, when a node suffers performance degradation or hidden failure, cascading effects can easily paralyze the entire call chain, while frequent full probes bring heavy system overhead. To solve this problem, this paper designs a precise fault location, service isolation, and topology convergence mechanism based on 'minimum probe' in microservice networks. This mechanism adopts lowest-priority virtual probes to perform continuous detection on suspicious high-variance nodes, determining faulty nodes through response timeouts; then isolates faulty services via circuit breakers, and cooperates with dynamic scaling, rate limiting, and minimal-cost topology convergence algorithms to ensure high availability. Experiments demonstrate that this mechanism achieves second-level fault isolation and topology reconstruction while maintaining extremely low probe overhead.
关键词
Key words
[Author(id=1330220077312799289, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1330220077379908157, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, authorId=1330220077312799289, language=EN, stringName=Teng Zhou, firstName=Teng, middleName=null, lastName=Zhou, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=Nanjing Vocational and Technical College of Transportation, Nanjing, Jiangsu, 211188, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1330220077426045503, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, authorId=1330220077312799289, language=CN, stringName=周腾, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=南京交通职业技术学院, 中国·江苏 南京 211188, bio={"content":"周腾(1989-),男,中国江苏丰县人,硕士,高级工程师,从事大型信息系统维护与运营管理研究.
"}, bioImg=null, bioContent=周腾(1989-),男,中国江苏丰县人,硕士,高级工程师,从事大型信息系统维护与运营管理研究.
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1330220077233107508, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, xref=null, ext=[AuthorCompanyExt(id=1330220077249884726, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, companyId=1330220077233107508, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=Nanjing Vocational and Technical College of Transportation, Nanjing, Jiangsu, 211188, China), AuthorCompanyExt(id=1330220077266661943, tenantId=1045748351789510663, journalId=1327663034936098855, articleId=1330177841279095166, companyId=1330220077233107508, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=南京交通职业技术学院, 中国·江苏 南京 211188)])])]
周腾.
微服务网络中基于最小探针的故障隔离与拓扑收敛机制设计[J].
信息科学与工程研究, 2026, 7(10): 34-37 DOI:10.12349/iser.v7i10.11963
| [1] |
Fowler M, Lewis J. Microservices: a definition of this new architectural term[EB/OL].(2014-03-25). https://martinfowler.com/articles/microservices.html.
|
| [2] |
Newman S. Building Microservices: Designing Fine-Grained Systems[M]. 2nd ed. Sebastopol: O'Reilly Media, 2021.
|
| [3] |
王璐, 姜宇轩, 李青山, 等. 微服务故障检测研究综述[J]. 计算机学报, 2023, 46(11): 2342-2369.
|
| [4] |
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.
|
| [5] |
Nygard M T. Release It!: Design and Deploy Production-Ready Software[M]. 2nd ed. Raleigh: Pragmatic Bookshelf, 2018.
|
| [6] |
贾统, 李影, 吴中海. 基于日志数据的分布式软件系统故障诊断综述[J]. 软件学报, 2020, 31(7): 1997-2018.
|
| [7] |
于庆洋, 白晓颖, 李明杰, 等. 基于调用链控制流分析的大型微服务系统性能建模与异常定位[J]. 软件学报, 2022, 33(5): 1849-1864.
|
| [8] |
方浩天, 李春花, 王清, 等. 一种基于深度学习的微服务性能异常检测方法[J]. 计算机研究与发展, 2024, 61(3): 600-613.
|
| [9] |
王子勇, 王焘, 张文博, 等. 一种基于执行轨迹监测的微服务故障诊断方法[J]. 软件学报, 2017, 28(6): 1435-1454.
|
| [10] |
王焘, 张树东, 李安, 等. 基于异常传播的微服务故障诊断方法[J]. 计算机科学, 2021, 48(12): 8-16.
|
| [11] |
杨勇, 李影, 吴中海. 分布式追踪技术综述[J]. 软件学报, 2020, 31(7): 2019-2039.
|
| [12] |
张齐勋, 吴一凡, 杨勇, 等. 微服务系统服务依赖发现技术综述[J]. 软件学报, 2024, 35(1): 118-135.
|
| [13] |
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.
|
| [14] |
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.
|
| [15] |
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.
|
| [16] |
李亚晓, 李青山, 王璐, 等. AmazeMap: 基于多层次影响图的微服务故障定位方法[J]. 软件学报, 2024, 35(7): 3115-3140.
|
| [17] |
包航宇, 殷康璘, 曹立, 等. 智能运维的实践: 现状与标准化[J]. 软件学报, 2023, 34(9): 4069-4095.
|
| [18] |
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.
|
基金资助
南京交通职业技术学院科研基金项目《最小业务探针在复杂微服务系统中的故障检测与应用》