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

MSARS:一个用于微服务SLO资源分配与自适应扩展的元学习与强化学习框架

MSARS: A Meta-Learning and Reinforcement Learning Framework for SLO Resource Allocation and Adaptive Scaling for Microservices

Kan Hu, Linfeng Wen, Minxian Xu, Kejiang Ye

AI总结:

本文提出MSARS框架,结合元学习与强化学习,利用图卷积网络和改进的TD3模型实现微服务SLO资源的快速分配与自适应扩展,在适应时间、违规率和资源成本上均优于现有算法。

摘要:

服务等级目标(SLOs)旨在为云服务中的服务时间设定阈值,以确保可接受的服务质量(QoS)和用户满意度。目前,许多研究将SLO视为一种需要分配的系统资源,以确保QoS满足SLOs。现有的依赖SLO资源的微服务自动扩展框架通常使用复杂且计算密集的模型,需要大量的时间和资源来确定合适的资源分配。本文旨在快速分配SLO资源并最小化资源成本,同时在动态变化的微服务环境中确保应用QoS满足SLO要求。我们提出了MSARS,这是一个利用元学习快速推导SLO资源分配策略,并采用强化学习进行微服务资源自适应扩展的框架。它包含三个创新组件:首先,MSARS使用图卷积网络预测当前环境最适合的SLO资源分配方案。其次,MSARS利用元学习使图神经网络能够快速适应环境变化,确保在高度动态的微服务环境中的适应性。第三,MSARS基于改进的双延迟深度确定性策略梯度(TD3)模型为每个微服务生成自动扩展策略。该自适应自动扩展策略将SLO资源分配策略集成到调度算法中以满足SLOs。最后,我们将MSARS与利用神经网络和强化学习的最先进资源自动扩展算法进行比较,MSARS适应新环境的时间减少了40%,SLO违规减少了38%,资源成本降低了8%。

英文摘要:

Service Level Objectives (SLOs) aim to set threshold for service time in cloud services to ensure acceptable quality of service (QoS) and user satisfaction. Currently, many studies consider SLOs as a system resource to be allocated, ensuring QoS meets the SLOs. Existing microservice auto-scaling frameworks that rely on SLO resources often utilize complex and computationally intensive models, requiring significant time and resources to determine appropriate resource allocation. This paper aims to rapidly allocate SLO resources and minimize resource costs while ensuring application QoS meets the SLO requirements in a dynamically changing microservice environment. We propose MSARS, a framework that leverages meta-learning to quickly derive SLO resource allocation strategies and employs reinforcement learning for adaptive scaling of microservice resources. It features three innovative components: First, MSARS uses graph convolutional networks to predict the most suitable SLO resource allocation scheme for the current environment. Second, MSARS utilizes meta-learning to enable the graph neural network to quickly adapt to environmental changes ensuring adaptability in highly dynamic microservice environments. Third, MSARS generates auto-scaling policies for each microservice based on an improved Twin Delayed Deep Deterministic Policy Gradient (TD3) model. The adaptive auto-scaling policy integrates the SLO resource allocation strategy into the scheduling algorithm to satisfy SLOs. Finally, we compare MSARS with state-of-the-art resource auto-scaling algorithms that utilize neural networks and reinforcement learning, MSARS takes 40% less time to adapt to new environments, 38% reduction of SLO violations, and 8% less resources cost.

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

↑