• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science

Previous Articles     Next Articles

A loadbalancing algorithm based on LVS cluster in cloud

WANG Xiaolong,JIANG Chaohui   

  1. (College of Computer Science and Technology,Guizhou University,Guiyang 550025,China)
  • Received:2015-07-08 Revised:2016-09-11 Online:2016-11-25 Published:2016-11-25

Abstract:

In order to deal with the new issue caused by the application of traditional load balancing techniques in the cloud computing environment, we propose a loadbalancing algorithm based on LVS cluster. Firstly, we calculate the weight of each node and divide the servers into different groups, in which their performance should be equal (or approximately equal). The number of nodes in each group should also be equal (or approximately equal). The load balancer regularly collects the data of CPU, memory, I/O, network utilization and response time of each node in the cluster, and dynamically alters the weight of nodes, and selects the best node in this group by using the improved algorithm. At the same time, the comprehensive load of each node and the group load are calculated. Finally, we select the best node of the cluster and carry out the rational distribution of task requests via the group load balancer (GLB), to solve the delay caused by too many concurrent requests in the cloud computing environment. Experimental results show that compared with the weighted round Robin (WRR) and weighted least connections (WLC), the proposed algorithm can concurrently maintain a shorter response time and a higher throughput, which makes the cluster system load balanced.

Key words: cloud computing, dynamic, load balance, LVS, algorithm