电子科技2024,Vol.37Issue(7):89-94,6.DOI:10.16180/j.cnki.issn1007-7820.2024.07.012
基于智慧路灯云平台的动态权重负载均衡算法
Dynamic Weight Load Balancing Algorithm Based on Microservice for Smart Street Lamp Cloud Platform
摘要
Abstract
A large-scale street lights send data to the cloud platform,causing load imbalance among nodes of the server in high concurrency,resulting in communication failure.In view of this problem,based on microservices,this study proposes a dynamic weight load balancing algorithm based on the smart street lamp cloud platform.The al-gorithm calculates the respective weight coefficients and the initial weights of each node according to the hardware performance of each server during initialization,and dynamically adjusts the server weights according to the idle rate of CPU(Central Processing Unit)and network bandwidth during the request process to realize load optimization.By setting the minimum threshold and comparing it with the calculated remaining load rate,the weight of the server that reaches the upper limit of the load is set to 0 to prevent the server from being overloaded.The test results show that the proposed algorithm has a better load balancing effect than the minimum number of connections algorithm and the smooth weighted round robin algorithm in the experimental environment.Compared with the dynamic weight algo-rithm,the average response time and the actual number of concurrent connections of the proposed method are also im-proved.关键词
云平台/动态权重/负载均衡/物联网/微服务/集群/智慧路灯/剩余负载Key words
cloud platform/dynamic weight/load balancing/internet of things/microservice/cluster/smart street light/residual load分类
信息技术与安全科学引用本文复制引用
杨泽民,夏长权,李佳颖,朱金荣,韩一帆..基于智慧路灯云平台的动态权重负载均衡算法[J].电子科技,2024,37(7):89-94,6.基金项目
国家自然科学基金(61802336) (61802336)
江苏省研究生创新计划(SJCX22_1707)National Natural Science Foundation of China(61802336) (SJCX22_1707)
Jiangsu Graduate Innovation Program(SJCX22_1707) (SJCX22_1707)