基于Web應用的動態(tài)集群策略研究與設計
發(fā)布時間:2018-02-22 03:04
本文關鍵詞: Web應用 集群 分布式會話管理 Context監(jiān)測 調度策略 出處:《蘇州大學》2014年碩士論文 論文類型:學位論文
【摘要】:在互聯(lián)網(wǎng)高速發(fā)展的背景下,Web應用集群越來越受到重視,而對于目前現(xiàn)有Web應用集群解決方案來說,大多數(shù)利用中大型規(guī)模的商用Web集群產品來實施。實施此類解決方案,,一般需要較高的經(jīng)費投入,而且后期需要專業(yè)人員來維護,市場上缺少一個有針對性的、完整的、易于部署和維護的中小型規(guī)模Web應用集群解決方案。本文通過總結現(xiàn)有的基于中小規(guī)模的Web應用集群解決方案,以及測試相對應的集群環(huán)境,提出了一種適用于中小規(guī)模企業(yè)的Web應用動態(tài)集群策略。本文通過分析和研究Tomcat服務器源代碼,深入理解Tomcat體系結構以及各個組件之間的交互關系,提出了一種通過擴展Tomcat組件的設計方案,在深入研究Tomcat會話(Session)的處理流程、調度請求流程以及底層通訊協(xié)議的基礎上,給出了相對完整的解決方案,概括如下: (1)提出了一種新的集群管理Session對象策略,設計引入了BackupClusterManager管理器和BackupClusterSession對象。詳細設計實現(xiàn)了各組件間的處理工作流程,包括Session對象創(chuàng)建、修改、更新最后訪問時間等生命周期操作,并給出了相應Tomcat服務器源代碼級別上的實現(xiàn); (2)針對在Tomcat默認的調度請求基礎上,提出了動態(tài)調度請求策略,增加了動態(tài)請求調度功能。設計了與之相對應的請求調度方式,請求調度的處理以及相關Web應用監(jiān)測處理策略,并給出了相應Tomcat服務器源代碼級別上的實現(xiàn); (3)設計了一套基于TCP單播和UDP廣播協(xié)議的底層通信模塊,包含有接收模塊(Receiver)和發(fā)送模塊(Sender),用于集群之間Session會話的通信傳遞以及動態(tài)調度信息之間的通信傳遞,并且給出Session會話信息與調度信息的封裝策略及實現(xiàn)。 本文提出的基于Tomcat服務器擴展的設計和實現(xiàn)方案,基本解決了存在于中小型規(guī)模Web應用集群的Session會話集群管理問題、Web應用失效監(jiān)測與處理問題以及用戶請求動態(tài)調度問題。
[Abstract]:Under the background of the rapid development of the Internet, more and more attention has been paid to the Web application cluster. However, for the existing Web application cluster solutions, most of them are implemented using commercial Web cluster products of medium and large scale. Generally, it requires a high level of funding, and professional personnel are needed to maintain it in the later period. There is a lack of a targeted and complete one in the market. Small and medium scale Web application cluster solution is easy to deploy and maintain. This paper summarizes the existing Web application cluster solution based on medium and small scale, and tests the corresponding cluster environment. This paper presents a dynamic cluster strategy of Web application for small and medium-sized enterprises. By analyzing and studying the source code of Tomcat server, this paper deeply understands the architecture of Tomcat and the interaction between each component. In this paper, a design scheme of extending Tomcat component is proposed. On the basis of deeply studying the processing flow of Tomcat session, scheduling request flow and underlying communication protocol, a relatively complete solution is given, which can be summarized as follows:. In this paper, a new strategy of cluster management Session object is proposed, and the BackupClusterManager manager and BackupClusterSession object are introduced into the design. The workflow among the components is designed and implemented in detail, including the creation and modification of Session object. Update the last access time and other life cycle operations, and give the corresponding Tomcat server source code level of the implementation; 2) based on the default scheduling request of Tomcat, a dynamic scheduling request policy is proposed, and the dynamic request scheduling function is added. The corresponding request scheduling mode, request scheduling processing and monitoring and processing strategy for related Web applications are designed. The implementation of the source code level of the corresponding Tomcat server is also given. A set of underlying communication modules based on TCP unicast and UDP broadcast protocol are designed, including receiving module (receiver) and sending module (TCP), which are used for communication transmission of Session session between clusters and communication between dynamic scheduling information. The encapsulation strategy and implementation of Session session information and scheduling information are also given. The design and implementation scheme based on Tomcat server extension in this paper basically solves the problem of Session session cluster management which exists in small and medium scale Web application cluster and the problem of failure monitoring and processing of web application as well as the dynamic scheduling problem of user request.
【學位授予單位】:蘇州大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP393.09
【參考文獻】
相關期刊論文 前5條
1 高昂;慕德俊;胡延蘇;;Web集群的區(qū)分服務與負載均衡策略研究[J];電子與信息學報;2011年03期
2 劉安豐;陳志剛;閻朝坤;李登;;Web集群請求分配與選擇算法性能評價模型的研究[J];計算機科學;2004年07期
3 王春娟;董麗麗;賈麗;;Web集群系統(tǒng)的負載均衡算法[J];計算機工程;2010年02期
4 申紅芳,羅四維,趙宏;集群計算系統(tǒng)的模型結構[J];計算機應用研究;2004年02期
5 Clemens Dietl;Uwe K. Rakowsky;;An Operating Strategy for High-availability Multi-station Transfer Lines[J];International Journal of Automation and Computing;2006年02期
本文編號:1523489
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1523489.html
最近更新
教材專著