基于Docker容器的快速开发网页服务器
作者:
基金项目:

山东省自然科学基金面上项目(ZR2020MF048)


Rapid Development of Web Server Based on Docker Container
Author:
  • 摘要
  • | |
  • 访问统计
  • |
  • 参考文献 [15]
  • | |
  • 引证文献
  • | |
  • 文章评论
    摘要:

    C/S模式是早期的开发网页服务器架构, 它使用复杂、成本高并且缺少通用性. B/S模式通过将系统功能集中到服务器中弥补了使用复杂成本高的缺点, 但是没有对用户端的环境和数据传输率进行深入测试和研究, 使得过多的外部用户访问网页, 给服务器带来压力. 针对传统C/S模式和B/S模式的局限性, 引入Docker容器化开发思路, 分别融合Nginx和Flask方法, 构建DoNginx模式与DoFlask模式, 通过修改和建立镜像实现网页服务器的开发. 这两种模式综合了Docker的轻量级、Nginx的低消耗、Flask的稳定性的优势, 实现了模式的优化. 设计CPU、完整性、吞吐量性能测试实验, 与传统B/S模式进行深度分析对比. 实验表明, DoNginx模式资源利用率高, DoFlask模式环境兼容性和可靠性更强, 且均优于传统B/S模式, 具有很好的框架设计贡献和实验性能.

    Abstract:

    The C/S mode is an early architecture for developing Web servers, which is complex, costly, and lacking in generality. The B/S mode makes up for the disadvantages of complex use and high cost by concentrating system functions in the server, but it does not conduct in-depth testing and research on the environment and data transmission rate of the user end, which brings too many external visits to the Web page and puts pressure on the server. Given the limitations of the traditional C/S mode and B/S mode, this study introduces the idea of Docker container development and integrates it with Nginx and Flask methods respectively to construct the DoNginx mode and the DoFlask mode, which develop the Web server by modifying and establishing mirror images. The two modes combine the advantages of Docker’s lightweight, Nginx’s low consumption, and Flask’s stability to realize mode optimization. The CPU, integrity, and throughput performance tests are designed to make a comprehensive comparison with traditional B/S mode. Experiments show that the DoNginx mode has a high resource utilization rate, and the DoFlask mode has stronger environmental compatibility and reliability. Both modes are superior to the traditional B/S mode in the above aspects, boasting great contributions to the framework design and good experimental performance.

    参考文献
    [1] Zhang SJ. Development and forecast analysis of english network teaching aid platform under B/S technology framework. 2020 12th International Conference on Measuring Technology and Mechatronics Automation (ICMTMA). Phuket: IEEE, 2020. 68–71.
    [2] Elliott D, Otero C, Ridley M, et al. A cloud-agnostic container orchestrator for improving interoperability. 2018 IEEE 11th International Conference on Cloud Computing (CLOUD). San Francisco: IEEE, 2018. 958–961.
    [3] Sultan S, Ahmad I, Dimitriou T. Container security: Issues, challenges, and the road ahead. IEEE Access, 2019, 7: 52976–52996. [doi: 10.1109/ACCESS.2019.2911732
    [4] 陈雁, 黄嘉鑫. 基于Kubernetes应用的弹性伸缩策略. 计算机系统应用, 2019, 28(10): 213–218. [doi: 10.15888/j.cnki.csa.007106
    [5] Kozlovszky M, T?r?csik M, Schubert T, et al. IaaS type cloud infrastructure assessment and monitoring. 2013 36th International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO). Opatija: IEEE, 2013. 249–252.
    [6] 税正威. 基于Docker的Java Web快速开发部署平台的设计与实现[硕士学位论文]. 北京: 北京邮电大学, 2018.
    [7] Ha JH, Kim J, Park H, et al. A Web-based service deployment method to edge devices in smart factory exploiting docker. 2017 International Conference on Information and Communication Technology Convergence (ICTC). Jeju: IEEE, 2017. 708–710.
    [8] Li YC, Xia YM. Auto-scaling web applications in hybrid cloud based on docker. 2016 5th International Conference on Computer Science and Network Technology (ICCSNT). Changchun: IEEE, 2016. 75–79.
    [9] Bella MRM, Data M, Yahya W. Web server load balancing based on memory utilization using docker swarm. 2018 International Conference on Sustainable Information Engineering and Technology (SIET). Malang: IEEE, 2018. 220–223.
    [10] Qin E, Wang YL, Yuan LP, et al. Research on nginx dynamic load balancing algorithm. 2020 12th International Conference on Measuring Technology and Mechatronics Automation (ICMTMA). Phuket: IEEE, 2020. 620–624.
    [11] 戴伟. 基于Nginx高性能Web服务器的理论研究与性能改进[硕士学位论文]. 南京: 南京邮电大学, 2019.
    [12] 张延冬, 邢艳芳. 基于Docker的运维平台设计. 计算机时代, 2018, (4): 16–18, 22
    [13] Li P, Zhang XZ. The design and implementation of web-based FTP remote management system. 2012 Second International Conference on Business Computing and Global Informatization. Shanghai: IEEE, 2012. 774–777.
    [14] Bin C. Formalized description and analysis of FTP on petri net. 2015 International Conference on Intelligent Information Hiding and Multimedia Signal Processing (IIH-MSP). Adelaide: IEEE, 2015. 176–179.
    [15] Xie JH, Liu ZY. Based on C/S and B/S mixed mode telephone marketing system. 2012 International Conference on Industrial Control and Electronics Engineering. Xi’an: IEEE, 2012. 874–876.
    相似文献
    引证文献
    网友评论
    网友评论
    分享到微博
    发 布
引用本文

谢兆贤,曹香美,王超.基于Docker容器的快速开发网页服务器.计算机系统应用,2022,31(4):99-109

复制
分享
文章指标
  • 点击次数:809
  • 下载次数: 1909
  • HTML阅读次数: 1809
  • 引用次数: 0
历史
  • 收稿日期:2021-06-22
  • 最后修改日期:2021-07-14
  • 在线发布日期: 2022-03-22
文章二维码
您是第11325615位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号