[1]张宇星,马明栋,王得玉.基于 Nginx 负载均衡的动态改进算法[J].计算机技术与发展,2020,30(03):73-76.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 014]
 ZHANG Yu-xing,MA Ming-dong,WANG De-yu.A Dynamic Improvement Algorithm Based on Nginx Load Balancing[J].Computer Technology and Development,2020,30(03):73-76.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 014]
点击复制

基于 Nginx 负载均衡的动态改进算法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
30
期数:
2020年03期
页码:
73-76
栏目:
智能、算法、系统工程
出版日期:
2020-03-10

文章信息/Info

Title:
A Dynamic Improvement Algorithm Based on Nginx Load Balancing
文章编号:
1673-629X(2020)03-0073-04
作者:
张宇星1马明栋2王得玉2
1.南京邮电大学 通信与信息工程学院,江苏 南京 210003; 2.南京邮电大学 地理与生物信息学院,江苏 南京 210003
Author(s):
ZHANG Yu-xing1MA Ming-dong2WANG De-yu2
1.School of Telecommunications & Information Engineering,Nanjing University of Posts and Telecommunications,Nanjing 210003,China; 2.School of Geographical and Biological Information,Nanjing University of Posts and Telecommunications, Nanjing 210003,China
关键词:
Nginx负载均衡反向代理高并发动态算法
Keywords:
Nginxload balancingreverse proxyhigh concurrencedynamic algorithm
分类号:
TP393.0
DOI:
10. 3969 / j. issn. 1673-629X. 2020. 03. 014
摘要:
随着过去几十年互联网服务的指数增长,各大网站的访问量急剧上升。 海量的用户请求使得热门网站的网络请 求率可能在几秒钟内大规模增加。 一旦服务器承受不住这样的高并发请求,由此带来的网络拥塞和延迟会极大地影响用 户体验。 负载均衡是高可用网络基础架构的关键组件,通过在后端引入一个负载均衡器,将工作负载分布到多个服务器 来缓解海量并发请求对服务器造成的巨大压力,提高后端服务器和数据库的性能以及可靠性。 而Nginx作为一款高性能 的HTTP和反向代理服务器,正越来越多地应用到实践中。 文中将分析Nginx服务器负载均衡的体系架构,研究默认的加 权轮询算法,并提出一种改进后的动态负载均衡算法,实时收集负载信息,重新计算并分配权值。 通过实验测试,对比不 同算法下的负载均衡性能,改进后的算法能有效提高服务器集群的性能。
Abstract:
With the exponential growth of Internet services in the past few decades,visits to major websites have risen dramatically. Massive user requests? make it possible for popular websites to see a massive increase in the rate of web requests in a few seconds. Once the server can’t with stand such high concurrent requests,the resulting network congestion and delays can greatly affect the user experience. Load balancing is a key component? ? ? of high-availability network infrastructure. By introducing a load balancer in the back end,the workload is distributed to multiple servers to alleviate? ?the huge pressure on servers caused by massive concurrent requests,and improve the performance and reliability of the back-end servers and databases. As a high-performance HTTP and reverse proxy server, Nginx is more and more applied in practice. In this study,we will analyze the architecture of Nginx server load balancing,study the default weighted polling algorithm and propose an improved dynamic load balancing algorithm to collect load information in real time,recalculate and distribute weights. The experiment shows that the proposed algorithm can effectively improve the performance? of server cluster by comparing the load balancing performance of different algorithms.

相似文献/References:

[1]黄益贵 王汝传.P2P-VoD系统中自适应大小的滑动窗口模型研究[J].计算机技术与发展,2010,(05):21.
 HUANG Yi-gui,WANG Ru-chuan.Research of Self-Adjust Size of Sliding Window Model in P2P-Based VoD System[J].Computer Technology and Development,2010,(03):21.
[2]徐群 祝永志.集群系统中的负载均衡问题的研究[J].计算机技术与发展,2009,(08):129.
 XU Qun,ZHU Yong-zhi.Research on Load Balancing Strategy for Cluster Systems[J].Computer Technology and Development,2009,(03):129.
[3]陆磊 王锋.基于流负载均衡的入侵检测系统[J].计算机技术与发展,2009,(11):135.
 LU Lei,WANG Feng.Intrusion Detection System Based on Flow Load Balance[J].Computer Technology and Development,2009,(03):135.
[4]王春枝 王骞.一种基于移动代理的服务器集群系统模型[J].计算机技术与发展,2009,(11):159.
 WANG Chun-zhi,WANG Qian.A Model of Servers Cluster System Based on Mobile Agent[J].Computer Technology and Development,2009,(03):159.
[5]王洪臣 朱尚明.多连接校园网策略路由的研究与实现[J].计算机技术与发展,2008,(04):25.
 WANG Hong-chen,ZHU Shang-ming.Research and Implementation on Policy- Based Routing in Multihoming Campus Network[J].Computer Technology and Development,2008,(03):25.
[6]刘必雄 许榕生[].大规模文件上传接收服务的负载均衡引擎研究[J].计算机技术与发展,2008,(06):16.
 LIU Bi-xiong,XU Rong-sheng.Research of Load - Balancing Engine for Large - Scale Up - Transfer Files Receiving Service[J].Computer Technology and Development,2008,(03):16.
[7]李丙锋 祝永志 魏榕晖.异构Beowulf系统负载均衡技术的研究与实现[J].计算机技术与发展,2008,(07):60.
 LI Bing-feng,ZHU Yong-zhi,WEI Rong-hui.Implementation of Load Balancing Technology on Heterogeneous Beowulf System[J].Computer Technology and Development,2008,(03):60.
[8]郭静 祝永志 王延玲.基于RR—DNS的Web集群系统的可用性研究[J].计算机技术与发展,2008,(12):56.
 GUO Jing,ZHU Yong-zhi,WANG Yan-ling.On Availability of Web Cluster Based on RR - DNS[J].Computer Technology and Development,2008,(03):56.
[9]赵文评 葛玮.基于PDG图的分布式动态可执行服务组合方法[J].计算机技术与发展,2007,(07):40.
 ZHAO Wen-ping,GE Wei.Approach for Decentralizing Dynamic Web Services Composition Based on PDG[J].Computer Technology and Development,2007,(03):40.
[10]阎文博 张育平 郭朝霞.基于网格技术的资源发现机制的研究与优化[J].计算机技术与发展,2007,(07):91.
 YAN Wen-bo,ZHANG Yu-ping,GUO Zhao-xia.Research and Amelioration on Resource Discovery Based on Grid Computing[J].Computer Technology and Development,2007,(03):91.
[11]戴伟,马明栋,王得玉.基于 Nginx 的负载均衡技术研究与优化[J].计算机技术与发展,2019,29(03):77.[doi:10.3969/ j. issn.1673-629X.2019.03.016]
 DAI Wei,MA Ming-dong,WANG De-yu.Research and Optimization of Load Balancing Based on Nginx[J].Computer Technology and Development,2019,29(03):77.[doi:10.3969/ j. issn.1673-629X.2019.03.016]

更新日期/Last Update: 2020-03-10