Skip to content

Dynamic Resource Allocation in Serverless Architectures via Reinforcement Learning

Sep 2026 · Zenodo (CERN European Organization for Nuclear Research)
Cloud Computing and Resource Management

Abstract

Serverless computing architectures offer significant advantages in terms of scalability and cost-efficiency. However, traditional serverless resource allocation strategies often rely on static configurations or simple heuristics, which can lead to suboptimal performance and increased costs. This paper proposes a novel approach to dynamic resource allocation in serverless environments using reinforcement learning (RL). The core idea is to train an RL agent to intelligently allocate serverless function resources—specifically, memory (M) and CPU (C)—in response to fluctuating demand. The agent observes system metrics such as function invocation rates, execution times, and error rates, and uses this information to learn an optimal policy for resource allocation. The objective is to minimize the total cost while maintaining a desired level of performance. The system utilizes a Q-learning algorithm to learn the optimal Q-values, representing the expected cumulative reward for taking a specific action in a given state. The agent's policy is then derived from these learned Q-values. Simulation results demonstrate that the RL-based approach significantly outperforms traditional allocation methods in terms of both cost reduction and performance improvement. The research highlights the potential of RL for optimizing resource utilization in serverless systems and contributes to a more efficient and responsive cloud computing landscape.

View source

Similar papers

#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#machine learning Review Open access Jun 2014

Why Early-Stage Software Startups Fail: A Behavioral Framework

This state-of-practice investigation was performed using a literature review followed by a multiple-case study approach and presents how inconsistency between managerial strategies and execution can lead to failure by means of a behavioral framework.

Carmine Giardino, Xiaofeng Wang, P. Abrahamsson · 175 citations · ⚡19
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#machine learning Review Open access May 2016

Key Challenges in Software Startups Across Life Cycle Stages

It is found that what perceived as biggest challenges by software startups do vary across different life cycle stages, even though its significance decreases when the learning focuses of the startups move from problem to solution and their products mature.

Xiaofeng Wang, Henry Edison, Sohaib Shahid Bajwa et al. · 62 citations · ⚡6

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.