arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00080cs.SEcs.PF
收藏

一种关于架构拓扑如何影响微服务性能和能耗的实证研究

An Empirical Study on How Architectural Topology Affects Microservice Performance and Energy Usage

Vrije Universiteit Amsterdam(阿姆斯特丹自由大学)

Irena Ristova, Vincenzo Stoico

AI总结:

本文通过实证研究探讨了微服务架构拓扑对性能和能耗的影响,分析了六种典型拓扑结构在不同规模下的表现,发现拓扑结构显著影响能耗和性能,Probabilistic和Parallel Fan-Out在CPU负载下最为节能。

摘要:

微服务架构因其可扩展性、弹性和可维护性成为现代软件系统的核心,但其在云原生环境中的兴起引发了能源效率问题。尽管先前研究关注微服务分解和部署,但拓扑结构(服务间的结构安排和交互模式)对能源效率的影响仍待探索。本研究量化了六种典型拓扑(Sequential Fan-Out, Parallel Fan-Out, Chain, Hierarchical, Probabilistic, Mesh)在5-20个服务规模下的能耗和性能,使用μBench框架进行测量。结果表明,拓扑结构在研究条件下显著影响微服务的能耗。随着系统规模增加,能耗增长,其中密集的Mesh和Chain拓扑增长最剧烈。Mesh拓扑整体表现最差,具有低吞吐量、长响应时间和高故障率。Hierarchical、Chain和Fan-Out设计在性能和能耗之间取得了更好的平衡。随着系统规模扩大,指标趋于收敛,Probabilistic和Parallel Fan-Out在CPU负载下成为最节能的拓扑结构。这些结果指导了更环保的微服务架构设计,并为未来研究工作负载和部署影响提供了基准。

英文摘要:

Microservice architectures form the backbone of modern software systems for their scalability, resilience, and maintainability, but their rise in cloud-native environments raises energy efficiency concerns. While prior research addresses microservice decomposition and placement, the impact of topology, the structural arrangement and interaction pattern among services, on energy efficiency remains largely underexplored. This study quantifies the impact of topologies on energy efficiency and performance across six canonical ones (Sequential Fan-Out, Parallel Fan-Out, Chain, Hierarchical, Probabilistic, Mesh), each instantiated at 5-, 10-, and 20-service scales using the $μ\text{Bench}$ framework. We measure throughput, response time, energy usage, CPU utilization, and failure rates under an identical workload. The results indicate that topology influences the energy efficiency of microservices under the studied conditions. As system size increases, energy consumption grows, with the steepest rise observed in dense Mesh and Chain topologies. Mesh topologies perform worst overall, with low throughput, long response times, and high failure rates. Hierarchical, Chain, and Fan-Out designs balance performance and energy use better. As systems scale, metrics converge, with Probabilistic and Parallel Fan-Out emerging as the most energy-efficient under CPU-bound loads. These results guide greener microservice architecture design and serve as a baseline for future research on workload and deployment impacts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑