Freyr +: Harvesting Idle Resources in Serverless Computing via Deep Reinforcement Learning

Serverless computing has revolutionized online service development and deployment with ease-to-use operations, auto-scaling, fine-grained resource allocation, and pay-as-you-go pricing. However, a gap remains in configuring serverless functions—the actual resource consumption may vary due to function types, dependencies, and input data sizes, thus mismatching the static resource configuration by users. Dynamic resource consumption against static configuration may lead to either poor function execution performance or low utilization. This paper proposes <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula>, a novel resource manager (RM) that dynamically harvests idle resources from over-provisioned functions to accelerate under-provisioned functions for serverless platforms. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> monitors each function's resource utilization in real-time and detects the mismatches between user configuration and actual resource consumption. We design deep reinforcement learning (DRL) algorithms with attention-enhanced embedding, incremental learning, and safeguard mechanism for <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> to harvest idle resources safely and accelerate functions efficiently. We have implemented and deployed a <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> prototype in a 13-node Apache OpenWhisk cluster using AWS EC2. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> is evaluated on both large-scale simulation and real-world testbed. Experimental results show that <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> harvests 38% of function invocations’ idle resources and accelerates 39% of invocations using harvested resources. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> reduces the 99th-percentile function response latency by 26% compared to the baseline RMs.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Parallel and Distributed Systems
Published
2024-09-17
DOI
https://doi.org/10.1109/tpds.2024.3462294
Citations
3
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
2.34
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Freyr +: Harvesting Idle Resources in Serverless Computing via Deep Reinforcement Learning

Hanfei Yu, Hao Wang
3 citations
IEEE Transactions on Parallel and Distributed Systems
Blockchain Technology Applications and Security
2.34
article

Freyr +: Harvesting Idle Resources in Serverless Computing via Deep Reinforcement Learning

Hanfei Yu, Hao Wang
article en
3 citations

Abstract

Serverless computing has revolutionized online service development and deployment with ease-to-use operations, auto-scaling, fine-grained resource allocation, and pay-as-you-go pricing. However, a gap remains in configuring serverless functions—the actual resource consumption may vary due to function types, dependencies, and input data sizes, thus mismatching the static resource configuration by users. Dynamic resource consumption against static configuration may lead to either poor function execution performance or low utilization. This paper proposes <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula>, a novel resource manager (RM) that dynamically harvests idle resources from over-provisioned functions to accelerate under-provisioned functions for serverless platforms. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> monitors each function's resource utilization in real-time and detects the mismatches between user configuration and actual resource consumption. We design deep reinforcement learning (DRL) algorithms with attention-enhanced embedding, incremental learning, and safeguard mechanism for <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> to harvest idle resources safely and accelerate functions efficiently. We have implemented and deployed a <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> prototype in a 13-node Apache OpenWhisk cluster using AWS EC2. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> is evaluated on both large-scale simulation and real-world testbed. Experimental results show that <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> harvests 38% of function invocations’ idle resources and accelerates 39% of invocations using harvested resources. <i>Freyr</i><inline-formula><tex-math notation="LaTeX">$^+$</tex-math></inline-formula> reduces the 99th-percentile function response latency by 26% compared to the baseline RMs.

IEEE Transactions on Parallel and Distributed SystemsVol. 35(11)
Stevens Institute of Technology (US), Missouri University of Science and Technology (US), Stony Brook University (US), Kitware (United States) (US), University of Delaware (US)
Openalex Percentile: Top 9%
Blockchain Technology Applications and Security
2.34
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.