基于Docker引擎虚拟化技术的应用研究
2020-12-23刘晶晶朱寅非
刘晶晶 朱寅非



摘 要: Docker作为一种新兴技术,给企业的应用带来了新的变革。它不仅降低了工程开发难度,更为重要的是它屏蔽了底层的异构环境。本文首先分析了传统的虚拟机架构,然后给出了自己平台即服务的架构。为了获得新的平台架构与传统的虚拟机架构的有关参数对比数据,本文同时在上述两种平台上部署了Tomcat、Oracle和Mysql三种应用。通过改变CPU的核数、内存的大小等方式,得到服务器最大响应时间等指标。通过测试数据的分析,我们发现基于Docker引擎的PAAS平台更适合轻量级的应用。
关键词: 虚拟化;Docker;吞吐量
中图分类号: TP391 文献标识码: A DOI:10.3969/j.issn.1003-6970.2020.10.001
本文著录格式:刘晶晶,朱寅非. 基于Docker引擎虚拟化技术的应用研究[J]. 软件,2020,41(10):0104
【Abstract】: Docker as an emerging technology, to the enterprise application has brought new changes. It not only reduces the difficulty of project development, more importantly, it shields the underlying heterogeneous environment. This paper first analyzes the traditional virtual machine architecture, and then gives its own platform as a service architecture. In order to obtain the new platform architecture and the traditional virtual machine architecture parameters of the comparative data, this paper also in the two platforms on the deployment of Tomcat, Oracle and Mysql three applications. By changing the number of cores, the size of the memory, etc, get the maximum response time of the server and other indicators. Through the test data analysis, we found that the PAAS platform based on Docker engine is more suitable for lightweight applications.
【Key words】: Virtualization; Docker; Throughput
0 引言
云计算包括基础设施即服务(IaaS),平台即服务(PaaS)和软件即服务(SaaS),对于开发人员来说,可以方便的将各种应用程序部署在PaaS上,这种PaaS平台上部署有利于降低运行成本[1]。对于云计算来说,核心技术是虚拟化技术[2]。虚拟化技术在底层和上层操作系统之间插入了一个新的软件层,它实现了底层和上层的解耦,降低因过多上层应用给底层主机带来的压力[3]。当上层虚拟机进行规模的部署时,会在底层宿主机上形成大量重复的内存分页,最终导致虚拟机启动变慢。而基于Docker引擎的虚拟化技术,虽然存在固有的缺陷,但在启动速度、隔离度等方面有诸多优势[4]。
1 技术背景
Docker作为一种高级容器引擎,基于Go语言开发,在LXC之上做进一步封装,提高了标准化和可移植性。……
