基于LVS集群的動(dòng)態(tài)負(fù)載均衡策略的研究與實(shí)現(xiàn)
本文選題:集群技術(shù) + Linux虛擬服務(wù)器; 參考:《北京郵電大學(xué)》2013年碩士論文
【摘要】:隨著網(wǎng)絡(luò)服務(wù)的不斷發(fā)展,用戶的訪問(wèn)量和服務(wù)器的負(fù)載量呈現(xiàn)指數(shù)級(jí)的增長(zhǎng),如何向用戶提供高質(zhì)量、不間斷的網(wǎng)絡(luò)服務(wù),成為網(wǎng)絡(luò)服務(wù)器供應(yīng)商必須解決的難題。利用單一的服務(wù)器結(jié)構(gòu)很難滿足此需求,而集群技術(shù)的應(yīng)用使得該問(wèn)題迎刃而解。 集群技術(shù)就是將一組相互獨(dú)立的、通過(guò)高速網(wǎng)絡(luò)互聯(lián)的計(jì)算機(jī)構(gòu)成一個(gè)整體,并通過(guò)單一系統(tǒng)的模式加以管理,使得用戶與集群相互作用時(shí),集群像是一個(gè)獨(dú)立的服務(wù)器。作為集群實(shí)現(xiàn)技術(shù)的一種Linux虛擬服務(wù)器(LVS)已被廣泛關(guān)注和應(yīng)用。 盡管目前LVS集群系統(tǒng)的應(yīng)用較為廣泛,但是LVS集群在負(fù)載均衡方面還不完善,現(xiàn)有的幾種負(fù)載均衡算法并不能根據(jù)真實(shí)服務(wù)器的實(shí)時(shí)負(fù)載情況,來(lái)及時(shí)的調(diào)整負(fù)載的分配策略,這樣很容易導(dǎo)致系統(tǒng)出現(xiàn)負(fù)載傾斜的現(xiàn)象,使集群性能大大降低。 針對(duì)此問(wèn)題,本論文提出了一種能夠動(dòng)態(tài)調(diào)整服務(wù)器權(quán)值的動(dòng)態(tài)負(fù)載均衡策略,該策略能夠有效地避免集群出現(xiàn)負(fù)載傾斜的現(xiàn)象,進(jìn)而提升集群整體的性能。 論文主要涉及了以下工作: 首先,研究了集群系統(tǒng)和負(fù)載均衡技術(shù),對(duì)兩者有了初步的了解。 然后,深入研究LVS集群技術(shù),對(duì)其體系結(jié)構(gòu)、工作原理和三種工作模式有了較為深刻的認(rèn)識(shí)。同時(shí)還研究了現(xiàn)有的八種負(fù)載調(diào)度算法,并重點(diǎn)對(duì)WLC算法進(jìn)行了深入分析,總結(jié)其存在的不足之處。 接著,針對(duì)WLC算法存在的缺陷,提出了動(dòng)態(tài)負(fù)載均衡策略的思想,設(shè)計(jì)并實(shí)現(xiàn)了相應(yīng)的動(dòng)態(tài)負(fù)載模塊(Dynamic-Load Module)。 再次,搭建簡(jiǎn)單測(cè)試環(huán)境,利用壓力測(cè)試工具---Web Application Stress Tool(WAS),對(duì)原有的WLC算法和改進(jìn)后的動(dòng)態(tài)負(fù)載均衡策略進(jìn)行性能測(cè)試,通過(guò)對(duì)實(shí)驗(yàn)結(jié)果的對(duì)比分析,初步驗(yàn)證了動(dòng)態(tài)負(fù)載均衡策略能夠有效地提升集群系統(tǒng)的性能。 最后,利用中國(guó)移動(dòng)研究院的PDM-PAAS項(xiàng)目的部署環(huán)境,對(duì)動(dòng)態(tài)負(fù)載均衡策略進(jìn)行復(fù)雜環(huán)境下的性能測(cè)試,也采用了WAS壓力.測(cè)試工具,對(duì)原有的WLC算法和動(dòng)態(tài)負(fù)載均衡策略進(jìn)行了性能對(duì)比測(cè)試,并對(duì)實(shí)驗(yàn)數(shù)據(jù)進(jìn)行了對(duì)比分析,進(jìn)一步驗(yàn)證了動(dòng)態(tài)負(fù)載均衡策略的有效性,并能夠?qū)⑵鋺?yīng)用在PDM-PAAS項(xiàng)目中。
[Abstract]:With the continuous development of network services, the number of users and the load of servers increase exponentially. How to provide users with high quality and continuous network services has become a difficult problem that network server providers must solve. It is difficult to satisfy this requirement by using a single server structure, but the application of cluster technology can solve the problem easily. Cluster technology is a group of independent computers interconnected by high-speed networks to form a whole, and through a single system model to be managed, so that when users interact with the cluster, the cluster is like an independent server. As a cluster implementation technology, Linux Virtual Server (LVS) has been widely concerned and applied. Although the LVS cluster system is widely used at present, the load balancing of LVS cluster is not perfect. The existing load balancing algorithms can not adjust the load allocation strategy according to the real server's real-time load situation. This can easily lead to the phenomenon of system load tilt, so that the performance of the cluster is greatly reduced. To solve this problem, this paper proposes a dynamic load balancing strategy which can dynamically adjust the weights of the server. This strategy can effectively avoid the phenomenon of load tilt in the cluster and improve the overall performance of the cluster. The main contents of this paper are as follows: firstly, the cluster system and load balancing technology are studied. Then, the LVS cluster technology is deeply studied, and its architecture, working principle and three working modes are deeply understood. At the same time, eight existing load scheduling algorithms are studied, and the WLC algorithm is analyzed in detail, and the shortcomings of WLC algorithm are summarized. Then, aiming at the shortcomings of WLC algorithm, the idea of dynamic load balancing strategy is put forward, and the corresponding dynamic load module is designed and implemented. Thirdly, a simple test environment is built, and the original Application stress tool (was) is used to test the performance of the original WLC algorithm and the improved dynamic load balancing strategy. It is preliminarily verified that dynamic load balancing strategy can effectively improve the performance of cluster system. Finally, the deployment environment of PDM-PAAS project of China Mobile Research Institute is used to test the performance of dynamic load balancing strategy in complex environment, and was pressure is also used. The performance of the original WLC algorithm and the dynamic load balancing strategy is compared with the test tool, and the experimental data are compared and analyzed. The validity of the dynamic load balancing strategy is further verified, and it can be applied to PDM-PAAS project.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP368.5
【參考文獻(xiàn)】
相關(guān)期刊論文 前3條
1 ;集群技術(shù)的特點(diǎn)和分類[J];金融電子化;2005年05期
2 羅軍舟;金嘉暉;宋愛(ài)波;東方;;云計(jì)算:體系架構(gòu)與關(guān)鍵技術(shù)[J];通信學(xué)報(bào);2011年07期
3 孟洋;;基于負(fù)載均衡算法的Web服務(wù)器群集設(shè)計(jì)[J];長(zhǎng)沙民政職業(yè)技術(shù)學(xué)院學(xué)報(bào);2007年03期
相關(guān)博士學(xué)位論文 前1條
1 章文嵩;可伸縮網(wǎng)絡(luò)服務(wù)的研究與實(shí)現(xiàn)[D];中國(guó)人民解放軍國(guó)防科學(xué)技術(shù)大學(xué);2000年
相關(guān)碩士學(xué)位論文 前3條
1 王鑫;一種改進(jìn)的LVS動(dòng)態(tài)負(fù)載均衡算法[D];中南民族大學(xué);2008年
2 張希;基于Linux虛擬服務(wù)器動(dòng)態(tài)負(fù)載調(diào)度策略的研究[D];吉林大學(xué);2010年
3 王強(qiáng);基于LVS集群負(fù)載均衡算法的研究與改進(jìn)[D];電子科技大學(xué);2010年
,本文編號(hào):2072079
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2072079.html