An Empirical Investigation of Container Building Strategies and Warm Times to Reduce Cold Starts in Scientific Computing Serverless Functions
Abstract
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.
BibTeX
@inproceedings{bauer2024empirical,
author = {André Bauer and Maxime Gonthier and Haochen Pan and Ryan Chard and Daniel Grzenda and Martin Straesser and J. Gregory Pauloski and Alok Kamatar and Matt Baughman and Nathaniel Hudson and Ian T. Foster and Kyle Chard},
title = {{An Empirical Investigation of Container Building Strategies and Warm Times to Reduce Cold Starts in Scientific Computing Serverless Functions}},
booktitle = {e-Science},
year = {2024},
url = {https://openreview.net/forum?id=qLSmam8C6B},
}Ask Althea to put this paper to the test.
Loading related content...