arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.19083cs.SE
收藏

具有生产环境特征的微服务图生成器

A Microservice Graph Generator with Production Characteristics

Fanrong Du, Jiuchen Shi, Quan Chen, Li Li, Minyi Guo

AI总结:

提出服务依赖图生成器DGG,通过数据处理器和图生成器从追踪数据构建具有生产级特征的小规模微服务依赖图,案例表明其拓扑相似且能将资源效率提升最多44.8%。

摘要:

生产环境的微服务应用可能提供多种服务,一个服务的查询可能有不同的调用图,且一个微服务可能在多个调用图间共享。如果没有合适的基准,提高此类复杂应用的资源效率具有挑战性,而生产环境的追踪数据过大,难以用于实验。为此,我们提出了一个服务依赖图生成器(DGG),包含数据处理器和图生成器,用于生成融合来自追踪数据的生产级特征的基准服务依赖图。数据处理器首先从追踪数据中构建具有动态接口和重复调用特征的细粒度调用图,将其合并为依赖图,然后基于拓扑和调用类型将其聚类为不同类别。图生成器接收整理后的数据和所选类别,使用随机图模型模拟真实微服务调用下游微服务的过程,生成多个调用图,并合并这些调用图以形成具有生产级特征的小规模服务依赖图。案例研究表明,DGG生成的图在拓扑上与真实追踪数据相似。此外,基于DGG细粒度调用图构建的资源扩展在确保所需QoS的同时,将资源效率提高了最多44.8%。

英文摘要:

A production microservice application may provide multiple services, queries of a service may have different call graphs, and a microservice may be shared across call graphs. It is challenging to improve the resource efficiency of such complex applications without proper benchmarks, while production traces are too large to be used in experiments. To this end, we propose a Service Dependency Graph Generator (DGG) that comprises a Data Handler and a Graph Generator, for generating the service dependency graphs of benchmarks that incorporate production-level characteristics from traces. The data handler first constructs fine-grained call graphs with dynamic interface and repeated calling features from the trace and merges them into dependency graphs, and then clusters them into different categories based on the topological and invocation types. Taking the organized data and the selected category, the graph generator simulates the process of real microservices invoking downstream microservices using a random graph model, generates multiple call graphs, and merges the call graphs to form the small-scale service dependency graph with production-level characteristics. Case studies show that DGG's generated graphs are similar to real traces in terms of topologies. Moreover, the resource scaling based on DGG's fine-grained call graph constructing increases the resource efficiency by up to 44.8% while ensuring the required QoS.

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

↑