服务器集群中基于动态反馈的负载均衡算法
发布时间:2018-04-27 21:16
本文选题:分布式集群 + 负载均衡调度 ; 参考:《大连理工大学》2014年硕士论文
【摘要】:随着互联网技术的发展,越来越多的分布式集群技术代替了传统的单节点服务器,在这样的背景下,负载均衡算法成为了热门话题。如何充分利用服务器中的各个节点,保证服务质量成为了负载均衡算法的优化目标。 本文的第一部分介绍了RPC技术的应用背景以及用这种方式来替代传统的过程调用的原因。在Web2.0的环境下,分布式技术已经成为大势所趋,对于模块化开发,保证服务质量能够起到很好的效果,然后简要介绍了集群技术的发展历史以及现有的一些负载均衡算法。 随后介绍了Linux虚拟服器的应用背景,意义以及内置的八种静态调度算法。重点分析了其中的默认调度算法,加权最小连接(WLC)算法。针对该算法灵活性较差,无法应对流量突变的缺点,提出了一种基于动态反馈的负载均衡算法,新的算法通过定期收集服务器的CPU,内存,网卡使用率等信息,计算节点的当前负载,并且根据负载情况动态调节节点权值,动态反馈算法具有较高的复杂性,但是能够弥补之前默认算法的不足之处。随后,介绍了这种算法的具体实现和相应的模块设计,其中包括了负载均衡器的权值计算模块和服务节点的负载信息收集模块。 最后,我们搭建了一个小型的集群,使用LVS作为负载均衡器,采用微软的免费压力测试工具Web application stress Tool(WAST)模拟多用户并发访问进行压力测试实验,比较在相同并发连接数的情况下,原有的WLC算法和改进以后的动态反馈算法在平均响应时间和吞吐量上的优劣。接下来,我们分析了系统的内部性能,通过给两台硬件性能大致相同的节点设置比较悬殊的初始权值来模拟负载倾斜的情况。实验结果表明,改进后的动态反馈算法在响应时间和吞吐量这两个指标上均优于的WLC算法。在第二组实验中,经过一段时间的调节,两台节点的权值趋于平衡,表明了新的算法可以有效避免负载倾斜现象。
[Abstract]:With the development of Internet technology, more and more distributed cluster technology has replaced the traditional single-node server. In this context, load balancing algorithm has become a hot topic. How to make full use of each node in the server to ensure the quality of service has become the optimization goal of the load balancing algorithm. The first part of this paper introduces the application background of RPC technology and the reason why the traditional procedure call is replaced by this method. In the environment of Web2.0, distributed technology has become the trend of the times, which can play a good role in modularization development and guarantee the quality of service. Then, the history of cluster technology and some existing load balancing algorithms are briefly introduced. Then, the application background, significance and eight static scheduling algorithms of Linux virtual server are introduced. The default scheduling algorithm, weighted minimum join algorithm (WLC), is analyzed in detail. Aiming at the disadvantage that the algorithm is not flexible enough to cope with the sudden change of traffic, a load balancing algorithm based on dynamic feedback is proposed. The new algorithm collects the information of CPU, memory, network card utilization and so on periodically. The dynamic feedback algorithm is more complex to calculate the current load of the node and dynamically adjust the weight of the node according to the load situation, but it can make up for the shortcomings of the previous default algorithm. Then the implementation of the algorithm and the corresponding module design are introduced including the weight calculation module of the load balancer and the load information collection module of the service node. Finally, we set up a small cluster, using LVS as load balancer, using Microsoft's free stress testing tool Web application stress tool was used to simulate multi-user concurrent access to carry out the stress test experiment, and compare the same number of concurrent connections. The advantages and disadvantages of the original WLC algorithm and the improved dynamic feedback algorithm in the average response time and throughput. Then we analyze the internal performance of the system and simulate the load tilt by setting the initial weights of the two nodes with similar hardware performance. Experimental results show that the improved dynamic feedback algorithm is superior to the WLC algorithm in terms of response time and throughput. In the second group of experiments, after a period of adjustment, the weights of the two nodes tend to balance, which shows that the new algorithm can effectively avoid the phenomenon of load tilt.
【学位授予单位】:大连理工大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.05;TP301.6
【参考文献】
相关期刊论文 前10条
1 苑津莎,吴立增,张铁峰;WINDOWS NT集群服务及其ORACLE数据库的配置[J];电网技术;2002年09期
2 张维;;浅析负载均衡技术[J];计算机光盘软件与应用;2012年06期
3 苏命峰;陈文芳;李仁发;;LVS集群负载调度算法研究[J];长沙大学学报;2012年05期
4 蒋鸿城;洪建光;谢知寒;;业务需求驱动下的负载均衡技术研究与应用[J];电力信息化;2008年S1期
5 王霜,修保新,肖卫东;Web服务器集群的负载均衡算法研究[J];计算机工程与应用;2004年25期
6 邓华锋;刘云生;肖迎元;;分布式数据流处理系统的动态负载平衡技术[J];计算机科学;2007年07期
7 张小芳,胡正国,郑继川,唐焱;高可用性集群技术的研究和应用[J];计算机工程;2003年04期
8 任彦琦,彭勤科,胡保生;一种基于内容的Web集群服务器负载均衡算法[J];计算机工程;2005年02期
9 陈燕,宋玲,李陶深;基于遗传算法的网络负载均衡的选播路由算法[J];计算机工程;2005年08期
10 王晋鹏,潘龙法,李降龙;LVS集群中的动态反馈调度算法[J];计算机工程;2005年19期
相关博士学位论文 前1条
1 王红斌;Web服务器集群系统的自适应负载均衡调度策略研究[D];吉林大学;2013年
,本文编号:1812365
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1812365.html