Reinforcement Learning (RL) Augmented Cold Start Frequency Reduction in Serverless Computing

08/15/2023
by   Siddharth Agarwal, et al.
0

Function-as-a-Service is a cloud computing paradigm offering an event-driven execution model to applications. It features serverless attributes by eliminating resource management responsibilities from developers and offers transparent and on-demand scalability of applications. Typical serverless applications have stringent response time and scalability requirements and therefore rely on deployed services to provide quick and fault-tolerant feedback to clients. However, the FaaS paradigm suffers from cold starts as there is a non-negligible delay associated with on-demand function initialization. This work focuses on reducing the frequency of cold starts on the platform by using Reinforcement Learning. Our approach uses Q-learning and considers metrics such as function CPU utilization, existing function instances, and response failure rate to proactively initialize functions in advance based on the expected demand. The proposed solution was implemented on Kubeless and was evaluated using a normalised real-world function demand trace with matrix multiplication as the workload. The results demonstrate a favourable performance of the RL-based agent when compared to Kubeless' default policy and function keep-alive policy by improving throughput by up to 8.81 and reducing computation load and resource wastage by up to 55 respectively, which is a direct outcome of reduced cold starts.

READ FULL TEXT
research
11/06/2019

A Language-based Serverless Function Accelerator

Serverless computing is an approach to cloud computing that allows progr...
research
07/02/2020

COCOA: Cold Start Aware Capacity Planning for Function-as-a-Service Platforms

Function-as-a-Service (FaaS) is increasingly popular in the software ind...
research
09/27/2021

How Low Can You Go? Practical cold-start performance limits in FaaS

Function-as-a-Service (FaaS) has recently emerged as a new cloud computi...
research
08/22/2023

A Deep Reinforcement Learning based Algorithm for Time and Cost Optimized Scaling of Serverless Applications

Serverless computing has gained a strong traction in the cloud computing...
research
07/17/2022

LambdaLite: Application-Level Optimization for Cold Start Latency in Serverless Computing

Serverless computing is an emerging cloud computing paradigm that frees ...
research
05/28/2021

Performance Evaluation of Snapshot Methods to Warm the Serverless Cold Start

The serverless computing model strengthens the cloud computing tendency ...
research
05/11/2023

Optimizing Memory Mapping Using Deep Reinforcement Learning

Resource scheduling and allocation is a critical component of many high ...

Please sign up or login with your details

Forgot password? Click here to reset