Computer Science ›› 2023, Vol. 50 ›› Issue (5): 313-321.doi: 10.11896/jsjkx.220400019

• Computer Network • Previous Articles     Next Articles

Study on Load Balancing Algorithm of Microservices Based on Machine Learning

YANG Qianlong1, JIANG Lingyun1,2   

  1. 1 School of Communication and Information Engineering,Nanjing University of Posts and Telecommunications,Nanjing 210003,China
    2 Internet of Things Research Institute,Nanjing University of Posts and Telecommunications,Nanjing 210003,China
  • Received:2022-04-02 Revised:2022-04-19 Online:2023-05-15 Published:2023-05-06
  • About author:YANG Qianlong,born in 1998,postgraduate.His main research interests include microservice load balancing and machine learning.
    JIANG Lingyun,born in 1971,master,associate professor.Her main research interest is the next generation network.
  • Supported by:
    Key Research and Development Program of Jiangsu Province(BE2020084-4).

Abstract: With the continuous development of cloud computing technology,the microservice architecture has received more and more attention.Since it is more convenient in development and maintenance to divide large-scale applications into fine-grained single services,lots of large applications have evolved from monolithic architecture to microservice architecture.In the microservice architecture,in order to improve the availability of microservices,microservice instances are usually deployed in a cluster structure.Aiming at the problem of unbalanced load of server nodes in a microservice cluster with the increase of the number of tasks,a load balancing algorithm based on Xgboost,shortest predictive response time,is proposed.By selecting the characteristic para-meters that affect the response time of the task,and then using machine learning to predict the response time of new task,the task is finally assigned to the server node with the smallest predicted response time,so as to achieve the purpose of load balancing between server nodes.The results show that using the proposed load balancing algorithm has a certain improvement in throughput,cut-off rate and average response time compared with other load algorithms,and it is more suitable for microservice clusters in high concurrency environments.

Key words: Microservices, Load balancing, Ensemble learning, Predicted response time, Xgboost

CLC Number: 

  • TP302
[1]WANG H,WANG Y,LIANG G,et al.Research on Load Balancing Technology for Microservice Architecture[C]//MATEC Web of Conferences.EDP Sciences,2021.
[2]LARRUCEA X,SANTAMARIA I,COLOMO-PALACIOS R,et al.Microservices[J].IEEE Software,2018,35(3):96-100.
[3]SHAO J,ZHANG X,CAO Z.Research on Context-based In-stances Selection of Microservice[C]//Proceedings of the 2nd International Conference on Computer Science and Application Engineering.2018:1-5.
[4]YI C,ZHANG X,CAO W.Dynamic Weight Based Load Balancing for Microservice Cluster[C]//Proceedings of the 2nd International Conference on Computer Science and Application Engineering.2018:1-7.
[5]NADAREISHVILI I,MITRA R,MCLARTY M,et al.Micro-service Architecture:Aligning Principles,Practices,and Culture[M].O'Reilly Media,Inc.,2016.
[6]ZHU L,CUI J,XIONG G.Improved Dynamic Load BalancingAlgorithm Based on Least-Connection Scheduling[C]//2018 IEEE 4th Information Technology and Mechatronics Enginee-ring Conference(ITOEC).IEEE,2018:1858-1862.
[7]LIU X D,JIN Y,SONG Y H,et al.Queue-Waiting-Time Based Load Balancing Algorithm for Fine-Grain Microservices[C]//International Conference on Services Computing.Cham:Sprin-ger,2018:176-191.
[8]CUI J,CHEN P,YU G.A Learning-based Dynamic Load Balancing Approach for Microservice Systems in Multi-cloud Environment[C]//2020 IEEE 26th International Conference on Parallel and Distributed Systems(ICPADS).IEEE,2020:334-341.
[9]CAPORUSCIO M,TOMA M D,MUCCINI H,et al.A Machine Learning Approach to Service Discovery for Microservice Architectures[C]//European Conference on Software Architecture.Cham:Springer,2021:66-82.
[10]YI C.Research on Microservice Cluster Load Balancing Technology[D].Dalian:Dalian Maritime University,2019.
[11]DONG X,YU Z,CAO W,et al.A Survey on Ensemble Learning[J].Frontiers of Computer Science,2020,14(2):241-258.
[12]CUTLER A,CUTLER D R,STEVENS J R.Random forests[M]//Ensemble Machine Learning.Boston,MA:Springer,2012:157-175.
[13]RAO H,SHI X,RODRIGUE A K,et al.Feature selection based on artificial bee colony and gradient boosting decision tree[J].Applied Soft Computing,2019,74:634-642.
[14]CHEN T,HE T,BENESTY M,et al.Xgboost:extreme gradient boosting[J].R package version 0.4-2,2015,1(4):1-4.
[15]2021:Alibaba Cloud Product[EB/OL].https://www.alibabacloud.com/product.
[16]LUO S,XU H,LU C,et al.Characterizing Microservice Depen-dency and Performance:Alibaba Trace Analysis[C]//Procee-dings of the ACM Symposium on Cloud Computing.2021:412-426.
[17]MATAM S,JAIN J.Pro Apache JMeter:web application performance testing[M].Apress,2017.
[18]JIN P,HAO X,WANG X,et al.Energy-efficient task scheduling for CPU-intensive streaming jobs on Hadoop[J].IEEE Transactions on Parallel and Distributed Systems,2018,30(6):1298-1311.
[19]FERREIRA DA SILVA R,ORGERIE A C,CASANOVA H,et al.Accurately Simulating Energy Consumption of I/O-intensive Scientific Workflows[C]//International Conference on Computational Science.Cham:Springer,2019:138-152.
[1] FU Xiong, FANG Lei, WANG Junchang. Edge Server Placement for Energy Consumption and Load Balancing [J]. Computer Science, 2023, 50(6A): 220300088-5.
[2] XIE Haoshan, LIU Xiaonan, ZHAO Chenyan, LIU Zhengyu. Simulation Implementation of HHL Algorithm Based on Songshan Supercomputer System [J]. Computer Science, 2023, 50(6): 74-80.
[3] CHEN Ziqiang, XIA Zhengyou. Failure Recovery Model for Single Link with Congestion-Avoidance in SDN [J]. Computer Science, 2023, 50(4): 212-219.
[4] HU Zhongyuan, XUE Yu, ZHA Jiajie. Survey on Evolutionary Recurrent Neural Networks [J]. Computer Science, 2023, 50(3): 254-265.
[5] SUN Fu-quan, LIANG Ying. Identification of 6mA Sites in Rice Genome Based on XGBoost Algorithm [J]. Computer Science, 2022, 49(6A): 309-313.
[6] TIAN Zhen-zhen, JIANG Wei, ZHENG Bing-xu, MENG Li-min. Load Balancing Optimization Scheduling Algorithm Based on Server Cluster [J]. Computer Science, 2022, 49(6A): 639-644.
[7] LIN Xi, CHEN Zi-zhuo, WANG Zhong-qing. Aspect-level Sentiment Classification Based on Imbalanced Data and Ensemble Learning [J]. Computer Science, 2022, 49(6A): 144-149.
[8] KANG Yan, WU Zhi-wei, KOU Yong-qi, ZHANG Lan, XIE Si-yu, LI Hao. Deep Integrated Learning Software Requirement Classification Fusing Bert and Graph Convolution [J]. Computer Science, 2022, 49(6A): 150-158.
[9] WANG Yu-fei, CHEN Wen. Tri-training Algorithm Based on DECORATE Ensemble Learning and Credibility Assessment [J]. Computer Science, 2022, 49(6): 127-133.
[10] GAO Jie, LIU Sha, HUANG Ze-qiang, ZHENG Tian-yu, LIU Xin, QI Feng-bin. Deep Neural Network Operator Acceleration Library Optimization Based on Domestic Many-core Processor [J]. Computer Science, 2022, 49(5): 355-362.
[11] HAN Hong-qi, RAN Ya-xin, ZHANG Yun-liang, GUI Jie, GAO Xiong, YI Meng-lin. Study on Cross-media Information Retrieval Based on Common Subspace Classification Learning [J]. Computer Science, 2022, 49(5): 33-42.
[12] LI Jing-tai, WANG Xiao-dan. XGBoost for Imbalanced Data Based on Cost-sensitive Activation Function [J]. Computer Science, 2022, 49(5): 135-143.
[13] REN Shou-peng, LI Jin, WANG Jing-ru, YUE Kun. Ensemble Regression Decision Trees-based lncRNA-disease Association Prediction [J]. Computer Science, 2022, 49(2): 265-271.
[14] CHEN Wei, LI Hang, LI Wei-hua. Ensemble Learning Method for Nucleosome Localization Prediction [J]. Computer Science, 2022, 49(2): 285-291.
[15] TAN Shuang-jie, LIN Bao-jun, LIU Ying-chun, ZHAO Shuai. Load Scheduling Algorithm for Distributed On-board RTs System Based on Machine Learning [J]. Computer Science, 2022, 49(2): 336-341.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!