Electronic Science and Technology ›› 2024, Vol. 37 ›› Issue (7): 89-94.doi: 10.16180/j.cnki.issn1007-7820.2024.07.012

Previous Articles    

Dynamic Weight Load Balancing Algorithm Based on Microservice for Smart Street Lamp Cloud Platform

YANG Zemin, XIA Changquan, LI Jiaying, ZHU Jinrong, HAN Yifan   

  1. School of Physical Science and Technology,Yangzhou University,Yangzhou 225100,China
  • Received:2023-02-15 Online:2024-07-15 Published:2024-07-17
  • Supported by:
    National Natural Science Foundation of China(61802336);Jiangsu Graduate Innovation Program(SJCX22_1707)

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 algorithm 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 algorithm, the average response time and the actual number of concurrent connections of the proposed method are also improved.

Key words: cloud platform, dynamic weight, load balancing, internet of things, microservice, cluster, smart street light, residual load

CLC Number: 

  • TP301.6