[Paper Review] Harvesting Idle Resources in Serverless Computing via Reinforcement Learning.
This paper proposes FaaSRM, a reinforcement learning-based resource manager for serverless computing that dynamically harvests idle resources from over-provisioned functions and reallocates them to under-provisioned ones. By monitoring real-time utilization and applying a safeguarded deep reinforcement learning mechanism, FaaSRM reduces function execution time by 35.81% on 98% of invocations, leveraging idle resources from 38.8% of invocations and accelerating 39.2%.
Serverless computing has become a new cloud computing paradigm that promises to deliver high cost-efficiency and simplified cloud deployment with automated resource scaling at a fine granularity. Users decouple a cloud application into chained functions and preset each serverless function's memory and CPU demands at megabyte-level and core-level, respectively. Serverless platforms then automatically scale the number of functions to accommodate the workloads. However, the complexities of chained functions make it non-trivial to accurately determine the resource demands of each function for users, leading to either resource over-provision or under-provision for individual functions. This paper presents FaaSRM, a new resource manager (RM) for serverless platforms that maximizes resource efficiency by dynamically harvesting idle resources from functions over-supplied to functions under-supplied. FaaSRM monitors each function's resource utilization in real-time, detects over-provisioning and under-provisioning, and applies deep reinforcement learning to harvest idle resources safely using a safeguard mechanism and accelerate functions efficiently. We have implemented and deployed a FaaSRM prototype in a 13-node Apache OpenWhisk cluster. Experimental results on the OpenWhisk cluster show that FaaSRM reduces the execution time of 98% of function invocations by 35.81% compared to the baseline RMs by harvesting idle resources from 38.8% of the invocations and accelerating 39.2% of the invocations.
Motivation & Objective
- To address resource under-provisioning and over-provisioning in serverless computing due to inaccurate user-specified function resource allocations.
- To improve resource efficiency in serverless platforms by dynamically reallocating idle resources from over-provisioned to under-provisioned functions.
- To design a safe, real-time resource management system that maintains function performance while maximizing utilization.
Proposed method
- FaaSRM monitors real-time CPU and memory utilization of each serverless function in the execution pipeline.
- It employs deep reinforcement learning to decide when and how much idle resource to harvest from over-provisioned functions.
- A safeguard mechanism ensures that harvested resources do not degrade the performance of the target functions.
- The system identifies over-provisioned and under-provisioned functions through continuous runtime monitoring and workload analysis.
- Resource reallocation is applied dynamically during function execution to accelerate performance where possible.
- The prototype is deployed on a 13-node Apache OpenWhisk cluster for empirical evaluation.
Experimental results
Research questions
- RQ1Can a reinforcement learning-based system effectively detect and harvest idle resources from over-provisioned serverless functions without degrading performance?
- RQ2How much can function execution time be reduced by dynamically reallocating idle resources in a serverless environment?
- RQ3What is the impact of safe resource harvesting on the performance of under-provisioned functions in a real-world serverless cluster?
- RQ4How frequently do over-provisioned and under-provisioned functions occur in real serverless workloads?
- RQ5What is the trade-off between resource efficiency and function reliability in dynamic resource reallocation?
Key findings
- FaaSRM reduces the execution time of 98% of function invocations by 35.81% compared to baseline resource managers.
- The system successfully harvested idle resources from 38.8% of function invocations during runtime.
- FaaSRM accelerated 39.2% of function invocations by reallocating idle resources from over-provisioned counterparts.
- The safeguard mechanism ensured that no performance degradation occurred during resource harvesting.
- The prototype demonstrated consistent performance improvements across diverse workloads in a 13-node OpenWhisk cluster.
- The results confirm that dynamic resource reallocation via reinforcement learning significantly enhances resource efficiency in 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 NubintThis review was generated by AI from the original paper. Please check the paper before citing it.