Reducing cold start delay in serverless computing using lightweight virtual machines

被引:0
|
作者
Karamzadeh, Amirmohammad [1 ]
Shameli-Sendi, Alireza [1 ]
机构
[1] Shahid Beheshti Univ SBU, Fac Comp Sci & Engn, Tehran, Iran
关键词
Serverless computing; Function as a service; Cold start delay; Lightweight virtual machine; Machine learning;
D O I
10.1016/j.jnca.2024.104030
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In recent years, serverless computing has gained considerable attention in academic, professional, and business circles. Unique features such as code development flexibility and the cost-efficient pay-as-you-go pricing model have led to predictions of widespread adoption of serverless services. Major players in the cloud computing sector, including industry giants like Amazon, Google, and Microsoft, have made significant advancements in the field of serverless services. However, cloud computing faces complex challenges, with two prominent ones being the latency caused by cold start instances and security vulnerabilities associated with container escapes. These challenges undermine the smooth execution of isolated functions, a concern amplified by technologies like Google gVisor and Kata Containers. While the integration of tools like lightweight virtual machines has alleviated concerns about container escape vulnerabilities, the primary issue remains the increased delay experienced during cold start instances in the execution of serverless functions. The purpose of this research is to propose an architecture that reduces cold start delay overhead by utilizing lightweight virtual machines within a commercial architecture, thereby achieving a setup that closely resembles real-world scenarios. This research employs supervised learning methodologies to predict function invocations by leveraging the execution patterns of other program functions. The goal is to proactively mitigate cold start scenarios by invoking the target function before actual user initiation, effectively transitioning from cold starts to warm starts. In this study, we compared our approach with two fixed and variable window strategies. Commercial platforms like Knative, OpenFaaS, and OpenWhisk typically employ a fixed 15-minute window during cold starts. In contrast to these platforms, our approach demonstrated a significant reduction in cold start incidents. Specifically, when calling a function 200 times with 5, 10, and 20 invocations within one hour, our approach achieved reductions in cold starts by 83.33%, 92.13%, and 90.90%, respectively. Compared to the variable window approach, which adjusts the window based on cold start values, our proposed approach was able to prevent 82.92%, 91.66%, and 90.56% of cold starts for the same scenario. These results highlight the effectiveness of our approach in significantly reducing cold starts, thereby enhancing the performance and responsiveness of serverless functions. Our method outperformed both fixed and variable window strategies, making it a valuable contribution to the field of serverless computing. Additionally, the implementation of preinvocation strategies to convert cold starts into warm starts results in a substantial reduction in the execution time of functions within lightweight virtual machines.
引用
收藏
页数:15
相关论文
共 50 条
  • [31] Cloud Computing using OCRP and Virtual Machines for Dynamic Allocation of Resources
    Vichare, Abhishek
    Gomes, Zenia P.
    Fernandes, Noella
    Cardoza, Flavin
    2015 INTERNATIONAL CONFERENCE ON TECHNOLOGY FOR SUSTAINABLE DEVELOPMENT (ICTSD-2015), 2015,
  • [32] Efficient Distribution of Virtual Machines using Honey Bee Windowing in Cloud Computing
    Firos, A.
    Khanum, Seema
    2017 IEEE INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION AND AUTOMATION (ICCCA), 2017, : 1292 - 1295
  • [33] Using Logistic Regression to Improve Virtual Machines Management in Cloud Computing Systems
    Issa, Manar Bani
    Daraghmeh, Mustafa
    Jararweh, Yaser
    Al-Ayyoub, Mahmoud
    Alsmirat, Mohammad A.
    Benkhelifa, Elhadj
    2017 IEEE 14TH INTERNATIONAL CONFERENCE ON MOBILE AD HOC AND SENSOR SYSTEMS (MASS), 2017, : 628 - 635
  • [34] Reducing Memory Footprint of JavaScript Virtual Machines for Embedded Systems Using Storage Strategy"
    Nagaya T.
    Ugawa T.
    Computer Software, 2023, 40 (04) : 54 - 66
  • [35] Dynamic deployment of virtual machines in cloud computing using multi-objective optimization
    Xu, Bo
    Peng, Zhiping
    Xiao, Fangxiong
    Gates, Antonio Marcel
    Yu, Jian-Ping
    SOFT COMPUTING, 2015, 19 (08) : 2265 - 2273
  • [36] A study on distributed transcoding using dynamic allocation of virtual machines in a cloud computing environment
    Gu, Seokmo
    Seo, Aria
    Kim, Yei-Chang
    Journal of Systems and Information Technology, 2015, 17 (02) : 113 - 120
  • [37] Using recommender clustering to improve quality of services with sustainable virtual machines in cloud computing
    Mehran Aghaei
    Parvaneh Asghari
    Sepideh Adabi
    Hamid Haj Seyyed Javadi
    Cluster Computing, 2023, 26 : 1479 - 1493
  • [38] An improved in tasks allocation system for virtual machines in cloud computing using HBAC algorithm
    Ullah, Arif
    Nawi, Nazri Mohd
    JOURNAL OF AMBIENT INTELLIGENCE AND HUMANIZED COMPUTING, 2021, 14 (4) : 3713 - 3726
  • [39] Resources and Costs for Microbial Sequence Analysis Evaluated Using Virtual Machines and Cloud Computing
    Angiuoli, Samuel V.
    White, James R.
    Matalka, Malcolm
    White, Owen
    Fricke, W. Florian
    PLOS ONE, 2011, 6 (10):
  • [40] Sercon: Server Consolidation Algorithm using Live Migration of Virtual Machines for Green Computing
    Murtazaev, Aziz
    Oh, Sangyoon
    IETE TECHNICAL REVIEW, 2011, 28 (03) : 212 - 231