首页> 中文期刊> 《河北工业大学学报 》 >基于Nginx的负载均衡方式优化

基于Nginx的负载均衡方式优化

             

摘要

针对Nginx固有负载均衡方式不能根据需要灵活调整的现状,提出了WLC (Weighted Least Connection)调度算法,对Nginx的请求分发方式进行了优化,通过对Nginx源码的改进,从而解决了Nginx请求分发过程中的session丢失问题,并实现了依据后端服务器固有性能和服务器当前负载情况对请求进行动态分配.通过对调度算法的实验与分析,验证了相同负载情况下WLC算法有较好的性能.%Aiming at the inherent method of Nginx load balancing which can not be adjusted according to the current situation flexibly,WLC (Weighted Least Connection) scheduling algorithm was proposed to optimize the method of Nginx's request distribution.The problem of session lost during request distributing was solved through the improvement of Nginx source code.And the requests can be distributed dynamically according to the inherent performance and current load of the back-end servers.The experiment and analysis of scheduling algorithm verify that the WLC algorithm can play better under the same load.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号