基于Nginx服务器的动态负载均衡策略  被引量:16

Dynamic load balancing strategy based on Nginx server

在线阅读下载全文

作  者:刘佳祎 崔建明 智春 LIU Jia-yi;CUI Jian-ming;ZHI Chun(Modern Educational Technology Center,Guilin University of Technology,Guilin 541006,China;School of Continuing Education,Guilin University of Technology,Guilin 541006,China;College of Information Science and Engineering,Guilin University of Technology,Guilin 541006,China)

机构地区:[1]桂林理工大学现代教育技术中心,广西桂林541006 [2]桂林理工大学继续教育学院,广西桂林541006 [3]桂林理工大学信息科学与工程学院,广西桂林541006

出  处:《桂林理工大学学报》2020年第2期403-408,共6页Journal of Guilin University of Technology

基  金:广西自然科学基金项目(2018GXNSFAA281235);广西高校中青年教师科研基础能力提升项目(2018KY0252);赛尔网络下一代互联网技术创新项目(NGII20180512)。

摘  要:针对并发请求带来的服务器过载的问题,将Nginx服务器内置负载均衡策略进行优化,提出一种由负载采集、算法调度以及健康检查3个模块构成的动态负载均衡策略,其中算法调度模块给出改进后的调度算法——动态负反馈调度算法,以及新的度量指标。采用Apache BenchMark的httpd-tools工具进行测试,结果证明,改进后的策略使得服务器集群中的资源得到更为有效的利用,系统的吞吐量和处理能力得以提高,该调度算法无论在用户请求响应时间、实际处理的请求数,还是负载均衡度都优于Nginx内置的两种算法。To solve the problem of server overload caused by concurrent requests, the built-in load balancing strategy of Nginx server is optimized.The dynamic load balancing strategy composed of three modules(load collection, algorithm scheduling and health check)is proposed. The algorithm scheduling module gives the improved scheduling algorithm-dynamic negative feedback scheduling algorithm and new metrics. After testing with Apache BenchMark’s httpd-tools, the improved strategy makes more efficient use of resources in server cluster and improves the throughput and processing capacity of the system. The scheduling algorithm can not only meet user requests in response time, process actual number of requests, but also work better than Nginx built-in two algorithms in load equilibrium.

关 键 词:负载均衡 NGINX 负反馈 

分 类 号:TP399[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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