基于會(huì)話共享的負(fù)載均衡方案研究
本文選題:集群 + 負(fù)載均衡 ; 參考:《山東科技大學(xué)》2017年碩士論文
【摘要】:伴隨著網(wǎng)絡(luò)的飛速發(fā)展,用戶訪問量急劇增長(zhǎng),對(duì)Web服務(wù)器的性能和可靠性提出了更大的挑戰(zhàn),使用服務(wù)器集群技術(shù)和負(fù)載均衡技術(shù)能有效的解決大量web并發(fā)訪問給后端服務(wù)器造成壓力的問題。其中負(fù)載均衡技術(shù)是服務(wù)器集群系統(tǒng)的核心,它關(guān)系到后端服務(wù)器能否保持高效可靠穩(wěn)定的工作狀態(tài)。客戶端訪問web時(shí),由于HTTP協(xié)議是無狀態(tài)的連接協(xié)議,Web網(wǎng)站會(huì)使用會(huì)話技術(shù)來記錄客戶端與服務(wù)器端的交互信息。當(dāng)處于負(fù)載均衡的集群環(huán)境中時(shí),通常會(huì)使用會(huì)話保持技術(shù)實(shí)現(xiàn)會(huì)話的一致性。這時(shí),負(fù)載均衡算法和會(huì)話保持方法都會(huì)對(duì)負(fù)載均衡集群的性能及負(fù)載平衡性有影響。本文首先介紹了負(fù)載均衡技術(shù)的基本概念特點(diǎn)和算法,分析了常用的會(huì)話保持技術(shù),對(duì)常用的會(huì)話保持技術(shù)的優(yōu)缺點(diǎn)進(jìn)行了分析,最后采用獨(dú)立服務(wù)器管理會(huì)話數(shù)據(jù),使會(huì)話數(shù)據(jù)以全局可見的方式來保持會(huì)話一致性,由于會(huì)話服務(wù)器將被各個(gè)節(jié)點(diǎn)頻繁的訪問成為系統(tǒng)中的熱點(diǎn)之一,所以會(huì)話服務(wù)器采用冗余備份的方式。給出了系統(tǒng)的總體設(shè)計(jì)方案,從需求分析入手描述了整個(gè)會(huì)話的操作流程。采用Nginx服務(wù)器作為負(fù)載均衡服務(wù)器,分析了 Nginx的源代碼,采用一種動(dòng)態(tài)的負(fù)載均衡算法,將節(jié)點(diǎn)服務(wù)器的剩余負(fù)載和性能比值轉(zhuǎn)化為權(quán)重,選出權(quán)重前三的服務(wù)器,然后在被選出的服務(wù)器中隨機(jī)選出一臺(tái)分配客戶端請(qǐng)求,隨機(jī)分配時(shí),被選中的概率與服務(wù)器的權(quán)重成正比,從而增強(qiáng)了集群的性能,提高了效率。最后,利用LoadRunner性能測(cè)試工具對(duì)原有加權(quán)輪詢策略和本文所采用動(dòng)態(tài)策略進(jìn)行性能測(cè)試,通過實(shí)驗(yàn)證明,本文所采用的這種動(dòng)態(tài)策略更好的實(shí)現(xiàn)了負(fù)載均衡。
[Abstract]:With the rapid development of the network, the number of users' access has increased dramatically, which poses a greater challenge to the performance and reliability of the Web server. Using server cluster technology and load balancing technology can effectively solve the pressure problem of a large number of Web concurrent access to the back end server. At the core, it is related to whether the back end server can maintain a high efficient, reliable and stable state of work. When the client visits the web, the HTTP protocol is a stateless connection protocol, and the Web site uses session technology to record the interaction information between the client and the server side. In this paper, the load balancing algorithm and session retention method will affect the performance and load balance of the load balancing cluster. Firstly, the basic concepts and algorithms of load balancing technology are introduced, and the common session retention technology is analyzed, and the advantages and disadvantages of the commonly used session retention technology are divided. Finally, the session data is managed by the independent server to keep the session consistency in a global visible way. Because the session server will be frequently visited by each node as one of the hotspots in the system, the session server uses redundant backup. The overall design scheme of the system is given and the requirements are divided. The Nginx server is used as the load balancing server. The source code of the Nginx is analyzed. A dynamic load balancing algorithm is used to transform the ratio of the residual load and the performance ratio of the node server to the weight, and the first three servers are selected and then selected randomly in the selected server. When assigning a client request, the selected probability is proportional to the weight of the server, thus enhancing the performance of the cluster and improving the efficiency. Finally, the LoadRunner performance testing tool is used to test the original weighted polling strategy and the dynamic strategy adopted in this paper. This dynamic strategy makes it better to achieve load balancing.
【學(xué)位授予單位】:山東科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類號(hào)】:TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 李洪;陳耀武;;視頻監(jiān)控系統(tǒng)中的VOD負(fù)載均衡改進(jìn)算法[J];計(jì)算機(jī)工程;2014年11期
2 李雅斌;朱菘;常忠貴;李洪燕;吳姝燕;沐士光;;服務(wù)器集群技術(shù)綜述[J];中小企業(yè)管理與科技(中旬刊);2014年01期
3 李彬;朱亞興;;Nginx在實(shí)現(xiàn)網(wǎng)站負(fù)載均衡方面的研究[J];信息與電腦(理論版);2013年11期
4 饒磊;湯小春;侯增江;;服務(wù)器集群負(fù)載均衡策略的研究[J];計(jì)算機(jī)與現(xiàn)代化;2013年01期
5 孫天昊;陳飛;鄧俊昆;;一種基于cookie會(huì)話保持的LVS集群系統(tǒng)[J];計(jì)算機(jī)應(yīng)用研究;2013年04期
6 方巍;文學(xué)志;潘吳斌;薛勝軍;;云計(jì)算:概念、技術(shù)及應(yīng)用研究綜述[J];南京信息工程大學(xué)學(xué)報(bào)(自然科學(xué)版);2012年04期
7 王魁生;符予;;集中式動(dòng)態(tài)負(fù)載均衡算法的研究[J];西安石油大學(xué)學(xué)報(bào)(自然科學(xué)版);2011年06期
8 趙艷芳;蔣云起;;Web服務(wù)器負(fù)載均衡會(huì)話保持的研究[J];云南民族大學(xué)學(xué)報(bào)(自然科學(xué)版);2011年04期
9 李坤;王百杰;;服務(wù)器集群負(fù)載均衡技術(shù)研究及算法比較[J];計(jì)算機(jī)與現(xiàn)代化;2009年08期
10 喬鑫;;Nginx——新一代web服務(wù)器軟件[J];科技浪潮;2009年01期
相關(guān)碩士學(xué)位論文 前5條
1 王永輝;基于Nginx高性能Web服務(wù)器性能優(yōu)化與負(fù)載均衡的改進(jìn)與實(shí)現(xiàn)[D];電子科技大學(xué);2015年
2 梁銳;基于Web服務(wù)器集群的負(fù)載均衡系統(tǒng)研究與實(shí)現(xiàn)[D];大連海事大學(xué);2013年
3 任國(guó)慶;基于內(nèi)容分類和會(huì)話共享的集群負(fù)載均衡研究[D];湖南大學(xué);2010年
4 趙志鵬;J2EE下設(shè)計(jì)模式在Web系統(tǒng)中的研究與應(yīng)用[D];大連理工大學(xué);2007年
5 廖艷達(dá);基于Opnet的Web集群負(fù)載均衡仿真研究[D];廣西師范大學(xué);2007年
,本文編號(hào):1906780
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1906780.html