基于分布式高可用集群的网购系统优化  被引量:1

Optimization of Online Shopping System Based on Distributed High Availability Cluster

在线阅读下载全文

作  者:焦宇 李民[1] 王欢 余开朝[1] JIAO Yu;LI Min;WANG Huan;YU kai-chao(School of Mechanical and Electrical Engineering,Kunming University of Technology,Kunming 650500,China)

机构地区:[1]昆明理工大学机电工程学院,云南昆明650500

出  处:《软件导刊》2022年第6期183-187,共5页Software Guide

基  金:云南省智能化自动化产业发展研究项目(YNDR2017G1C06)。

摘  要:当前,人们的生活离不开网购,传统的网购系统仍然存在单机容量较低、无法应对高并发及缓存不足等问题,而提高网购系统容量、抗并发能力并强化缓存可以有效提高数据查询效率。对传统单机模式下的网购系统进行优化重构,设计一种基于分布式集群的高可用框架,采用Nginx访问服务器实现集群的高可用并提升抗并发能力,通过Nginx lua调用Redis集群缓存的方式降低客户对服务器的访问压力并提高数据读取效率。最后进行压测实验,通过观察平均响应时间及最大吞吐量参数可知,相比传统系统,优化后的系统在1000、1500、2000并发量下平均响应时间分别减少72ms、151ms、135ms,吞吐量分别提高624/s、1274/s、1062/s,进一步验证了优化后的系统在抗并发及数据提取性能上有明显提升。Nowadays,people’s life is inseparable from online shopping.However,the traditional online shopping system still has some problems,such as low single machine capacity,unable to cope with high concurrency and insufficient cache.Therefore,improving the capacity of online shopping system,anti concurrency ability and strengthening cache can effectively improve the efficiency of query data.Therefore,optimize and reconstruct the online shopping system under the traditional stand-alone mode,designs a high availability framework based on distributed cluster,uses nginx access server to realize the high availability of the cluster and improve the anti concurrency ability,reduces the access pressure of customers to the server and improves the data reading efficiency by calling redis cluster cache through nginx Lua.Finally,the pressure measurement experiment is carried out.By observing the average response time and maximum throughput parameters,it shows that compared with the traditional system,the average response time of the optimized system under 1000,1500 and 2000 concurrency is reduced by 72ms,151ms and 135ms respectively,and the throughput is improved by 624/s,1274/s and 1062/s.It is further verified that the optimized system has obvious improvement in anti concurrency and data extraction performance.

关 键 词:分布式部署 负载均衡 Redis集群 Nginx lua缓存 性能压力测试 

分 类 号:TP302[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象