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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
2秒前
共享精神的应助被大方的盼雁采纳,获得10
2秒前
3秒前
心动发布了新的文献求助10
3秒前
3秒前
潘小潘完成签到,获得积分10
4秒前
万能图书馆的应助被哈哈采纳,获得30
6秒前
6秒前
7秒前
观莲客完成签到,获得积分10
7秒前
小象有点忙完成签到,获得积分10
7秒前
whisper完成签到,获得积分10
7秒前
Hao发布了新的文献求助10
8秒前
我爱小高发布了新的文献求助10
8秒前
8秒前
六零九一完成签到,获得积分10
9秒前
周林分发布了新的文献求助10
10秒前
谢雷XIELei的应助被xdc采纳,获得10
10秒前
嘤嘤嘤嘤嘤嘤嘤完成签到,获得积分10
12秒前
12秒前
小满发布了新的文献求助10
12秒前
彩色的灰完成签到,获得积分20
13秒前
迷路夜山完成签到,获得积分20
13秒前
明理雨莲发布了新的文献求助20
13秒前
13秒前
13秒前
标致思枫完成签到,获得积分10
14秒前
脑洞疼的应助被认真的不斜采纳,获得10
14秒前
SciGPT的应助被刘炳序采纳,获得10
15秒前
15秒前
发fa发布了新的文献求助10
15秒前
16秒前
17秒前
顾矜的应助被没招了没招了采纳,获得10
17秒前
NICHENG完成签到 ,获得积分10
17秒前
19秒前
19秒前
科研通AI6.4的应助被小繁采纳,获得10
19秒前
英俊的铭的应助被Candy采纳,获得10
20秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 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小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7889365
求助须知:如何正确求助?哪些是违规求助? 9400937
关于积分的说明 20843284
捐赠科研通 7492195
什么是DOI,文献DOI怎么找? 3357526
关于科研通互助平台的介绍 2496089
邀请新用户注册赠送积分活动 2385807