本文已被:浏览 1819次 下载 2782次
Received:September 05, 2016 Revised:October 17, 2016
Received:September 05, 2016 Revised:October 17, 2016
中文摘要: 为了解决不断增长的文件存储需求,和高流量高并发的访问量,增强系统的响应性能,提出一种Web应用优化策略,通过MongoDB GridFS对网站文件存储容量、可用性和可靠性进行扩展,并且通过Nginx和Keepalived,对后台访问进行负载均衡和双机热备,优化并发性能.实验表明,当并发访问数上升至80以上时,平均访问响应时间缩短9%.文件通过Nginx Gridfs进行高并发上传时非常稳定,在较大文件下载时比直接通过本地文件系统EXT4下载速度更高.
中文关键词: MongoDB GridFS Nginx Keepalived concurrency
Abstract:With the growing demand for massive file storage and high number of concurrent accesses to enhance performance of the system. In this paper, we propose an optimization strategy of web applications, which can expand the storage capacity, availability and reliability with MongoDB GridFS, and also can support load balancing and hot standby with Nginx and Keepalived, optimizing concurrent performance. We test the concurrent performances of the web application and the experimental results show that the average response time could be reduce by 9% when the number of concurrent accesses increases to more than 80. When files are uploaded concurrently through Nginx Gridfs, the performance is stable.The file-download speeds of larger files are faster than those through local file system EXT4.
keywords: MongoDB GridFS Nginx Keepalived concurrency
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
卢至彤,李翀,柯勇,孙健英.一种MongoDB应用优化策略.计算机系统应用,2017,26(5):55-61
LU Zhi-Tong,LI Zhong,KE Yong,SUN Jian-Ying.Optimisation Strategy for Web Applications Based on MongoDB.COMPUTER SYSTEMS APPLICATIONS,2017,26(5):55-61
卢至彤,李翀,柯勇,孙健英.一种MongoDB应用优化策略.计算机系统应用,2017,26(5):55-61
LU Zhi-Tong,LI Zhong,KE Yong,SUN Jian-Ying.Optimisation Strategy for Web Applications Based on MongoDB.COMPUTER SYSTEMS APPLICATIONS,2017,26(5):55-61