Nuka: A Generic Engine with Millisecond Initialization for Serverless Computing

被引:6
作者
Qin, Shijun [1 ]
Wu, Heng [1 ]
Wu, Yuewen [1 ]
Yan, Bowen [1 ]
Xu, Yuanjia [1 ]
Zhang, Wenbo [1 ]
机构
[1] Chinese Acad Sci, Inst Software, Beijing, Peoples R China
来源
2020 IEEE INTERNATIONAL CONFERENCE ON JOINT CLOUD COMPUTING (JCC 2020) | 2020年
关键词
Serverless Computing; Cloud Computing; Container; Performance Optimization; Performance Analysis;
D O I
10.1109/JCC49151.2020.00021
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Serverless computing is becoming one of the mainstream trends in cloud computing due to its advantages of simplified programming and cost saving. However, existing serverless platforms still adopt Docker container as its execution engine, which has the cold start problem and causes high common-case invocation latency. In this work, we analyze the lifecycle of common-case serverless invocation on existing serverless platforms and find that current container startup and pulling remote images are the two main reasons causing cold start so slow. Based on the study, we implement Nuka, a generic engine with millisecond initialization for serverless computing. Nuka is fully compatible with Docker interface and can smoothly replace Docker as the execution engine of existing serverless platforms. Through the isolation pool that reuses !Army's isolation configurations, Nuka avoids the high cost of container startup's scalahility bottleneck, which reduces container's startup time with high concurrency scale. Nuka also avoids pulling remote images through dynamically resolving and importing required software packages from local package caching. A self-adaptive container reuse strategy dynamically controls container's pause time and replica numbers, which effectively reduces the frequency of cold start. Compared with Docker, Nuka can get a millisecond initialization with high concurrency and significantly reduces average time cost of cold startup by 6x on existing serverless platforms.
引用
收藏
页码:78 / 85
页数:8
相关论文
共 23 条
[1]  
Akkus IE, 2018, PROCEEDINGS OF THE 2018 USENIX ANNUAL TECHNICAL CONFERENCE, P923
[2]  
[Anonymous], 2016, 8 USENIX WORKSHOP HO
[3]  
[Anonymous], 2019, AWS Lambda
[4]  
[Anonymous], 2019, DOCKER REGISTRY
[5]  
[Anonymous], 2019, LINUX NAMESPACE
[6]  
[Anonymous], 2019, Google Cloud Functions
[7]  
[Anonymous], 2019, IMAGE RESIZING
[8]  
Anwar A, 2018, PROCEEDINGS OF THE 16TH USENIX CONFERENCE ON FILE AND STORAGE TECHNOLOGIES, P265
[9]   Leveraging the Serverless Architecture for Securing Linux Containers [J].
Bila, Nilton ;
Dettori, Paolo ;
Kanso, Ali ;
Watanabe, Yuji ;
Youssef, Alaa .
2017 IEEE 37TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS WORKSHOPS (ICDCSW), 2017, :401-404
[10]  
Boucher S, 2018, PROCEEDINGS OF THE 2018 USENIX ANNUAL TECHNICAL CONFERENCE, P645