Tiny Autoscalers for Tiny Workloads: Dynamic CPU Allocation for Serverless Functions

Yuxuan Zhao, Alexandru Uta
3/1/2022
cs.DC

Official code: ZhaoNeil/On-Demand-Resizing (2 stars, Go, last commit 2026-10-08).

Abstract

In serverless computing, applications are executed under lightweight virtualization and isolation environments, such as containers or micro virtual machines. Typically, their memory allocation is set by the user before deployment.

Show full abstract

All other resources, such as CPU, are allocated by the provider statically and proportionally to memory allocations. This contributes to either under-utilization or throttling. The former significantly impacts the provider, while the latter impacts the client. To solve this problem and accommodate both clients and providers, a solution is dynamic CPU allocation achieved through autoscaling. Autoscaling has been investigated for long-running applications using history-based techniques and prediction. However, serverless applications are short-running workloads, where such techniques are not well suited. In this paper, we investigate tiny autoscalers and how dynamic CPU allocation techniques perform for short-running serverless workloads. We experiment with Kubernetes as the underlying platform and implement using its vertical pod autoscaler several dynamic CPU rightsizing techniques. We compare these techniques using state-of-the-art serverless workloads. Our experiments show that dynamic CPU allocation for short-running serverless functions is feasible and can be achieved with lightweight algorithms that offer good performance.

View on arXivView PDF

Code Implementations(1)

Designed a mechanism for on-demand resource resizing of existing containers. This repository contains deploy code and analysis code for paper "Tiny Autoscalers for Tiny Workloads: Dynamic CPU Allocation for Serverless Functions", which was accepted at CCGrid 2022.

21Go, PythonApr 14, 20211 months ago

Similar Papers

Cite this paper

@article{zhao2022tiny,
  title  = {Tiny Autoscalers for Tiny Workloads: Dynamic CPU Allocation for Serverless Functions},
  author = {Yuxuan Zhao and Alexandru Uta},
  year   = {2022},
  eprint = {2203.00592},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.00592}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.00592.svg)](https://codeofpaper.com/paper/2203.00592)

Discussion