基于Web应用的动态集群策略研究与设计
发布时间:2018-02-22 03:04
本文关键词: Web应用 集群 分布式会话管理 Context监测 调度策略 出处:《苏州大学》2014年硕士论文 论文类型:学位论文
【摘要】:在互联网高速发展的背景下,Web应用集群越来越受到重视,而对于目前现有Web应用集群解决方案来说,大多数利用中大型规模的商用Web集群产品来实施。实施此类解决方案,,一般需要较高的经费投入,而且后期需要专业人员来维护,市场上缺少一个有针对性的、完整的、易于部署和维护的中小型规模Web应用集群解决方案。本文通过总结现有的基于中小规模的Web应用集群解决方案,以及测试相对应的集群环境,提出了一种适用于中小规模企业的Web应用动态集群策略。本文通过分析和研究Tomcat服务器源代码,深入理解Tomcat体系结构以及各个组件之间的交互关系,提出了一种通过扩展Tomcat组件的设计方案,在深入研究Tomcat会话(Session)的处理流程、调度请求流程以及底层通讯协议的基础上,给出了相对完整的解决方案,概括如下: (1)提出了一种新的集群管理Session对象策略,设计引入了BackupClusterManager管理器和BackupClusterSession对象。详细设计实现了各组件间的处理工作流程,包括Session对象创建、修改、更新最后访问时间等生命周期操作,并给出了相应Tomcat服务器源代码级别上的实现; (2)针对在Tomcat默认的调度请求基础上,提出了动态调度请求策略,增加了动态请求调度功能。设计了与之相对应的请求调度方式,请求调度的处理以及相关Web应用监测处理策略,并给出了相应Tomcat服务器源代码级别上的实现; (3)设计了一套基于TCP单播和UDP广播协议的底层通信模块,包含有接收模块(Receiver)和发送模块(Sender),用于集群之间Session会话的通信传递以及动态调度信息之间的通信传递,并且给出Session会话信息与调度信息的封装策略及实现。 本文提出的基于Tomcat服务器扩展的设计和实现方案,基本解决了存在于中小型规模Web应用集群的Session会话集群管理问题、Web应用失效监测与处理问题以及用户请求动态调度问题。
[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集群的区分服务与负载均衡策略研究[J];电子与信息学报;2011年03期
2 刘安丰;陈志刚;阎朝坤;李登;;Web集群请求分配与选择算法性能评价模型的研究[J];计算机科学;2004年07期
3 王春娟;董丽丽;贾丽;;Web集群系统的负载均衡算法[J];计算机工程;2010年02期
4 申红芳,罗四维,赵宏;集群计算系统的模型结构[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
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1523489.html