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

云中心基于Nginx的动态权重负载均衡算法
引用本文:谭畅,谭歆,胡磊,熊炜.云中心基于Nginx的动态权重负载均衡算法[J].重庆邮电大学学报(自然科学版),2021,33(6):991-998.
作者姓名:谭畅  谭歆  胡磊  熊炜
作者单位:重庆邮电大学 通信与信息工程学院,重庆400065;中电科技集团 重庆声光电有限公司,重庆401332;重庆市住房公积金管理中心,重庆401121
基金项目:国家自然科学基金(61671096);重庆市“科技创新领军人才支持计划”(CSTCCXLJRC201710);重庆市基础科学与前沿技术研究项目(cstc2017jcyjBX0005)
摘    要:为了解决云中心的服务器端在高并发情况下各节点的负载失衡问题,在对负载均衡技术Nginx自带的负载均衡策略和主流的负载均衡策略进行研究、分析的基础上,提出了一种动态调节权重的负载均衡策略.该策略基于加权轮询策略进行改进,同时考虑服务器的本身硬件性能与工作时的负载情况,设计了静态权值和动态权值的计算方法,将两者结合得到节点最终权值.静态权值主要考虑了各服务器的硬件性能情况,动态权值的计算则是收集各后端服务器节点工作时的CPU利用率、内存利用率、网络性能情况及磁盘I/O等性能情况,由此,动态地调节各后端服务器节点权重.测试结果表明,相较于原加权轮询算法,该算法在高并发情况下的响应时间和实际并发数等方面表现更好.

关 键 词:Nginx  动态权重  负载均衡  集群  Linux
收稿时间:2020/10/27 0:00:00
修稿时间:2021/6/18 0:00:00

Dynamic weight load balancing method of cloud-center based on Nginx
TAN Chang,TAN Xin,HU Lei,XIONG Wei.Dynamic weight load balancing method of cloud-center based on Nginx[J].Journal of Chongqing University of Posts and Telecommunications,2021,33(6):991-998.
Authors:TAN Chang  TAN Xin  HU Lei  XIONG Wei
Institution:School of Communication and Information Engineering, Chongqing University of Posts and Telecommunications, Chongqing 400065, P. R. China;Chongqing Acoustic-Optic-Electronic Co. Ltd, China Electronics Technology Group, Chongqing 401332, P. R. China; Chongqing Municipal Housing Provident Fund Administration Center, Chongqing 401121, P. R. China
Abstract:To solve the problem of load imbalance of each node in the high concurrency situation in the cloud-center, a load balancing strategy with dynamic weight adjustment is proposed based on the research and analysis of Nginx load balancing strategy and the mainstream load balancing strategy. The strategy is improved based on the round-robin strategy, while taking into account the server''s own hardware performance and load during work, a static weight and dynamic weight calculation method is designed, and the final weight of the node is obtained by combining the two. The static weight mainly considers the hardware performance of each server, while the dynamic weight adjusts the weight of each back-end server node by collecting the CPU utilization, memory utilization, network performance, and disk I/O performance of each node. Experimental results show that in high concurrency situations, the proposed algorithm outperforms the original weighted round-robin algorithm in response time and actual number of concurrent.
Keywords:Nginx  dynamic weight  load balance  cluster  Linux
本文献已被 万方数据 等数据库收录!
点击此处可从《重庆邮电大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《重庆邮电大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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