An Empirical Investigation of Container Building Strategies and Warm Times to Reduce Cold Starts in Scientific Computing Serverless Functions
Serverless computing has revolutionized application development and deployment by abstracting infrastructure management, allowing developers to focus on writing code. To do so, serverless platforms dynamically create execution environments, often using containers. The cost to create and deploy these environments is known as "cold start" latency, and this cost can be particularly detrimental to scientific computing workloads characterized by sporadic and dynamic demands. We investigate methods to mitigate cold start issues in scientific computing applications by pre-installing Python packages in container images. Using data from Globus Compute and Binder, we empirically analyze cold start behavior and evaluate four strategies for building containers, including fully pre-built environments and dynamic, on-demand installations. Our results show that pre-installing all packages reduces initial cold start time but requires significant storage. Conversely, dynamic installation offers lower storage requirements but incurs repetitive delays. Additionally, we implemented a simulator and assessed the impact of different warm times, finding that moderate warm times significantly reduce cold starts without the excessive overhead of maintaining always-hot states.
Authors
- Maxime Gonthier (ORCID: https://orcid.org/0000-0003-3306-0483)
- Matt Baughman (ORCID: https://orcid.org/0000-0003-2227-2851)
- Nathaniel Hudson (ORCID: https://orcid.org/0000-0001-7474-2689)
- Daniel Grzenda (ORCID: https://orcid.org/0000-0003-3722-6516)
- Martin Straesser (ORCID: https://orcid.org/0000-0002-0070-7343)
- Haochen Pan (ORCID: https://orcid.org/0009-0006-8992-5895)
- André Bauer (ORCID: https://orcid.org/0000-0002-5582-8812)
- Kyle Chard (ORCID: https://orcid.org/0000-0002-7370-4805)
- J. Gregory Pauloski (ORCID: https://orcid.org/0000-0002-6547-6902)
- Ryan Chard (ORCID: https://orcid.org/0000-0002-6781-7432)
- Alok Kamatar (ORCID: https://orcid.org/0000-0002-6428-4829)
- Ian Foster (ORCID: https://orcid.org/0009-0001-7540-1218)
Institutions
- Argonne National Laboratory (US)
- Illinois Institute of Technology (US)
- University of Würzburg (DE)
- University of Chicago (US)
Publication Details
- Published
- 2024-09-16
- DOI
- https://doi.org/10.1109/e-science62913.2024.10678668
- Citations
- 2
- Primary Topic
- Cloud Computing and Resource Management
- Type
- article
- Field-Weighted Citation Impact
- 1.56
Funders
- Deutsche Forschungsgemeinschaft