Electronic Science and Technology ›› 2023, Vol. 36 ›› Issue (9): 79-85.doi: 10.16180/j.cnki.issn1007-7820.2023.09.012

Previous Articles     Next Articles

A Dynamic-Static Load Balancing Algorithm Based on Improved Genetic Algorithm

HU Yifei,BAO Ziqun,BAO Xiaoan   

  1. School of Information, Zhejiang Sci-Tech University,Hangzhou 310018,China
  • Received:2022-04-13 Online:2023-09-15 Published:2023-09-18
  • Supported by:
    National Natural Science Foundation of China(6207050141);National Student Innovation and Entrepreneurship Training Program(202010338024)

Abstract:

In view of the problems that current load balancing algorithm affects system efficiency under low load and poor distribution efficiency under high load, based on Nginx server, a dynamic and static load balancing algorithm based on improved genetic algorithm is proposed in this study. The algorithm chooses to use server performance parameters based on CPU performance, memory performance, disk I/O and network bandwidth as server node performance evaluation indexes and static weighted polling algorithm weights under low load, and designs a dynamic load balancing algorithm under high load based on the change of node performance utilization rate as a percentage of the cluster average load utilization rate by introducing operation conversion thresholds and dynamic. By introducing the improved genetic algorithm of operation transition threshold and dynamic triangular function operation probability as the threshold calculation method, the transformation of static algorithm dominant area into dynamic algorithm dominant area is calculated. This study designs comparison experiments to verify that the proposed algorithm has better load balancing effect when compared with weighted polling algorithm, probabilistic meritocracy algorithm and dnfs_conn algorithm in the experimental environment, and has about 15% improvement in the values of average response time and actual concurrent connections when compared with dnfs_conn algorithm.

Key words: Nginx, load balancing, performance evaluation, server clustering, genetic algorithms, dynamic algorithm, static algorithms, weighted polling

CLC Number: 

  • TP368.5