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

SLAM:面向无服务器应用的SLO感知内存优化

SLAM: SLO-Aware Memory Optimization for Serverless Applications

Gor Safaryan, Anshul Jindal, Mohak Chadha, Michael Gerndt

摘要:

无服务器计算模式已经在行业中变得更加根深蒂固,因为它为应用程序开发和部署提供了一种廉价的替代方案。这种新的范例也给开发人员带来了新的问题,他们需要调整内存配置以平衡成本和性能。许多研究人员已经解决了单个FaaS功能的成本最小化和满足服务水平目标(SLO)要求的问题,但对于由许多FaaS功能组成的应用程序,创建复杂的应用程序工作流程,解决同样的问题存在差距。在这项工作中,我们设计了一个名为SLAM的工具来解决这个问题。SLAM使用分布式跟踪来检测无服务器应用程序中FaaS功能之间的关系。通过对它们中的每一个进行建模,它估计了应用程序在不同内存配置下的执行时间。使用这些估计,SLAM基于指定的SLO要求和用户指定的目标(最小成本或最小执行时间)确定给定无服务器应用的最佳内存配置。我们通过在四个应用程序上进行测试来演示AWS Lambda上的SLAM功能。我们的研究结果表明,建议的内存配置保证超过95%的请求在预定义的SLO内完成。

英文摘要:

Serverless computing paradigm has become more ingrained into the industry, as it offers a cheap alternative for application development and deployment. This new paradigm has also created new kinds of problems for the developer, who needs to tune memory configurations for balancing cost and performance. Many researchers have addressed the issue of minimizing cost and meeting Service Level Objective (SLO) requirements for a single FaaS function, but there has been a gap for solving the same problem for an application consisting of many FaaS functions, creating complex application workflows. In this work, we designed a tool called SLAM to address the issue. SLAM uses distributed tracing to detect the relationship among the FaaS functions within a serverless application. By modeling each of them, it estimates the execution time for the application at different memory configurations. Using these estimations, SLAM determines the optimal memory configuration for the given serverless application based on the specified SLO requirements and user-specified objectives (minimum cost or minimum execution time). We demonstrate the functionality of SLAM on AWS Lambda by testing on four applications. Our results show that the suggested memory configurations guarantee that more than 95% of requests are completed within the predefined SLOs.

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

↑