Microservice Deployment in Edge Computing Based on Deep Q Learning

被引:51
作者
Lv, Wenkai [1 ]
Wang, Quan [1 ]
Yang, Pengfei [1 ]
Ding, Yunqing [1 ]
Yi, Bijie [1 ]
Wang, Zhenyi [1 ]
Lin, Chengmin [1 ]
机构
[1] Xidian Univ, Sch Comp Sci & Technol, Xian 710071, Peoples R China
基金
中国国家自然科学基金;
关键词
Microservice architectures; Containers; Load modeling; Edge computing; Time factors; Load management; Scalability; Microservice; interaction awareness; load balancing; multi-objective model; deep Q learning; elastic scaling; ORCHESTRATION; CONTAINERS; ALLOCATION; FRAMEWORK; DOCKER;
D O I
10.1109/TPDS.2022.3150311
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The microservice deployment strategy is promising in reducing the overall service response time in the microservice-oriented edge computing platform. However, existing works ignore the effect of different interaction frequencies among microservices and the decrease in service execution performance caused by the increased node loads. In this article, we first model the invocation relationships among microservices as an undirected and weighted interaction graph to characterize the communication overhead. Then, we propose a multi-objective microservice deployment problem (MMDP) in edge computing. MMDP aims to minimize the communication overhead while achieving load balance between edge nodes. Without the requirement for domain experts, we propose Reward Sharing Deep Q Learning (RSDQL), a learning-based algorithm, to solve MMDP and obtain the optimal deployment strategy. In addition, to improve the scalability of the services, we propose an Elastic Scaling algorithm (ES) based on heuristics to deal with the dynamic pressure of requests. Finally, we conduct a series of experiments in Kubernetes to evaluate the performance of our approach. Experimental results indicate that, compared with interaction-aware strategy and Kubernetes default strategy, RSDQL has shorter response times, more balanced resource loads, and makes services scale elastically according to the request pressure.
引用
收藏
页码:2968 / 2978
页数:11
相关论文
共 51 条
[1]   Unsupervised learning approach for web application auto-decomposition into microservices [J].
Abdullah, Muhammad ;
Iqbal, Waheed ;
Erradi, Abdelkarim .
JOURNAL OF SYSTEMS AND SOFTWARE, 2019, 151 :243-257
[2]   Orchestration of Microservices for IoT Using Docker and Edge Computing [J].
Alam, Muhammad ;
Rufino, Joao ;
Ferreira, Joaquim ;
Ahmed, Syed Hassan ;
Shah, Nadir ;
Chen, Yuanfang .
IEEE COMMUNICATIONS MAGAZINE, 2018, 56 (09) :118-123
[3]  
[Anonymous], 2014, RK3399
[4]  
[Anonymous], 2020, KUBERNETES
[5]  
[Anonymous], 2021, Amazon Elastic Compute Cloud
[6]  
Apache JMeter, 2021, JMETER
[7]   Performance Modeling and Workflow Scheduling of Microservice-Based Applications in Clouds [J].
Bao, Liang ;
Wu, Chase ;
Bu, Xiaoxuan ;
Ren, Nana ;
Shen, Mengqing .
IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2019, 30 (09) :2101-2116
[8]   How to place your apps in the fog: State of the art and open challenges [J].
Brogi, Antonio ;
Forti, Stefano ;
Guerrero, Carlos ;
Lera, Isaac .
SOFTWARE-PRACTICE & EXPERIENCE, 2020, 50 (05) :719-740
[9]   Spatio-Temporal Edge Service Placement: A Bandit Learning Approach [J].
Chen, Lixing ;
Xu, Jie ;
Ren, Shaolei ;
Zhou, Pan .
IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS, 2018, 17 (12) :8388-8401
[10]   IoT Microservice Deployment in Edge-Cloud Hybrid Environment Using Reinforcement Learning [J].
Chen, Lulu ;
Xu, Yangchuan ;
Lu, Zhihui ;
Wu, Jie ;
Gai, Keke ;
Hung, Patrick C. K. ;
Qiu, Meikang .
IEEE INTERNET OF THINGS JOURNAL, 2021, 8 (16) :12610-12622