基于Docker技术的Web负载快速响应系统

 2021-12-25 03:12

论文总字数:35916字

摘 要

本文开发基于Docker技术的Web负载快速响应系统,从而为其提供负载响应功能,在负载高的时候启动更多的container,从而提升性能;在负载低的时候关闭container,减少资源消耗,从整体上提高了Web的性能和可用性。Docker作为新型的container(container)技术,相较原来的Virtualization Technology(Virtualization Technology)有着轻量、部署便捷、启动快速的特点,被广泛应用于各类计算机系统中。同时,Docker技术也具有广泛的应用前景,Google、Redhat、百度、淘宝等公司均大量采用Docker技术来减低其开发、部署成本。本课题将基于Docker技术,为日益增长的Web的负载提供快速响应。通过监控分布在各个计算节点上的Dockercontainer的负载情况确定Web总负载,当负载过大时通过启动新的Dockercontainer来分摊负载;在负载小的时候通过关闭container来减少资源浪费;并通过监控、迁移等一系列手段来优化资源使用率。

关键词:负载响应技术,Docker,容器技术,虚拟化技术,

WEB LOAD QUICK RESPONSE SYSTEM

BASED ON THE TECHNOLOGY OF DOCKER

Abstract

In this article, we will develop the Web load quick response system based on the Docker n technology ,thus we can providing Docker management function for websites .start more containers At the time of high load, to improve performance;Closed some containers at low load, to reduce resource consumption, so that we can improve the performance and availability of Web as a whole.

as a new type of container technology, Docker has the characteristics of light weight, convenient deployment, quick start compared with the original virtualization technology, which is widely used in various types of computer systems.At the same time, Docker technology also has wide application prospect, Docker technology has been widely used by companies like Google, Redhat, baidu and taobao to reduce the development costs and deployment costs.

This project will provide quick response for growing Web load based on Docker technology. it will determine the total Web load by Monitoring the load of container on every node which is distributed in computer cluster .when the load is too high it can share the load by starting new Docker container; when the load is to low it can reduce waste of resources By closing Docker container;And it can optimize resource utilization through a series of means, such as monitoring, migration .

KEY WORDS: Load Response Technology;Docker;Container Technology;Virtualization Technology.

目 录

第一章 绪论 1

1.1 引言 1

1.2 研究现状 2

1.2.1轻量级虚拟化方法 2

1.2.2 Docker-container轻量级级虚拟化解决方案 4

1.2.3 负载均衡技术 6

1.2.4 SSH协议 7

1.3论文组织结构 8

第二章 系统总体设计 9

2.1 系统整体框架 9

2.2 系统功能分析 9

2.2.1 功能划分 9

2.2.1 功能描述 10

2.3系统核心模块 10

2.3.1负载均衡模块 10

2.3.2 Docker 管理模块 12

2.3.3 Web页面展示模块 12

2.3.4数据库模块 12

第三章 系统功能实现 13

3.1开发工具及平台 13

3.2准备工作 13

3.2.1下载安装Docker及Docker镜像 13

3.2.2制作Docker镜像 14

3.2.3安装并配置nginx 14

3.2.4设置sudo免密码 15

3.3 功能实现 15

3.3.1显示层 16

3.3.2服务层 18

3.3.3虚拟层 29

3.3.4系统资源层 29

3.4 数据表设计 29

第四章 系统测试和结果分析 30

4.1负载均衡测试 30

4.1.1Docker模块 30

4.1.2 Nginx负载均衡模块 30

4.1.3 SSH远程登录模块 31

4.1.5负载展示模块 35

第五章 总结与展望 37

5.1 论文总结 37

5.2 工作展望 37

参考文献 39

致 谢 40

绪论

1.1 引言

随着web应用普及以及用户数量持续的增加,提高网络服务器的响应速度已成为当务之急。据某权威机构统计,如果一个电商网站不能确保用户请求在8秒内得到回应,就将损失超过30%客户。如何提高web 服务器的响应速度?许多人首先想到的应该是提高硬件的性能。但是,仅仅是在硬件性能上做文章并不能真正解决这个问题。为解决这个问题,多台服务器提供网络服务也许是个不错的想法。这个方法的精髓就是将web请求按一定规则分配给服务器,就是采用Load Balance技术。因此在Load Balance的思路下,可以使多个服务器提供同一种服务,当web负载量非常大时,可以采用Load Balance技术将负载平均分摊到多个内部服务器上,这样就可以做到物尽其用。可见,web Load Balance技术是相当具有现实价值的。

本项目将选用Docker而不是传统的VM技术分担服务器负载。

剩余内容已隐藏,请支付后下载全文,论文总字数:35916字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;