[Paper Review] FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute
FaaSNet is a scalable, P2P-inspired middleware system that accelerates custom container provisioning in serverless environments by using lightweight, adaptive function trees (FTs) and on-demand I/O fetching. It reduces provisioning time for 2,500 containers across 1,000 VMs to 8.3 seconds—13.4× and 16.3× faster than Alibaba Cloud’s native platform and Kraken, respectively—while sustaining bursty workloads with 75.2% less time than an optimized baseline.
Serverless computing, or Function-as-a-Service (FaaS), enables a new way of building and scaling applications by allowing users to deploy fine-grained functions while providing fully-managed resource provisioning and auto-scaling. Custom FaaS container support is gaining traction as it enables better control over OSes, versioning, and tooling for modernizing FaaS applications. However, providing rapid container provisioning introduces non-trivial challenges for FaaS providers, since container provisioning is costly, and real-world FaaS workloads exhibit highly dynamic patterns. In this paper, we design FaaSNet, a highly-scalable middleware system for accelerating FaaS container provisioning. FaaSNet is driven by the workload and infrastructure requirements of the FaaS platform at one of the world's largest cloud providers, Alibaba Cloud Function Compute. FaaSNet enables scalable container provisioning via a lightweight, adaptive function tree (FT) structure. FaaSNet uses an I/O efficient, on-demand fetching mechanism to further reduce provisioning costs at scale. We implement and integrate FaaSNet in Alibaba Cloud Function Compute. Evaluation results show that FaaSNet: (1) finishes provisioning 2500 function containers on 1000 virtual machines in 8.3 seconds, (2) scales 13.4x and 16.3x faster than Alibaba Cloud's current FaaS platform and a state-of-the-art P2P container registry (Kraken), respectively, and (3) sustains a bursty workload using 75.2% less time than an optimized baseline.
Motivation & Objective
- To address the high cost and latency of container provisioning in bursty, large-scale FaaS workloads.
- To eliminate bottlenecks in traditional P2P systems by avoiding centralized coordination and dedicated root nodes.
- To enable rapid, scalable provisioning of custom container runtimes in a serverless environment with resource-constrained VMs.
- To support dependency-heavy workloads such as machine learning and big data analytics in FaaS platforms.
- To provide a production-ready, end-to-end solution tailored for Alibaba Cloud Function Compute’s dynamic, large-scale infrastructure.
Proposed method
- FaaSNet employs a lightweight, adaptive function tree (FT) structure to dynamically organize VMs into a decentralized, tree-structured overlay for efficient container image distribution.
- It uses an on-demand, I/O-efficient fetching mechanism that reduces redundant data transfers and minimizes network contention during bursty provisioning.
- The system leverages existing container registries and storage backends while optimizing data access patterns through intelligent, workload-aware scheduling of image layer retrieval.
- The FT structure adapts to real-time workload dynamics and VM availability, ensuring high scalability and low latency under unpredictable request spikes.
- FaaSNet integrates seamlessly with Alibaba Cloud’s existing FaaS platform and avoids modifications to the underlying OS or runtime environments.
- It supports incremental updates and caching of frequently used container images to further reduce cold start overhead.
Experimental results
Research questions
- RQ1How can FaaS platforms efficiently scale container provisioning under highly dynamic, bursty workloads without introducing centralized bottlenecks?
- RQ2Can a decentralized, adaptive P2P-like system be designed for FaaS that avoids the need for dedicated root nodes or metadata servers?
- RQ3To what extent can I/O-efficient, on-demand data fetching reduce provisioning latency and bandwidth cost in large-scale serverless environments?
- RQ4How does FaaSNet’s performance compare to existing P2P systems like Kraken and native FaaS platforms under real-world production workloads?
- RQ5Can FaaSNet enable practical, low-latency provisioning of large, dependency-heavy container images in a public cloud FaaS setting?
Key findings
- FaaSNet provisions 2,500 function containers across 1,000 virtual machines in just 8.3 seconds, achieving sub-10-second startup for large-scale workloads.
- It scales 13.4× faster than Alibaba Cloud’s current FaaS platform and 16.3× faster than the state-of-the-art P2P container registry Kraken.
- Under bursty workloads, FaaSNet sustains performance using 75.2% less time than an optimized baseline system, demonstrating superior resilience to traffic spikes.
- The system reduces provisioning cost through I/O-efficient, on-demand fetching, minimizing redundant data transfers and network contention.
- The adaptive function tree (FT) structure enables high scalability and low-latency coordination without centralized coordination components.
- FaaSNet is production-ready and has been integrated into Alibaba Cloud Function Compute, supporting real-world, dependency-heavy serverless workloads like ML and data analytics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.