StatuScale: 微服务应用中的状态感知和弹性扩展策略
StatuScale: Status-aware and Elastic Scaling Strategy for Microservice Applications
AI总结:
StatuScale通过状态感知和弹性扩展策略优化微服务应用的资源调度,减少响应时间并提高资源使用效率。
摘要:
微服务架构将传统的单体应用转变为轻量级组件。对这些轻量级微服务进行扩展比扩展服务器更加高效。然而,扩展微服务仍然面临由于请求的意外激增或突发带来的挑战,这些挑战难以检测且可能瞬间降低性能。为了解决这一挑战并确保基于微服务的应用性能,我们提出了一种名为StatuScale的状态感知和弹性扩展框架,该框架基于负载状态检测器,可为垂直扩展中的差异化资源调度选择适当的弹性扩展策略。此外,StatuScale采用了一个横向扩展控制器,利用全面评估和资源减少来管理每个微服务的副本数量。我们还提出了一种新的指标,称为相关性因子,用于评估资源使用效率。最后,我们使用Kubernetes,一个开源的容器编排和管理平台,以及阿里巴巴的现实轨迹来验证我们的方法。实验结果表明,所提出的框架可以将Sock-Shop应用的平均响应时间减少8.59%至12.34%,将Hotel-Reservation应用的平均响应时间减少7.30%至11.97%,减少服务级别目标违规情况,并在资源使用方面比基线方法表现更好。
英文摘要:
Microservice architecture has transformed traditional monolithic applications into lightweight components. Scaling these lightweight microservices is more efficient than scaling servers. However, scaling microservices still faces the challenges resulted from the unexpected spikes or bursts of requests, which are difficult to detect and can degrade performance instantaneously. To address this challenge and ensure the performance of microservice-based applications, we propose a status-aware and elastic scaling framework called StatuScale, which is based on load status detector that can select appropriate elastic scaling strategies for differentiated resource scheduling in vertical scaling. Additionally, StatuScale employs a horizontal scaling controller that utilizes comprehensive evaluation and resource reduction to manage the number of replicas for each microservice. We also present a novel metric named correlation factor to evaluate the resource usage efficiency. Finally, we use Kubernetes, an open-source container orchestration and management platform, and realistic traces from Alibaba to validate our approach. The experimental results have demonstrated that the proposed framework can reduce the average response time in the Sock-Shop application by 8.59% to 12.34%, and in the Hotel-Reservation application by 7.30% to 11.97%, decrease service level objective violations, and offer better performance in resource usage compared to baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。