Application of Proximal Policy Optimization for Resource Orchestration in Serverless Edge Computing

被引:0
作者
Femminella, Mauro [1 ,2 ]
Reali, Gianluca [1 ,2 ]
机构
[1] Univ Perugia, Dept Engn, Via G Duranti 93, I-06125 Perugia, Italy
[2] Consorzio Nazl Interuniv Telecomunicazioni CNIT, I-43124 Parma, Italy
关键词
serverless; edge computing; Kubernetes; horizontal pod autoscaling; reinforcement learning; performance evaluation;
D O I
10.3390/computers13090224
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Serverless computing is a new cloud computing model suitable for providing services in both large cloud and edge clusters. In edge clusters, the autoscaling functions play a key role on serverless platforms as the dynamic scaling of function instances can lead to reduced latency and efficient resource usage, both typical requirements of edge-hosted services. However, a badly configured scaling function can introduce unexpected latency due to so-called "cold start" events or service request losses. In this work, we focus on the optimization of resource-based autoscaling on OpenFaaS, the most-adopted open-source Kubernetes-based serverless platform, leveraging real-world serverless traffic traces. We resort to the reinforcement learning algorithm named Proximal Policy Optimization to dynamically configure the value of the Kubernetes Horizontal Pod Autoscaler, trained on real traffic. This was accomplished via a state space model able to take into account resource consumption, performance values, and time of day. In addition, the reward function definition promotes Service-Level Agreement (SLA) compliance. We evaluate the proposed agent, comparing its performance in terms of average latency, CPU usage, memory usage, and loss percentage with respect to the baseline system. The experimental results show the benefits provided by the proposed agent, obtaining a service time within the SLA while limiting resource consumption and service loss.
引用
收藏
页数:21
相关论文
共 45 条
[1]   A Deep Recurrent-Reinforcement Learning Method for Intelligent AutoScaling of Serverless Functions [J].
Agarwal, Siddharth ;
Rodriguez, Maria A. ;
Buyya, Rajkumar .
IEEE TRANSACTIONS ON SERVICES COMPUTING, 2024, 17 (05) :1899-1910
[2]   A Comparison of Reinforcement Learning Techniques for Fuzzy Cloud Auto-Scaling [J].
Arabnejad, Hamid ;
Pahl, Claus ;
Jamshidi, Pooyan ;
Estrada, Giovani .
2017 17TH IEEE/ACM INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND GRID COMPUTING (CCGRID), 2017, :64-73
[3]   Resource Provisioning and Allocation in Function-as-a-Service Edge-Clouds [J].
Ascigil, Onur ;
Tasiopoulos, Argyrios G. ;
Truong Khoa Phan ;
Sourlas, Vasilis ;
Psaras, Ioannis ;
Pavlou, George .
IEEE TRANSACTIONS ON SERVICES COMPUTING, 2022, 15 (04) :2410-2424
[4]   Putting Current State of the art Object Detectors to the Test: Towards Industry Applicable Leather Surface Defect Detection [J].
Aslam, Masood ;
Khan, Tariq Mehmood ;
Naqvi, Syed Saud ;
Holmes, Geoff .
2021 INTERNATIONAL CONFERENCE ON DIGITAL IMAGE COMPUTING: TECHNIQUES AND APPLICATIONS (DICTA 2021), 2021, :526-533
[5]  
Balla D, 2020, 2020 43RD INTERNATIONAL CONFERENCE ON TELECOMMUNICATIONS AND SIGNAL PROCESSING (TSP), P358, DOI [10.1109/TSP49548.2020.9163456, 10.1109/tsp49548.2020.9163456]
[6]   DYNAMIC PROGRAMMING [J].
BELLMAN, R .
SCIENCE, 1966, 153 (3731) :34-&
[7]   Reinforcement Learning Applicability for Resource-Based Auto-scaling in Serverless Edge Applications [J].
Benedetti, Priscilla ;
Femminella, M. ;
Reali, G. ;
Steenhaut, Kris .
2022 IEEE INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING AND COMMUNICATIONS WORKSHOPS AND OTHER AFFILIATED EVENTS (PERCOM WORKSHOPS), 2022,
[8]  
docs.kernel, Completely Fair Scheduler
[9]  
ETSI, 2023, ETSI ISG MEC
[10]   Comparison of Reinforcement Learning Algorithms for Edge Computing Applications Deployed by Serverless Technologies [J].
Femminella, Mauro ;
Reali, Gianluca .
ALGORITHMS, 2024, 17 (08)