Skip to main content
QUICK REVIEW

[Paper Review] Pagurus: Eliminating Cold Startup in Serverless Computing with Inter-Action Container Sharing

Zijun Li, Quan Chen|arXiv (Cornell University)|Aug 25, 2021
Cloud Computing and Resource ManagementComputer Science28 references6 citations
TL;DR

Pagurus eliminates serverless computing cold starts by enabling inter-action container sharing through a novel container management system that classifies containers into lender, executant, and renter types. By re-packing container images based on package similarity and using an inter-action scheduler, Pagurus reduces cold start latency to under 10ms, even without pre-warmed containers, while incurring negligible CPU and memory overhead.

ABSTRACT

Serverless computing provides fine-grain resource sharing between Cloud tenants through containers. Each function invocation (action) runs in an individual container. When there is not an already started container for a user function, a new container has to be created for it. However, the long cold startup time of a container results in the long response latency of the action. Our investigation shows that the containers for some user actions share most of the software packages. If an action that requires a new container can ``borrow'' a similar warm container from other actions, the long cold startup can be eliminated. Based on the above finding, we propose Pagurus, a runtime container management system for eliminating the cold startup in serverless computing. Pagurus is comprised of an inter-action container scheduler and an intra-action container scheduler for each action. The inter-action container scheduler schedules shared containers among actions. The intra-action container scheduler deals with the management of the container lifecycle. Our experimental results show that Pagurus effectively eliminates the time-consuming container cold startup. An action may start to run in 10ms with Pagurus, even if there is not warm container for it.

Motivation & Objective

  • To address the performance bottleneck caused by long cold startup times in serverless computing.
  • To reduce resource waste from idle, underutilized containers in existing serverless systems.
  • To enable secure, efficient sharing of containers across different user actions despite differing software dependencies.
  • To minimize cold start latency without requiring pre-warmed containers for every action.
  • To support bursty workloads without QoS violations through dynamic container borrowing.

Proposed method

  • Enhancing container design to support runtime package re-packing, enabling cross-action container sharing.
  • Introducing three container types: lender (shareable), executant (exclusive), and renter (borrowed).
  • Designing a similarity-based container re-packing policy that minimizes redundant package installations across actions.
  • Implementing an inter-action container scheduler to manage cross-action container allocation based on workload and package similarity.
  • Deploying an intra-action container scheduler per action to manage lifecycle of its own containers and borrowed renter containers.
  • Using checkpoint files and encrypted code storage to accelerate startup and ensure security during container borrowing.

Experimental results

Research questions

  • RQ1Can inter-action container sharing significantly reduce cold start latency in serverless computing?
  • RQ2How can container sharing be securely and efficiently enabled across actions with different software dependencies?
  • RQ3What is the impact of container re-packing based on package similarity on startup performance and resource usage?
  • RQ4Can the system support bursty workloads without QoS degradation through dynamic container borrowing?
  • RQ5What are the runtime and resource overheads of the proposed container sharing mechanism?

Key findings

  • Pagurus reduces cold start latency to under 10ms even when no warm container exists for an action.
  • The system supports up to 3× higher bursty workloads compared to OpenWhisk when allowing actions to rent 1–2 additional containers.
  • Memory usage for supporting bursty loads is reduced by up to 6.75GB compared to OpenWhisk’s pre-warming approach.
  • CPU overhead during container re-packing is only 1.61% on average, with total system overhead under 2.4% when accounting for synchronization.
  • The system incurs minimal storage overhead: 4.3125KB for encrypted code files and 332KB for checkpoint files per container.
  • Pagurus enables efficient, secure, and low-overhead container sharing without requiring changes to existing serverless platforms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.