首页 | 本学科首页   官方微博 | 高级检索  
     

一种MongoDB应用优化策略
引用本文:卢至彤,李翀,柯勇,孙健英. 一种MongoDB应用优化策略[J]. 计算机系统应用, 2017, 26(5): 55-61
作者姓名:卢至彤  李翀  柯勇  孙健英
作者单位:中国科学院 计算机网络信息中心, 北京 100190,中国科学院 计算机网络信息中心, 北京 100190,中国科学院 计算机网络信息中心, 北京 100190,中国科学院 计算机网络信息中心, 北京 100190
摘    要:为了解决不断增长的文件存储需求,和高流量高并发的访问量,增强系统的响应性能,提出一种Web应用优化策略,通过MongoDB GridFS对网站文件存储容量、可用性和可靠性进行扩展,并且通过Nginx和Keepalived,对后台访问进行负载均衡和双机热备,优化并发性能.实验表明,当并发访问数上升至80以上时,平均访问响应时间缩短9%.文件通过Nginx Gridfs进行高并发上传时非常稳定,在较大文件下载时比直接通过本地文件系统EXT4下载速度更高.

关 键 词:MongoDB  GridFS  Nginx  Keepalived  concurrency
收稿时间:2016-09-05
修稿时间:2016-10-17

Optimisation Strategy for Web Applications Based on MongoDB
LU Zhi-Tong,LI Zhong,KE Yong and SUN Jian-Ying. Optimisation Strategy for Web Applications Based on MongoDB[J]. Computer Systems& Applications, 2017, 26(5): 55-61
Authors:LU Zhi-Tong  LI Zhong  KE Yong  SUN Jian-Ying
Affiliation:Computer Network Information Center, Chinese Academy of Sciences, Beijing 100190, China,Computer Network Information Center, Chinese Academy of Sciences, Beijing 100190, China,Computer Network Information Center, Chinese Academy of Sciences, Beijing 100190, China and Computer Network Information Center, Chinese Academy of Sciences, Beijing 100190, China
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
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号