A Deep Recurrent-Reinforcement Learning Method for Intelligent AutoScaling of Serverless Functions

Siddharth Agarwal, Maria A. Rodriguez, Rajkumar Buyya
8/11/2023
cs.DCcs.AIeess.SY

No official code found. Best implementation: SidAg26/DRe-SCale (11 stars, Apache-2.0, last commit 2026-02-01). 1 more below.

Abstract

FaaS introduces a lightweight, function-based cloud execution model that finds its relevance in a range of applications like IoT-edge data processing and anomaly detection. While cloud service providers offer a near-infinite function elasticity, these applications often experience fluctuating workloads and stricter performance constraints. A typical CSP strategy is to empirically determine and adjust desired function instances or resources, known as autoscaling, based on monitoring-based thresholds such as CPU or memory, to cope with demand and performance. However, threshold configuration either requires expert knowledge, historical data or a complete view of the environment, making autoscaling a performance bottleneck that lacks an adaptable solution. RL algorithms are proven to be beneficial in analysing complex cloud environments and result in an adaptable policy that maximizes the expected objectives. Most realistic cloud environments usually involve operational interference and have limited visibility, making them partially observable. A general solution to tackle observability in highly dynamic settings is to integrate Recurrent units with model-free RL algorithms and model a decision process as a POMDP. Therefore, in this paper, we investigate model-free Recurrent RL agents for function autoscaling and compare them against the model-free PPO algorithm. We explore the integration of a LSTM network with the state-of-the-art PPO algorithm to find that under our experimental and evaluation settings, recurrent policies were able to capture the environment parameters and show promising results for function autoscaling. We further compare a PPO-based autoscaling agent with commercially used threshold-based function autoscaling and posit that a LSTM-based autoscaling agent is able to improve throughput by 18%, function execution by 13% and account for 8.4% more function instances.

View on arXivView PDF

Code Implementations(2)

Cloudslab/DRe-SCaleCommunity100%
MIT

DRe-SCale: A Deep Recurrent Reinforcement Learning Method for Intelligent AutoScaling of Serverless Functions

41Python, Jupyter NotebookApr 3, 20242 years agoMIT
SidAg26/DRe-SCaleCommunity78%
Apache-2.0

DRe-SCale: A Deep Recurrent Reinforcement Learning Method for Intelligent AutoScaling of Serverless Functions

114Python, Jupyter NotebookJan 3, 20248 months agoApache-2.0

Similar Papers

Cite this paper

@article{agarwal2023deep,
  title  = {A Deep Recurrent-Reinforcement Learning Method for Intelligent AutoScaling of Serverless Functions},
  author = {Siddharth Agarwal and Maria A. Rodriguez and Rajkumar Buyya},
  year   = {2023},
  eprint = {2308.05937},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.05937v2}
}

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/2308.05937.svg)](https://codeofpaper.com/paper/2308.05937)

Discussion