Container lifecycle‐aware scheduling for serverless computing
Authors:
- 9 July 2021
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 52 (2) , 337-352
Abstract
Elastic scaling in response to changes on demand is a main benefit of serverless computing. When bursty workloads arrive, a serverless platform launches many new containers and initializes function environments (known as cold starts), which incurs significant startup latency. To reduce cold starts, platforms usually pause a container after it serves a request, and reuse this container for subsequent requests. However, this reuse strategy cannot efficiently reduce cold starts because the schedulers are agnostic of container lifecycle. For example, it may ignore soon available containers or evict soon needed containers. We propose a container lifecycle‐aware scheduling strategy for serverless computing, CAS. The key idea is to control distribution of requests and determine creation or eviction of containers according to different lifecycle phases of containers. We implement a prototype of CAS on OpenWhisk. Our evaluation shows that CAS reduces 81% cold starts and therefore brings a 63% reduction at 95th percentile latency compared with native scheduling strategy in OpenWhisk when there is worker contention between workloads, and does not add significant performance overhead.Keywords
This publication has 14 references indexed in Scilit:
- FnSched2019
- Centralized Core-granular Scheduling for Serverless Functions2019
- Beyond Load Balancing: Package-Aware Scheduling for Serverless Platforms2019
- SDSN@RT: A middleware environment for single‐instance multitenant cloud applicationsSoftware: Practice and Experience, 2019
- Hypervisors vs. Lightweight Virtualization: A Performance Comparison2015
- An introduction to Docker for reproducible researchACM SIGOPS Operating Systems Review, 2015
- Virtualization vs Containerization to Support PaaS2014
- Unikernels2013
- The power of two choices in randomized load balancingIEEE Transactions on Parallel and Distributed Systems, 2001
- Web caching with consistent hashingComputer Networks, 1999