A Reinforcement Learning Approach to Reduce Serverless Function Cold Start Frequency

计算机科学 强化学习 功能(生物学) 分布式计算 云计算 工作量 操作系统 响应时间 人工智能 进化生物学 生物
作者
Siddharth Agarwal,María Alejandra Rodríguez,Rajkumar Buyya
出处
期刊:Cluster Computing and the Grid 被引量:18
标识
DOI:10.1109/ccgrid51090.2021.00097
摘要

Serverless computing is an event-driven cloud computing architecture for processing requests on-demand, using light weight function containers and a micro-services model. A variety of applications like Internet of Things (IoT) services, edge computing, and stream processing have been introduced to the serverless paradigm. These applications are characterized by their stringent response time requirements, therefore expecting a quick and fault tolerant feedback from the application. The serverless, or Function-as-a-Service (FaaS), paradigm suffers from function `cold start' challenges, where the serverless platform takes time to set up the dependencies, prepare the runtime environment and code for execution before serving the incoming workload. Most of the current works address the problem of cold start by (1) reducing the start-up or preparation time of function containers, or (2) reducing the frequency of function cold starts on the platform. Recent industrial research has identified that factors such as runtime environment, CPU and memory settings, invocation concurrency, and networking requirements, affect the cold start of a function. Therefore, we propose a Reinforcement Learning (Q-Learning) agent setting, to analyze the identified factors such as function CPU utilization, to ascertain the function-invocation patterns and reduce the function cold start frequency by preparing the function instances in advance. The proposed Q-Learning agent interacts with the Kubeless serverless platform by discretizing the environment states, actions and rewards with the use of per-instance CPU utilization, available function instances and success or failure rate of response, respectively. The workload is replicated using the Apache JMeter non-GUI toolkit and our agent is evaluated against the baseline default auto-scale feature of Kubeless. The agent demonstrates the capability of learning the invocation pattern, make informed decisions by preparing the optimal number of function instances over the period of learning, under controlled environment settings.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
璐璐的应助被平淡晓蓝采纳,获得20
刚刚
Orange的应助被三金采纳,获得10
1秒前
1秒前
2秒前
石榴汁的书完成签到,获得积分10
2秒前
茗姜完成签到,获得积分10
2秒前
yaya发布了新的文献求助10
3秒前
3秒前
4秒前
5秒前
DKO253完成签到,获得积分10
6秒前
hhh完成签到,获得积分10
6秒前
马晓莹发布了新的文献求助10
6秒前
甜甜的路灯关注了科研通微信公众号
6秒前
阳佟冬卉完成签到,获得积分10
6秒前
开心小懒虫完成签到,获得积分10
6秒前
1123发布了新的文献求助20
6秒前
脑洞疼的应助被daxz采纳,获得10
7秒前
萧萧完成签到 ,获得积分10
8秒前
通~发布了新的文献求助10
8秒前
舒适的映安完成签到,获得积分10
8秒前
没有逗发布了新的文献求助10
8秒前
9秒前
10秒前
10秒前
11秒前
风中芷烟完成签到,获得积分20
11秒前
LauTG完成签到,获得积分10
11秒前
11秒前
qingq完成签到,获得积分10
12秒前
景严完成签到,获得积分10
12秒前
12秒前
疯狂的凡梦完成签到 ,获得积分10
13秒前
13秒前
昭昭完成签到,获得积分10
13秒前
Liuruijia完成签到 ,获得积分10
13秒前
13秒前
DW的应助被别管我就是爱维尼采纳,获得20
13秒前
13秒前
搜集达人的应助被雨滴油纸伞采纳,获得10
14秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Performance standards for antimicrobial disk and dilution susceptibility tests for bacteria isolated from animals 888
Rosenblum, Global Change Biology 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre (2012-09-10) 666
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 520
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7881528
求助须知:如何正确求助?哪些是违规求助? 9395413
关于积分的说明 20810266
捐赠科研通 7483659
什么是DOI,文献DOI怎么找? 3354989
关于科研通互助平台的介绍 2494310
邀请新用户注册赠送积分活动 2382288