基于自適應(yīng)小生境遺傳算法的LVS負(fù)載均衡調(diào)度研究
本文選題:自適應(yīng)小生境遺傳算法 + 負(fù)載均衡 ; 參考:《西南交通大學(xué)》2013年碩士論文
【摘要】:隨著Internet的發(fā)展,網(wǎng)絡(luò)用戶日益增加,需要服務(wù)器系統(tǒng)具有處理高并發(fā)訪問(wèn)的能力。目前,服務(wù)器集群是解決服務(wù)器超載問(wèn)題最有效的解決辦法。它將多個(gè)服務(wù)器集中起來(lái)并行工作,配合共同完成同一種服務(wù);對(duì)客戶端而言,相當(dāng)于只有一臺(tái)超級(jí)服務(wù)器在進(jìn)行服務(wù)。其工作模式不需要更改任何服務(wù)器端和客戶端代碼,可靠性強(qiáng)。 目前服務(wù)器集群中的調(diào)度算法由于過(guò)于簡(jiǎn)單,存在擴(kuò)展性較差和并行性較弱等問(wèn)題,為了改善和提高集群系統(tǒng)性能,本文從算法和架構(gòu)上對(duì)Linux虛擬服務(wù)器(Linux Virtual Server, LVS)進(jìn)行了研究。首先在分析遺傳算法理論的基礎(chǔ)上研究其在調(diào)度作業(yè)中的應(yīng)用,并根據(jù)服務(wù)器負(fù)載調(diào)度的需求,選擇自適應(yīng)小生境遺傳算法(Adaptive Niche Genetic Algorithm, ANGA)作為服務(wù)器集群的調(diào)度算法,提出了相對(duì)CPU利用率作為適應(yīng)值的評(píng)價(jià)標(biāo)準(zhǔn),并合理應(yīng)用于負(fù)載均衡調(diào)度作業(yè)中;然后分析了LVS的工作原理及其缺點(diǎn),對(duì)常規(guī)的服務(wù)器集群架構(gòu)進(jìn)行了改進(jìn),提出基于決策器訓(xùn)練調(diào)度序列;進(jìn)而設(shè)計(jì)并實(shí)現(xiàn)了以下四個(gè)關(guān)鍵模塊單元,即調(diào)度算法單元、負(fù)載均衡器(Load Balancer,LB)與決策器的通信單元、決策器與節(jié)點(diǎn)間的通信單元以及修改后的IP虛擬服務(wù)器(IP Virtual Server, EPVS)內(nèi)核單元,并對(duì)通信協(xié)議以及工作流程做了詳細(xì)的介紹。 最后,通過(guò)搭建真實(shí)服務(wù)器集群平臺(tái),在LVS-NAT模式下測(cè)試了改進(jìn)后的負(fù)載均衡調(diào)度系統(tǒng),實(shí)驗(yàn)利用JMeter等壓力測(cè)試軟件模擬大并發(fā),并利用Wireshark對(duì)網(wǎng)絡(luò)數(shù)據(jù)包的流向進(jìn)行監(jiān)控。實(shí)驗(yàn)結(jié)果表明,本方案的系統(tǒng)平均響應(yīng)時(shí)間僅為2毫秒,同時(shí)錯(cuò)誤率趨近于0,相比改進(jìn)前服務(wù)器系統(tǒng)性能更穩(wěn)定。
[Abstract]:With the development of Internet, network users are increasing day by day, which requires server system to handle high concurrent access. At present, server cluster is the most effective solution to the problem of server overload. It gathers multiple servers to work in parallel, working together to complete the same service; to the client, it is equivalent to only one super server serving. Its working mode does not need to change any server-side and client-side code, strong reliability. In order to improve and improve the performance of Linux virtual server system, this paper studies the algorithm and architecture of Linux virtual server, in order to improve the performance of cluster system, because the scheduling algorithm in server cluster is too simple, there are some problems such as poor expansibility and weak parallelism. Firstly, based on the analysis of genetic algorithm theory, the application of genetic algorithm in scheduling job is studied, and according to the demand of server load scheduling, adaptive Niche Genetic Algorithm, ANGA) is selected as the scheduling algorithm of server cluster. This paper puts forward the relative CPU utilization rate as the evaluation criterion of fitness value, and applies it to the load balancing scheduling job reasonably, then analyzes the working principle and shortcomings of LVS, and improves the conventional server cluster architecture. The following four key module units are designed and implemented: scheduling algorithm unit, load balancer load Balancer-LBB) and Decision-Making unit. The communication unit between the decision maker and the node and the modified IP virtual server IP Virtual Server (EPVs) kernel unit are introduced in detail. The communication protocol and workflow are introduced in detail. Finally, by building a real server cluster platform, the improved load balancing scheduling system is tested in LVS-NAT mode. The pressure test software such as JMeter is used to simulate the large concurrency, and Wireshark is used to monitor the flow of network data packets. The experimental results show that the average response time of the system is only 2 milliseconds, and the error rate approaches zero, which is more stable than that before the improvement.
【學(xué)位授予單位】:西南交通大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類(lèi)號(hào)】:TP368.5
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 丁原,劉玉樹(shù),朱天煥;利用IP轉(zhuǎn)發(fā)技術(shù)在集群服務(wù)器中實(shí)現(xiàn)負(fù)載均衡[J];北京理工大學(xué)學(xué)報(bào);2001年03期
2 黃聰明,陳湘秀;小生境遺傳算法的改進(jìn)[J];北京理工大學(xué)學(xué)報(bào);2004年08期
3 郟宣耀;王芳;;一種改進(jìn)的小生境遺傳算法[J];重慶郵電學(xué)院學(xué)報(bào)(自然科學(xué)版);2005年06期
4 王文義,辛小南,王若雨;高性能集群計(jì)算機(jī)的構(gòu)建與應(yīng)用[J];計(jì)算機(jī)工程與應(yīng)用;2001年17期
5 龐遼軍,王力,李慧賢;基于集群技術(shù)的Linux虛擬服務(wù)器[J];計(jì)算機(jī)工程與應(yīng)用;2003年14期
6 朱文濤,洪佩琳,李津生;基于Linux虛擬服務(wù)器的負(fù)載均衡[J];計(jì)算機(jī)工程;2002年12期
7 張小芳,胡正國(guó),鄭繼川,唐焱;高可用性集群技術(shù)的研究和應(yīng)用[J];計(jì)算機(jī)工程;2003年04期
8 章文嵩,金士堯;可伸縮網(wǎng)絡(luò)服務(wù)的研究與實(shí)現(xiàn)[J];計(jì)算機(jī)工程與科學(xué);2001年03期
9 謝茂濤;宋中山;;LVS集群系統(tǒng)負(fù)載均衡策略的研究[J];計(jì)算機(jī)工程與科學(xué);2006年08期
10 薛富強(qiáng);葛臨東;王彬;;基于自適應(yīng)小生境遞階遺傳算法的RBF均衡器[J];計(jì)算機(jī)應(yīng)用;2009年04期
相關(guān)碩士學(xué)位論文 前5條
1 張維勇;基于遺傳算法的服務(wù)器端動(dòng)態(tài)負(fù)載均衡系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];山東大學(xué);2005年
2 易輝;基于模擬退火遺傳算法的網(wǎng)絡(luò)負(fù)載平衡算法研究[D];武漢理工大學(xué);2006年
3 馬衛(wèi);一種改進(jìn)的LVS集群負(fù)載均衡算法[D];華中師范大學(xué);2006年
4 魏峰;具備內(nèi)容感知能力的網(wǎng)絡(luò)負(fù)載均衡技術(shù)研究[D];哈爾濱工程大學(xué);2007年
5 雷淵明;基于Netfilter的包分類(lèi)研究與設(shè)計(jì)[D];湖南大學(xué);2009年
,本文編號(hào):1821466
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1821466.html