[1]戴伟,马明栋,王得玉.基于 Nginx 的负载均衡技术研究与优化[J].计算机技术与发展,2019,29(03):77-80.[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].,2019,29(03):77-80.[doi:10.3969/ j. issn.1673-629X.2019.03.016]
点击复制

基于 Nginx 的负载均衡技术研究与优化()
分享到:

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

卷:
29
期数:
2019年03期
页码:
77-80
栏目:
智能、算法、系统工程
出版日期:
2019-03-10

文章信息/Info

Title:
Research and Optimization of Load Balancing Based on Nginx
文章编号:
1673-629X(2019)03-0077-04
作者:
戴伟1 马明栋2王得玉2
1. 南京邮电大学 通信与信息工程学院,江苏 南京 210003;2. 南京邮电大学 地理与生物信息学院,江苏 南京 210003
Author(s):
DAI Wei1 MA Ming-dong2 WANG 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,Chin
关键词:
Nginx负载均衡反向代理IO 复用动态反馈服务器集群
Keywords:
Nginxload balancingreverse proxyIO multiplexingdynamic feedbackserver cluster
分类号:
TP39
DOI:
10.3969/ j. issn.1673-629X.2019.03.016
摘要:
随着互联网的普及和智能上网设备的高速发展,网络用户和业务量呈指数增长,热点事件的到来更是会引发网络节点的波动。 传统的单一的网络服务器根本无法承担大量并发业务请求,因此服务器集群技术应运而生。 为了能在服务器集群中合理分配业务,使各个服务器都发挥应有的性能,负载均衡机制及均衡算法成为了关键。 Nginx 作为一款轻量级高并发的 Web 服务器,单机可以承受十万级的并发请求,而其模块化的设计,更是可以方便地配置为反向代理服务器,将请求分配给上游服务器。 文中将分析 Nginx 的反向代理优势,通过对其自带的负载均衡算法进行分析,并优化出一种具有实时反馈能力的负载均衡算法。 通过测试,改进后的算法分配更加合理,处理连接的速度也更加快速,满足了设计要求。
Abstract:
With the popularization of the Internet and the rapid development of smart Internet devices,the number of network users and services has grown exponentially,and the arrival of hot-spot events will cause network nodes to fluctuate. The traditional single network server cannot handle a large number of concurrent service requests at all,therefore the server cluster technology arises. In order to distribute the service reasonably in the server cluster and make each server play its performance,load balancing mechanism and balancing algorithm become the key. As a lightweight and highly concurrent Web server,Nginx can withstand 100 000 concurrent requests on a single machine,and its modular design allows it to be easily configured as a reverse proxy server to allocate requests to upstream servers. In this paper,we analyze the advantages of Nginx reverse proxy and its own load balancing algorithm,and optimize a load balancing algorithm with real-time feedback. Through testing,the improved algorithm is more reasonable in allocation and faster in connection processing, which meets the design requirements.

相似文献/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].,2010,(03):21.
[2]徐群 祝永志.集群系统中的负载均衡问题的研究[J].计算机技术与发展,2009,(08):129.
 XU Qun,ZHU Yong-zhi.Research on Load Balancing Strategy for Cluster Systems[J].,2009,(03):129.
[3]陆磊 王锋.基于流负载均衡的入侵检测系统[J].计算机技术与发展,2009,(11):135.
 LU Lei,WANG Feng.Intrusion Detection System Based on Flow Load Balance[J].,2009,(03):135.
[4]王春枝 王骞.一种基于移动代理的服务器集群系统模型[J].计算机技术与发展,2009,(11):159.
 WANG Chun-zhi,WANG Qian.A Model of Servers Cluster System Based on Mobile Agent[J].,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].,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].,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].,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].,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].,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].,2007,(03):91.
[11]张宇星,马明栋,王得玉.基于 Nginx 负载均衡的动态改进算法[J].计算机技术与发展,2020,30(03):73.[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].,2020,30(03):73.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 014]

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