Study and Realization of Dynamic Load Balancing Based on Linux Virtual Server Cluster

Author
YanXianYou
Advisor
ZhangXiaoLing
School
Beijing University of Technology
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
186
Citations
4

Request the full text

Abstract

Applying load balancing technology, Linux Virtual Server (LVS) cluster is a virtual server composed of many servers. It provides a scalable and high availability solution at a low price to meet the need of rapid increasing network service requests. One of the kernel technologies of this cluster is load balancing technology, whose function is to transfer the requests to a real server according to a scheduling algorithm. The goal of load balancing is to make full use of all real servers as it can as possible and to shorten the service response time of the whole cluster system. Although LVS provides the load balancing scheduling mechanism, its weighted value of load scheduling algorithm is static and the scheduler can not dynamically adjust the weighted value accordingly, which will easily lead to the leaning load of real servers.In order to resolve the problem, this thesis designs a solution that scheduler collects the feedback of load information from real servers and dynamically adjust the weighted value of real servers. In addition, this thesis improves scheduling algorithm and provides a new scheduling algorithm: weighted least utilization scheduling algorithm. Firstly, the thesis summarizes LVS integrated architecture and analyzes its technical characters. Secondly, the thesis also deeply analyzes and studies LVS load balancing scheduling algorithm. Aimed at the defect that current scheduling algorithm can not realize dynamically adjusting the weighted value, the thesis designs and develops two programs: Agent and LoadManager. The former running on every real server is used to collect the computer’s load information and send this information to the scheduler, and the latter running on the scheduler is used to receive the load information and calculate the weighted value accordingly. The scheduler adjusts the weighted value of servers according to the collected load information and transfers the network service requests to the real servers via the Least Utilization Scheduling Algorithm. So the ability to quickly respond and throughput can be improved. Lastly, a tool Load Runner which is a good load testing tool to test this cluster system is applied and all the real servers’ load information is recorded. The result of the research shows that this architecture and algorithm can effectively avoid the leaning load of servers and greatly increase the data throughput. When a few requests are received, improvement of the performance is not obvious. But when a lot of requests are received, the advantage of dynamic feedback scheduling algorithm is gradually displayed. The reason why improvement of the performance is not obvious at first is that the server program running on the scheduler takes CPU time and memory space and the scheduler needs timely to collect the load information of all real servers, which takes the extra cost of network bandwidth. But when a lot of connections are received, this cost is counteracted by the efficiency of this new architecture and algorithm. In this way, dynamically balancing every load note is realized and the performance of this cluster system is greatly improved.

Table of contents

Abstract 4-5 Abstract 5-9 Chapter 1 Introduction 9-13 1.1 Background and 9-12 1.2 research 12 1.3 The paper is organized 12-13 Chapter 2 cluster technology 13-21 2.1 Cluster Technology Overview 13-16 2.2 Microsoft cluster system 16-17 2.3 WebSphere 17-18 2.4 Linux Virtual Server project 18-19 2.5 LVS project applications 19-20 2.6 Summary 20-21 Chapter 3 Linux Virtual Server 21-29 3.1 LVS system background 21 3.2 load balancing technology 21-24 3.2.1 DNS technology-based load balancing 22 3.2.2 reverse proxy load balancing 22-23 3.2.3 NAT-based load balancing 23 3.2.4 load balancing based on IP tunneling 23 3.2.5 based on direct routing load balancing 23-24 3.3 LVS architecture 24-26 3.3.1 of LVS common architecture 24-26 3.3.2 architecture analysis 26 3.4 high availability analysis 26-27 3.5 LVS characteristics 27-28 3.6 Summary 28-29 Chapter 4 Dynamic load balancing of research and design 29-59 4.1 existing kernel in connection scheduling algorithm 29-38 4.1.1 robin scheduling 30-31 4.1.2 Weighted Round Robin scheduling 31-32 4.1.3 Minimum Connection Scheduling 32-33 4.1.4 Weighted Least-Connection Scheduling 33-34 4.1.5 based on the localized minimum link scheduling 34-35 4.1.6 with a replication-based partial least link scheduling 35-36 4.1.7 the target address hashing scheduling 36-37 4.1.8 source address hashing scheduling 37-38 4.2 Dynamic load balancing in the design and 38-58 4.2.1 dynamic load balancing framework design 39-40 4.2.2 load weights calculated 40-41 4.2.3 Agent design and 41-45 4.2.4 LoadManager design and 45-49 4.2.5 Weighted Least utilization scheduling algorithm design and 49-58 4.3 Summary 58-59 Chapter 5 of the cluster system test 59-62 5.1 test content 59 5.2 test environment 59-60 5.3 test results 60-61 5.4 Summary 61-62 conclusions 62-63 References 63-66 Acknowledgements 66

Related dissertations

  1. Study and Realization of Dynamic Scheduling Based on Linux Virtual Server Cluster
    LiuHui ·Anhui University ·2012 ·Master's thesis
  2. Research and Design of Scalable Network Server Based on Linux
  3. Research and application of pushing send technology of server cluster based on
  4. Application and Research of Digital Room Service System Based on Cluster Server
  5. Research and Implement of a Content-based Load Balancing Technology
  6. Research the High-performance Website Architecture Based on the Open Source Technology
    LiWenMing ·Hebei University of Engineering ·2012 ·Master's thesis
  7. Research and Implementation of IPSec VPN Proxy Cluster System
    QiuWenZhen ·Harbin Engineering University ·2012 ·Master's thesis
  8. The Research of the Load Balancing Technology Based on BP Neural Networks
  9. The Research on Load Balancing Technology of Server Cluster Based on OPNET
    LuoShuHua ·Wuhan University of Technology ·2012 ·Master's thesis
  10. The Research and Improvement of the Load Balancing Technology Based on Nginx
    LanXiang ·South China University of Technology ·2012 ·Master's thesis
  11. Multi-goal Load Balancing Research in Virtual Environment
    ZhangChunXia ·Zhengzhou University ·2012 ·Master's thesis
  12. Circulating cooling water treatment research of remote monitoring system and Implementation
  13. The Design and Implementation of Load Balancing Algorithm Based on Cluster
    HuangShan ·Nanjing Agricultural College ·2009 ·Master's thesis
  14. Research on Storage Managment Method of Intelligent Network Disk
    YangXi ·Central South University ·2012 ·Doctoral dissertation
  15. Research of the Load Balancing Technology in the SIP Server Clusters
  16. On the Development of Service Industry in Gansu from the Cluster Perspective
    JinMei ·Lanzhou University ·2013 ·Doctoral dissertation
  17. Study on Tourism Industry Cluster of Hainan
  18. The Study of the Regional Tourism Competitiveness Based on Industrial Clustering Effect
    GuoYanGe ·Northwest Normal University ·2013 ·Master's thesis
  19. Study on the Linkage Analysis for17Districts of Hubei Province’s Tourism
    JiangWeiZheng ·Central China Normal University ·2014 ·Master's thesis
  20. Cluster Entrepreneurship:the Influence Mechanisms of the Technology and Market Gradient Distance
    ZuoJing ·Zhejiang University ·2014 ·Master's thesis