Atys:一种用于识别大规模云微服务中热点函数的高效性能剖析框架
Atys: An Efficient Profiling Framework for Identifying Hotspot Functions in Large-scale Cloud Microservices
AI总结:
本文提出Atys,一种高效性能剖析框架,通过语言无关适配、两级聚合、函数选择性剪枝和频率动态调整,在保持准确性的同时显著降低大规模云微服务热点函数识别成本。
摘要:
为处理高并发请求,大规模服务由部署在云中的数千个实例组成。这些服务采用多种编程语言,并以封装容器的形式分布在各个节点上。鉴于其庞大规模,即使是微小的性能提升也能带来显著的成本降低。在本文中,我们介绍了Atys1,一个专为识别大规模分布式服务中热点函数而设计的高效性能剖析框架。Atys具有四个关键特性。首先,它实现了一种语言无关的适配机制,以支持多语言微服务。其次,引入了一种两级聚合方法,以提供火焰图的全面概览。第三,我们提出了一种函数选择性剪枝(FSP)策略,以提高聚合剖析结果的效率。最后,我们开发了一种频率动态调整(FDA)方案,该方案根据服务状态动态修改采样频率,在保持准确性的同时有效降低剖析成本。在两个基准测试上的集群规模实验表明,FSP策略在堆栈轨迹聚合中实现了6.8%的时间减少,且平均绝对百分比误差(MAPE)仅为0.58%。此外,FDA方案确保均方误差(MSE)与高采样率下的水平相当,同时实现了87.6%的成本降低。
英文摘要:
To handle the high volume of requests, large-scale services are comprised of thousands of instances deployed in clouds. These services utilize diverse programming languages and are distributed across various nodes as encapsulated containers. Given their vast scale, even minor performance enhancements can lead to significant cost reductions. In this paper, we introduce Atys1, an efficient profiling framework specifically designed to identify hotspot functions within large-scale distributed services. Atys presents four key features. First, it implements a language-agnostic adaptation mechanism for multilingual microservices. Second, a two-level aggregation method is introduced to provide a comprehensive overview of flamegraphs. Third, we propose a function selective pruning (FSP) strategy to enhance the efficiency of aggregating profiling results. Finally, we develop a frequency dynamic adjustment (FDA) scheme that dynamically modifies sampling frequency based on service status, effectively minimizing profiling cost while maintaining accuracy. Cluster-scale experiments on two benchmarks show that the FSP strategy achieves a 6.8% reduction in time with a mere 0.58% mean average percentage error (MAPE) in stack traces aggregation. Additionally, the FDA scheme ensures that the mean squared error (MSE) remains on par with that at high sampling rates, while achieving an 87.6% reduction in cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。