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

一种基于深度强化学习的无服务器应用时间与成本优化扩缩容算法

A Deep Reinforcement Learning based Algorithm for Time and Cost Optimized Scaling of Serverless Applications

Anupama Mampage, Shanika Karunasekera, Rajkumar Buyya

AI总结:

针对无服务器计算冷启动延迟、资源利用率低及现有方案多租户适配性不足的问题,提出基于多智能体深度强化学习的函数资源横纵扩缩容方案,在提升性能的同时大幅降低基础设施成本。

摘要:

近年来,无服务器计算在云计算领域获得了广泛关注。在这种新型计算模式的诸多优势中,用户应用的快速自动扩缩容能力尤为突出。然而,在函数级别对用户部署进行即席扩缩容的机制,给无服务器系统带来了诸多复杂问题。为适配函数工作负载动态创建新资源所消耗的时间会导致函数请求执行延迟增加和执行失败,这一问题被称为冷启动延迟,是其中一个非常普遍的缺陷。从云服务提供商的角度来看,维持空闲资源池来缓解这一问题往往会造成资源浪费。\n现有解决这一局限的方案大多聚焦于预测和掌握函数负载水平,以主动创建所需资源。尽管这些方案提升了函数性能,但在制定扩缩容决策时缺乏对整体系统特征的考量,往往会导致系统资源使用未达最优。此外,无服务器系统的多租户特性要求方案具备可扩展性,能够适配多个共存的应用,这也是当前大多数方案存在的局限。\n本文提出了一种新颖的基于多智能体深度强化学习的智能方案,可在全面掌握函数与系统需求的基础上,对函数资源进行水平和垂直扩缩容。我们的方案在提升函数性能、减少冷启动的同时,还能为服务提供商提供优化资源维护成本的灵活性。针对不同工作负载场景开展的实验表明,该方案在应用延迟和请求失败率方面分别最高可优化23%和34%,同时还能为服务提供商节省最高达45%的基础设施成本。

英文摘要:

Serverless computing has gained a strong traction in the cloud computing community in recent years. Among the many benefits of this novel computing model, the rapid auto-scaling capability of user applications takes prominence. However, the offer of adhoc scaling of user deployments at function level introduces many complications to serverless systems. The added delay and failures in function request executions caused by the time consumed for dynamically creating new resources to suit function workloads, known as the cold-start delay, is one such very prevalent shortcoming. Maintaining idle resource pools to alleviate this issue often results in wasted resources from the cloud provider perspective. Existing solutions to address this limitation mostly focus on predicting and understanding function load levels in order to proactively create required resources. Although these solutions improve function performance, the lack of understanding on the overall system characteristics in making these scaling decisions often leads to the sub-optimal usage of system resources. Further, the multi-tenant nature of serverless systems requires a scalable solution adaptable for multiple co-existing applications, a limitation seen in most current solutions. In this paper, we introduce a novel multi-agent Deep Reinforcement Learning based intelligent solution for both horizontal and vertical scaling of function resources, based on a comprehensive understanding on both function and system requirements. Our solution elevates function performance reducing cold starts, while also offering the flexibility for optimizing resource maintenance cost to the service providers. Experiments conducted considering varying workload scenarios show improvements of up to 23% and 34% in terms of application latency and request failures, while also saving up to 45% in infrastructure cost for the service providers.

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

↑