Multivariate anomaly detection and root cause analysis of energy issues in microservice-based systems

IF 4.1 2区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Berta Rodriguez Sanchez , Luca Giamattei , Antonio Guerriero , Roberto Pietrantuono , Ivano Malavolta
{"title":"Multivariate anomaly detection and root cause analysis of energy issues in microservice-based systems","authors":"Berta Rodriguez Sanchez ,&nbsp;Luca Giamattei ,&nbsp;Antonio Guerriero ,&nbsp;Roberto Pietrantuono ,&nbsp;Ivano Malavolta","doi":"10.1016/j.jss.2025.112626","DOIUrl":null,"url":null,"abstract":"<div><h3>Context:</h3><div>Microservice-based systems have become the architecture style of choice for modern applications, offering scalability, flexibility, and resilience. However, their distributed nature leads to increased resource consumption and energy inefficiencies, posing challenges for maintaining sustainable operations. Accurate anomaly detection (AD) and root cause analysis (RCA) tools are critical for diagnosing energy consumption issues in these systems, yet existing solutions often lack focus on energy metrics.</div></div><div><h3>Goal:</h3><div>This study aims to evaluate the effectiveness of AD and RCA algorithms in identifying and diagnosing performance-related energy consumption anomalies in microservice-based systems.</div></div><div><h3>Method:</h3><div>Two representative systems, Sock Shop and Train Ticket, are deployed under controlled environments. Then, anomalies are deliberately introduced by stressing at the same time CPU, memory, and disk resources. The data collection is conducted using Prometheus for performance metrics and Scaphandre for energy metrics. Once normal and anomalous datasets are constructed for each system, the study evaluates five AD algorithms (Birch, iForest, KNN, LOF, and SVM) and four RCA algorithms (MicroRCA, CausalRCA, CIRCA, and RCD) based on their precision, recall, and scalability across varied scenarios and workloads.</div></div><div><h3>Results:</h3><div>The experiment reveals that overall, iForest is the most effective AD algorithms in detecting energy anomalies (0.59 F-Score in Sock Shop and 0.634 F-Score in Train Ticket). In particular, iForest performs better in precision when the user load is high (1000 concurrent users). For RCA, CIRCA performs well in identifying root causes in smaller systems, while RCD is more scalable for larger and more complex systems.</div></div><div><h3>Conclusions:</h3><div>The findings of this study provide insights for both researchers and practitioners. In the context of our experiment, AD algorithms tend to perform relatively well, whereas RCA algorithms tend to be imprecise in localizing energy issues.</div></div>","PeriodicalId":51099,"journal":{"name":"Journal of Systems and Software","volume":"231 ","pages":"Article 112626"},"PeriodicalIF":4.1000,"publicationDate":"2025-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Systems and Software","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S016412122500295X","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Context:

Microservice-based systems have become the architecture style of choice for modern applications, offering scalability, flexibility, and resilience. However, their distributed nature leads to increased resource consumption and energy inefficiencies, posing challenges for maintaining sustainable operations. Accurate anomaly detection (AD) and root cause analysis (RCA) tools are critical for diagnosing energy consumption issues in these systems, yet existing solutions often lack focus on energy metrics.

Goal:

This study aims to evaluate the effectiveness of AD and RCA algorithms in identifying and diagnosing performance-related energy consumption anomalies in microservice-based systems.

Method:

Two representative systems, Sock Shop and Train Ticket, are deployed under controlled environments. Then, anomalies are deliberately introduced by stressing at the same time CPU, memory, and disk resources. The data collection is conducted using Prometheus for performance metrics and Scaphandre for energy metrics. Once normal and anomalous datasets are constructed for each system, the study evaluates five AD algorithms (Birch, iForest, KNN, LOF, and SVM) and four RCA algorithms (MicroRCA, CausalRCA, CIRCA, and RCD) based on their precision, recall, and scalability across varied scenarios and workloads.

Results:

The experiment reveals that overall, iForest is the most effective AD algorithms in detecting energy anomalies (0.59 F-Score in Sock Shop and 0.634 F-Score in Train Ticket). In particular, iForest performs better in precision when the user load is high (1000 concurrent users). For RCA, CIRCA performs well in identifying root causes in smaller systems, while RCD is more scalable for larger and more complex systems.

Conclusions:

The findings of this study provide insights for both researchers and practitioners. In the context of our experiment, AD algorithms tend to perform relatively well, whereas RCA algorithms tend to be imprecise in localizing energy issues.
基于微服务的系统中能源问题的多元异常检测和根本原因分析
上下文:基于微服务的系统已经成为现代应用程序的架构风格选择,它提供了可伸缩性、灵活性和弹性。然而,它们的分布式特性导致资源消耗增加和能源效率低下,对维持可持续运营提出了挑战。准确的异常检测(AD)和根本原因分析(RCA)工具对于诊断这些系统中的能耗问题至关重要,但现有的解决方案往往缺乏对能耗指标的关注。目的:本研究旨在评估AD和RCA算法在识别和诊断基于微服务的系统中与性能相关的能耗异常方面的有效性。方法:在受控环境下部署两个具有代表性的系统,Sock Shop和Train Ticket。然后,通过同时强调CPU、内存和磁盘资源,故意引入异常。数据收集使用Prometheus进行性能度量,使用Scaphandre进行能量度量。一旦为每个系统构建了正常和异常数据集,该研究评估了五种AD算法(Birch, ifforest, KNN, LOF和SVM)和四种RCA算法(MicroRCA, CausalRCA, CIRCA和RCD),基于它们的精度,召回率和不同场景和工作负载的可扩展性。结果:实验表明,总体而言,ifforest算法在能量异常检测方面是最有效的AD算法(Sock Shop中的F-Score为0.59,Train Ticket中的F-Score为0.634)。特别是,当用户负载很高(1000个并发用户)时,ifforest在精度方面表现得更好。对于RCA, CIRCA在小型系统中识别根本原因方面表现良好,而RCD在大型和更复杂的系统中更具可扩展性。结论:本研究的发现为研究人员和从业人员提供了见解。在我们的实验中,AD算法往往表现得相对较好,而RCA算法在定位能量问题时往往不精确。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Systems and Software
Journal of Systems and Software 工程技术-计算机:理论方法
CiteScore
8.60
自引率
5.70%
发文量
193
审稿时长
16 weeks
期刊介绍: The Journal of Systems and Software publishes papers covering all aspects of software engineering and related hardware-software-systems issues. All articles should include a validation of the idea presented, e.g. through case studies, experiments, or systematic comparisons with other approaches already in practice. Topics of interest include, but are not limited to: •Methods and tools for, and empirical studies on, software requirements, design, architecture, verification and validation, maintenance and evolution •Agile, model-driven, service-oriented, open source and global software development •Approaches for mobile, multiprocessing, real-time, distributed, cloud-based, dependable and virtualized systems •Human factors and management concerns of software development •Data management and big data issues of software systems •Metrics and evaluation, data mining of software development resources •Business and economic aspects of software development processes The journal welcomes state-of-the-art surveys and reports of practical experience for all of these topics.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信