期刊文献+

基于Nginx的负载均衡技术研究与优化 被引量:29

Research and Optimization of Load Balancing Based on Nginx
下载PDF
导出
摘要 随着互联网的普及和智能上网设备的高速发展,网络用户和业务量呈指数增长,热点事件的到来更是会引发网络节点的波动。传统的单一的网络服务器根本无法承担大量并发业务请求,因此服务器集群技术应运而生。为了能在服务器集群中合理分配业务,使各个服务器都发挥应有的性能,负载均衡机制及均衡算法成为了关键。Nginx作为一款轻量级高并发的Web服务器,单机可以承受十万级的并发请求,而其模块化的设计,更是可以方便地配置为反向代理服务器,将请求分配给上游服务器。文中将分析Nginx的反向代理优势,通过对其自带的负载均衡算法进行分析,并优化出一种具有实时反馈能力的负载均衡算法。通过测试,改进后的算法分配更加合理,处理连接的速度也更加快速,满足了设计要求。 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.
作者 戴伟 马明栋 王得玉 DAI Wei;MA Ming-dong;WANG De-yu(School of Telecommunications & Information Engineering,Nanjing University of Posts and Telecommunications,Nanjing 210003,China;School of Geographical and Biological Information,Nanjing University of Posts and Telecommunications,Nanjing 210003,China)
出处 《计算机技术与发展》 2019年第3期77-80,共4页 Computer Technology and Development
基金 江苏省自然科学基金-青年基金项目(BK20140868)
关键词 NGINX 负载均衡 反向代理 IO复用 动态反馈 服务器集群 Nginx load balancing reverse proxy IO multiplexing dynamic feedback server cluster
  • 相关文献

参考文献7

二级参考文献23

  • 1崔滨,万旺根,余小清,楼顺天.基于EPOLL机制的LINUX网络游戏服务器实现方法[J].微计算机信息,2006,22(07X):64-66. 被引量:13
  • 2吴敏,熊文龙.基于Linux的高性能服务器端的设计与研究[J].交通与计算机,2007,25(1):129-131. 被引量:8
  • 3Nedelcu C. Nginx HTTP Server.Birmingham.Packt Publishing, 2010: 242-245.
  • 4Kegel D. The CIOK problem.2011.http://www.kegel.com/ c 10k.hlml.
  • 5张宴.实战Nginx:取代Apache的高性能Web服务器.北京:电子工业出版社.2011.6-lO.
  • 6Stevens WR, Fenner B, Rudoff AM. UNIX Network Programming Volume 1: The Socket Networking API. 3rd Ed.北京:人民邮电出版社,2010.122-132.
  • 7Sivaraman M. How to use epoll: A complete example in C.2011.https://banu.com/blog/2/how-to-use-epoil-a-complete -example-in-c/.
  • 8Kovyrin O. Using ~poll For Asynchronous Network Programming.2006.http://kovyrin.net/2006/04/13/epoll-async hronous-network-programming/.
  • 9Xu Z,,Han J,Bhuyan L.Scalable and Decentralized Con-tent-Aware Dispatching in Web Clusters[]..2007
  • 10.

共引文献71

同被引文献182

引证文献29

二级引证文献48

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部