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

Faa$T:一个面向无服务器应用的透明自动扩展缓存

Faa$T: A Transparent Auto-Scaling Cache for Serverless Applications

Francisco Romero, Gohar Irfan Chaudhry, Íñigo Goiri, Pragna Gopa, Paul Batum, Neeraja J. Yadwadkar, Rodrigo Fonseca, Christos Kozyrakis, Ricardo Bianchini

摘要:

功能即服务(FaaS)已成为用户部署应用程序而无需管理底层基础设施的日益流行的方式。然而,现有的FaaS平台依赖于远程存储来维护状态,限制了可以有效运行的应用程序集。FaaS平台最近的缓存工作试图解决这个问题,但没有达到目标:它忽视了FaaS应用程序的广泛不同特征,没有根据数据访问模式扩展缓存,或者需要对应用程序进行更改。为了解决这些限制,我们提出了Faa\$T,一个透明的自动扩展分布式缓存的无服务器应用程序。每个应用程序都有自己的Faa\$T缓存。在函数执行并且应用程序变为非活动状态之后,缓存将与应用程序一起从内存中卸载。在为下一次调用重新加载时,Faa\$T会用可能被访问的对象预热缓存。除了传统的基于计算的扩展之外,Faa\$T还基于工作集和对象大小进行扩展,以管理缓存空间和I/O带宽。我们通过对大型商业FaaS提供商的数据访问模式进行全面研究来激励我们的设计。我们为供应商的生产FaaS平台实现Faa\$T。我们的实验表明,对于具有挑战性的应用程序,Faa\$T可以将性能提高高达92%(平均57%),并且与最先进的缓存系统相比,可以降低大多数用户的成本,即必须支持额外的服务器资源的成本。

英文摘要:

Function-as-a-Service (FaaS) has become an increasingly popular way for users to deploy their applications without the burden of managing the underlying infrastructure. However, existing FaaS platforms rely on remote storage to maintain state, limiting the set of applications that can be run efficiently. Recent caching work for FaaS platforms has tried to address this problem, but has fallen short: it disregards the widely different characteristics of FaaS applications, does not scale the cache based on data access patterns, or requires changes to applications. To address these limitations, we present Faa\$T, a transparent auto-scaling distributed cache for serverless applications. Each application gets its own Faa\$T cache. After a function executes and the application becomes inactive, the cache is unloaded from memory with the application. Upon reloading for the next invocation, Faa\$T pre-warms the cache with objects likely to be accessed. In addition to traditional compute-based scaling, Faa\$T scales based on working set and object sizes to manage cache space and I/O bandwidth. We motivate our design with a comprehensive study of data access patterns in a large-scale commercial FaaS provider. We implement Faa\$T for the provider's production FaaS platform. Our experiments show that Faa\$T can improve performance by up to 92% (57% on average) for challenging applications, and reduce cost for most users compared to state-of-the-art caching systems, i.e. the cost of having to stand up additional serverful resources.

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

↑