STaleX:一个面向微服务的时空感知自适应自动扩缩容框架
STaleX: A Spatiotemporal-Aware Adaptive Auto-scaling Framework for Microservices
AI总结:
本文提出面向微服务的自适应自动扩缩容框架STaleX,结合控制理论、机器学习与启发式方法,利用时空特征动态调整加权PID控制器,有效减少SLO违规,相比传统HPA方法资源使用量降低26.9%。
摘要:
虽然云环境和自动扩缩容解决方案已广泛应用于传统的单体应用,但在面对基于微服务的架构时,它们面临着显著的局限性。微服务由于其动态和时空特性引入了额外的挑战,这需要更高效和专门的自动扩缩容策略。对整个微服务应用进行集中式自动扩缩容是不够的,因为调用链中的每个服务都有不同的规格和性能要求。因此,每个服务都需要其专用的自动扩缩器来有效满足其独特的扩缩容需求,同时还要考虑与链中其他服务的依赖关系以及整个应用的情况。本文结合控制理论、机器学习和启发式方法来解决这些挑战。我们提出了一个用于微服务的自适应自动扩缩容框架 STaleX,它集成了时空特征,能够进行实时资源调整以最大程度减少 SLO 违规。STaleX 为每个服务采用一组加权的比例-积分-微分(PID)控制器,其权重由一个集成了时空特征的监督单元动态调整。该监督单元持续监控并调整每个服务的权重和分配的资源。我们的框架考虑了空间特征(包括服务规格和服务间的依赖关系)以及工作负载的时间变化,确保资源分配得到持续优化。通过在部署于 Kubernetes 集群上的基于微服务的演示应用中进行实验,我们证明了与传统扩缩容方法(如 Kubernetes Horizontal Pod Autoscaler (HPA))相比,我们的框架在提高性能和降低成本方面的有效性,其资源使用量减少了 26.9%。
英文摘要:
While cloud environments and auto-scaling solutions have been widely applied to traditional monolithic applications, they face significant limitations when it comes to microservices-based architectures. Microservices introduce additional challenges due to their dynamic and spatiotemporal characteristics, which require more efficient and specialized auto-scaling strategies. Centralized auto-scaling for the entire microservice application is insufficient, as each service within a chain has distinct specifications and performance requirements. Therefore, each service requires its own dedicated auto-scaler to address its unique scaling needs effectively, while also considering the dependencies with other services in the chain and the overall application. This paper presents a combination of control theory, machine learning, and heuristics to address these challenges. We propose an adaptive auto-scaling framework, STaleX, for microservices that integrates spatiotemporal features, enabling real-time resource adjustments to minimize SLO violations. STaleX employs a set of weighted Proportional-Integral-Derivative (PID) controllers for each service, where weights are dynamically adjusted based on a supervisory unit that integrates spatiotemporal features. This supervisory unit continuously monitors and adjusts both the weights and the resources allocated to each service. Our framework accounts for spatial features, including service specifications and dependencies among services, as well as temporal variations in workload, ensuring that resource allocation is continuously optimized. Through experiments on a microservice-based demo application deployed on a Kubernetes cluster, we demonstrate the effectiveness of our framework in improving performance and reducing costs compared to traditional scaling methods like Kubernetes Horizontal Pod Autoscaler (HPA) with a 26.9% reduction in resource usage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。