基于Intraweb异构集群的动态负载均衡技术的研究与实现
原站著录信息
摘要
硕士学位论文 论文题目: 基于Intraweb异构集群的动态负载均衡技术的研究与实现 The Research and Design of Dynamic Load-balancing Technology Based on Intraweb Server Cluster 目 录 目 录 i 摘 要 I ABSTRACT III 第1章 绪论 1 1.1课题来源与研究意义 1 1.2提升网络负载能力的途径 3 1.3 本文的主要工作及其组织形式 7 第2章 问题建模 8 2.1 济南大学招生管理信息系统的主要功能…
硕士学位论文
论文题目:
基于Intraweb异构集群的动态负载均衡技术的研究与实现
The Research and Design of Dynamic Load-balancing Technology Based on Intraweb Server Cluster
目 录
目 录 i
摘 要 I
ABSTRACT III
第1章 绪论 1
1.1课题来源与研究意义 1
1.2提升网络负载能力的途径 3
1.3 本文的主要工作及其组织形式 7
第2章 问题建模 8
2.1 济南大学招生管理信息系统的主要功能 8
2.2 系统目标和解决的问题 10
2.3性能目标 11
第3章 研究基础 13
3.1集群系统的概述 13
3.2 集群的特点 14
3.3集群的分类 15
3.4 典型集群系统简介 16
3.4.1 Beowulf 16
3.4.2 Mosix 17
3.4.3 Microsoft集群系统 17
3.4.4 WebSphere 18
3.4.5 Linux Virtual Server 19
3.4.6 Intraweb架构 19
第4章 负载均衡核心技术分析 21
4.1负载均衡集群 21
4.2负载均衡原理 22
4.3负载均衡基本特性 24
4.3.1负载均衡的特点 24
4.3.2负载均衡的优点 24
4.4负载均衡中的关键技术分析 25
4.4.1基于DNS技术的负载均衡 26
4.4.2基于NAT的负载均衡 27
4.4.3 反向代理负载均衡 29
4.4.4 基于IP隧道的负载均衡 30
4.4.5基于直接路由的负载均衡 31
4.5 常用负载均衡算法及其分析 32
4.5.1 循环调度算法 33
4.5.2 加权轮转算法 34
4.5.3 最小连接数算法 35
4.5.4 加权最小连接数算法 36
4.5.5 基于局部性的最少链接调度 37
4.6本系统拟采用的负载均衡调度技术 39
第5章 系统实现 40
5.1 概述 40
5.2本文的负载调度架构设计及其算法 40
5.3负载调度器的实现 43
5.3.1负载信息采集模块的实现 44
5.3.2 负载均衡调度前置机的实现 48
5.4 系统结构 54
5.4.1 系统组成图 54
5.4.2 系统设置 55
第6章 系统测试 56
6.1 压力测试 56
6.2 Microsoft Web Application Stress 58
6.3 实验结果 58
第7章 结 论 61
参考文献 62
致谢 64
CONTENTS
Chinese Abstract I
English Abstract III
Chapter 1 Introduction 1
1.1 The Source of the Project and Its Significance 1
1.2 The Approaches to Improvement of Web Load 3
1.3 The Structure of the Thesis 7
Chapter 2 Problem Modeling 8
2.1 The Main Funciton of Recruiting Information System of University of Jinan 8
2.2 The Aim of the System and Problems Settled 10
2.3 The Aim of the Property 11
Chapter 3 Research Bases 13
3.1 Introduction to Cluster System 13
3.2 The Characteristics of the Cluster 14
3.3 The Classification of the Cluster 15
3.4 Introduction to the Typical Cluster Syster 16
3.4.1 Beowulf 16
3.4.2 Mosix 17
3.4.3 Microsoft Cluster System 17
3.4.4 WebSphere 18
3.4.5 Linux Virtual Server 19
3.4.6 Intraweb Construction 19
Chapter 4 Analysis of Core Techniques for Load Equilibrium 21
4.1 The Load Equilibrium Cluster 21
4.2 The Load Equilibrium Theory 22
4.3 The Basic Feature of Load Equilibrium 24
4.3.1The Merits of The Load Equilibrium 24
4.3.2The Characters of the Load Equilibrium 24
4.4 The Key Techonology of the Load Equilibrium 25
4.4.1The load equilibrium Based on DNS 26
4.4.2The load equilibrium Based on NAT 30
4.4.3 The load equilibrium of Reverse Server 29
4.4.4 The load equilibrium Based on IP Channel 30
4.4.5 The load equilibrium Based on Direct Way 31
4.5 Usual Algorithm of the Load Equilibrium 32
4.5.1 Distributed Scheduling Algorithm 33
4.5.2 WRR Scheduling Algorithm 34
4.5.3 Least-Connection Scheduling Algorithm 35
4.5.4 Weighted Least-Connection Scheduling Algorithm 36
4.5.5 Locality-Based Least Connections Scheduling 37
4.6 Our LoadEquilibrium Methods 39
Chapter 5 System Realization 40
5.1 Introduction 40
5.2 The Framework and Algorithm for Load Equilibrium 43
5.3 The Deploy of System 40
5.3.1 The Charts of System Construction 41
5.3.2 The Design of Sustem 46
5.4 System Structure 54
5.4.1 System Strcture 54
5.4.2 System Settings 55
Chapter 6 System Testing 56
6.1 Stress Testing 56
6.2 Microsoft Web Application Stress 58
6.3 Experiment Data 58
Chapter 7 Conclusion 61
References 62
Acknowledges 64
摘 要
2003年全国各省市全面实现高考计算机远程网上录取,全国普通高校招生网上录取系统的成功应用,使传统的招生录取管理工作方式发生了革命性的变革,而高考考生信息的网上发布与采集则是高考网上录取必不可少的前期重要工作。普通高考电子档案信息网上发布与采集,是一项系统应用工程,应用工程不仅必须综合考虑系帮写硕士论文统构架问题、数据库存储优化备份、突发性大规模访问的负载均衡问题、电子摄像问题、信息安全问题等诸多技术问题,还必须考虑上网条件普及问题、中学生信息技术应用水平问题、社会是否接受问题、信息的确认与抵赖问题等社会现实问题。这是大规模网上应用所要面临的共性问题。
负载均衡问题是济南大学招生管理信息系统中面临的一个极具挑战性的核心问题。济南大学部分专业的招生需要在高考之前提前加试专业考试,这部分考试也是作为高考的一部分具有的相当的严肃性,教育主管部门以及学校都对其有严格的要求。招办对此招生工作的功能要求主要包括:基本信息的采集、照片信息、收费、生成考试号及准考证、成绩发布等。在最初的阶段,完成该工作所采用的是基于桌面型数据库的MIS系统,基于该种模式的应用,多台计算机软件之间是孤立的,由于数据不能共享和同步,所以造成了考试号不能自动分配等严重的缺陷和不便,因此说这种简单应用方式并没有给招生报名工作带来信息技术的准确、高效、安全等优点。
为了改善系统的性能,通过在多台计算机之间合理地分配负载,使各台计算机的负载基本均衡,这种计算能力共享的形式,通常被称为负载均衡或负载共享。一般来说,“负载均衡”要达到的目标是使各台计算机之间的负载基本均衡,而“负载共享”意味着只是简单的负载的重新分配。负载均衡建立在现有网络结构之上,它提供了一种廉价有效透明的方法扩展网络设备和服务器的带宽、增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性。
负载均衡有两方面的含义。1、大量的并发访问或数据流量分担到多台节点设备上分别处理,减少用户等待响应的时间。2、单个重负载的运算分担到多台节点设备上做并行处理,每个节点设备处理结束后,将结果汇总,返回给用户,系统处理能力得到大幅度提高。
本文仅仅针对系统的Web服务器的负载均衡展开研究,主要创新点体现在以下几个方面:
1.提出了用多机模式来代替传统的单机模式的一种解决方案。通过多服务
器协同处理客户的请求,从而在多个服务器之间分担负载,以减轻单个服务器处理报文的负担,并保证整个系统对客户的透明。
2.研究常用的负载均衡算法,针对Web服务器的负载特点,在系统中采用动态的加权最小连接数算法做为主要的均衡调度算法,比较适合Web访问请求的分配。
3.提出了对基于intraweb异构集群的动态负载均衡技术的具体实施方案,实现并优化了关键功能模块,包括负载调度器中负载信息采集模块和负载分配模块的实现、节点服务器的配置以及存储共享的实现与招生报名系统的移植方法。
4.本文的研究方法已经在济南大学招生管理信息系统中得到应用,系统性能稳定,运行效果良好,有关指标得到优化,取得了较好的经济效益和社会效益。
关键字:负载均衡; intraweb; 服务器集群
ABSTRACT
The admission in long-distance on Internet is basically realized in most of the provinces throughout the country in 2003. The successful application of the admission system makes the management of the admission transformed revolutionarily. The collected and distributed information of examinee is an indispensable and preliminary work of recruiting on Internet. The collection and distribution of the electronic file of the entrance examinations is a systemic App project which should take the following
