Optimization Research and Solutions for the Cold Start Problem in Serverless Computing

Authors

  • Haoyuan Gao

DOI:

https://doi.org/10.54097/shdwt693

Keywords:

Serverless Computing, Cold Startup, Container Deployment, Optimization Strategies.

Abstract

This paper delves into the issue of cold starts in serverless computing, a phenomenon where a function, after not being invoked for a period, requires initialization operations when called again, leading to additional latency. This latency can have a significant impact on applications that require rapid responses. In this essay, we discuss various strategies to address the cold start problem, including optimizations at the hardware level, operating system level, application level, and within serverless computing itself. Hardware-level optimizations primarily involve increasing the number of CPU cores or the size of memory to enhance function execution speed, as well as optimizing network connections and storage devices to reduce data transmission and access latency. Operating system-level optimizations include the use of pre-warming strategies and optimized scheduling policies. Application-level optimizations involve the use of caching, prefetching, function fusion, and other techniques. Serverless computing optimizations involve the use of container-based deployments and the optimization of network connections and storage devices. It also discusses specific research and experiments, such as the REAP mechanism, function fusion technology, and container-based deployment. These studies and experiments demonstrate that while these optimization strategies can effectively reduce cold start latency, they also have their limitations and challenges, necessitating the selection of the most suitable solution based on specific application scenarios and needs.

Downloads

Download data is not yet available.

References

M. Steinbach, A. Jindal, M. Chadha, M. Gerndt and S. Benedict, "TppFaaS: Modeling Serverless Functions Invocations via Temporal Point Processes," in IEEE Access, vol. 10, pp. 9059-9084, 2022.

Paulo Silva, Daniel Fireman, and Thiago Emmanuel Pereira. 2020. Prebaking Functions to Warm the Serverless Cold Start. In Proceedings of the 21st International Middleware Conference (Middleware '20). Association for Computing Machinery, New York, NY, USA, 1–13.

Mohammad Shahrad, Jonathan Balkind, and David Wentzlaff. 2019. Architectural Implications of Function-as-a-Service Computing. In Proceedings of the 52nd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO '52). Association for Computing Machinery, New York, NY, USA, 1063–1075.

S. Agarwal, M. A. Rodriguez, and R. Buyya, "A Reinforcement Learning Approach to Reduce Serverless Function Cold Start Frequency," 2021 IEEE/ACM 21st International Symposium on Cluster, Cloud and Internet Computing (CCGrid), Melbourne, Australia, 2021, pp. 797-803.

Niu W, Ma X, Lin S, et al. Patdnn: Achieving real-time dnn execution on mobile devices with pattern-based weight pruning[C]//Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems. 2020: 907-922

G. McGrath and P. R. Brenner, “Serverless computing: Design, implementation, and performance,” in 2017 IEEE 37th International Conference on Distributed Computing Systems Workshops (ICDCSW), pp. 405–410, June 2017.

L. Wang, M. Li, Y. Zhang, T. Ristenpart, and M. Swift, “Peeking behind the curtains of serverless platforms,” in 2018 USENIX Annual Technical Conference (ATC 18), (Boston, MA), pp. 133–146, USENIX Association, 2018.

H. Lee, K. Satyam, and G. Fox, “Evaluation of production serverless computing environments,” in 2018 IEEE 11th International Conference on Cloud Computing (CLOUD), vol. 00, pp. 442–450, Jul 2018.

Dmitrii Ustiugov, Plamen Petrov, Marios Kogias, Edouard Bugnion, and Boris Grot. 2021. Benchmarking, analysis, and optimization of serverless function snapshots. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '21). Association for Computing Machinery, New York, NY, USA, 559–572.

Lee S, Yoon D, Yeo S, Oh S. Mitigating Cold Start Problem in Serverless Computing with Function Fusion. Sensors. 2021; 21(24):8416.

J. Dantas, H. Khazaei and M. Litoiu, "Application Deployment Strategies for Reducing the Cold Start Delay of AWS Lambda," 2022 IEEE 15th International Conference on Cloud Computing (CLOUD), Barcelona, Spain, 2022, pp. 1-10

Downloads

Published

13-03-2024

How to Cite

Gao, H. (2024). Optimization Research and Solutions for the Cold Start Problem in Serverless Computing. Highlights in Science, Engineering and Technology, 85, 113-120. https://doi.org/10.54097/shdwt693