缓解无服务器平台中的冷启动:基于池的方法
Mitigating Cold Starts in Serverless Platforms: A Pool-Based Approach
摘要:
无服务器(或功能即服务,FaaS)范式的快速采用,由亚马逊与AWS Lambda率先推出,随后推出了众多商业产品和开源项目,为设计云基础设施带来了新的挑战,在性能和成本之间取得平衡。虽然FaaS平台通常为应用程序开发人员提供即时的每请求弹性,使其能够在不过度配置的情况下实现突发工作负载的高性能,但这种弹性通常涉及与服务于功能的各个运行时容器的按需配置相关的额外延迟。这种现象通常被称为冷启动,与函数由预先提供的“热”容器提供服务的情况相反,准备以接近零的开销来服务请求。供应商一直致力于旨在减少冷启动的技术。减少冷启动的一种常见方法是保持一个热容器池,以备将来的需求。在这份报告中,我们解决了无服务器架构中的冷启动问题,特别是在Knative Serving FaaS平台下。我们描述了我们的实现利用池的功能实例,并评估延迟相比,原来的实现,导致在一个单一的实例池的P99响应时间减少85%。
英文摘要:
Rapid adoption of the serverless (or Function-as-a-Service, FaaS) paradigm, pioneered by Amazon with AWS Lambda and followed by numerous commercial offerings and open source projects, introduces new challenges in designing the cloud infrastructure, balancing between performance and cost. While instant per-request elasticity that FaaS platforms typically offer application developers makes it possible to achieve high performance of bursty workloads without over-provisioning, such elasticity often involves extra latency associated with on-demand provisioning of individual runtime containers that serve the functions. This phenomenon is often called cold starts, as opposed to the situation when a function is served by a pre-provisioned "warm" container, ready to serve requests with close to zero overhead. Providers are constantly working on techniques aimed at reducing cold starts. A common approach to reduce cold starts is to maintain a pool of warm containers, in anticipation of future requests. In this report, we address the cold start problem in serverless architectures, specifically under the Knative Serving FaaS platform. We describe our implementation leveraging a pool of function instances, and evaluate the latency compared to the original implementation, resulting in a 85% reduction of P99 response time for a single instance pool.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。