Font Size: a A A

Research On Improvement Of Nginx Load Balancing Algorithm Based On Congestion Control

Posted on:2022-08-11Degree:MasterType:Thesis
Country:ChinaCandidate:F H DuFull Text:PDF
GTID:2518306722972879Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
At present,with the rapid development of the Internet and the continuous improvement of network services,more and more people have become basic users of the Internet.The increase in the number of users has increased several times compared to the expected number,which places higher demands on the server cluster,the basic component behind network services.In the past when the Internet was underdeveloped,the server load was almost small,but today,in various high concurrency scenarios such as "seckill","double eleven","double twelve",and "ticket grabbing",the average daily traffic The peak traffic is unimaginable,so the server requirements are extremely demanding,so load balancing has become a hot issue in all walks of life.The main contributions of this article are as follows:(1)The performance indicators of the evaluation server are analyzed and elaborated in detail.At the same time,a more reasonable,objective,and comprehensive server performance evaluation indicator is selected based on the current Internet resource types and user experience in a targeted manner: CPU,Memory,disk IO,network bandwidth.(2)After analyzing the congestion control algorithm in TCP network,according to the principle and idea of AIMD,the relevant threshold is introduced,and a load balancing strategy based on congestion control is designed and implemented.The strategy is combined with the default weighted polling algorithm in nginx,and the weighted polling strategy of default is improved to some extent.(3)Use variance and standard deviation to determine whether the server node load in the cluster system is balanced.(4)In order to avoid frequent transmission of the performance status information of the server node,the method of periodically collecting load information is selected,and an appropriate periodic interval is selected through experiments.This periodic collection method can avoid the performance waste of the cluster system to a certain extent.At the end of this article,by using performance testing tools such as Httperf and Autobench,the load balancing strategy based on congestion control proposed in this article is tested and compared with the three default load balancing strategies in Nginx.Through the analysis and comparison of experimental data,it can be concluded that in terms of response time and actual concurrent connections,the load balancing strategy proposed in this paper is better than the default three load balancing strategies to a certain extent,which proves that the improved research in this paper is feasible Effective.
Keywords/Search Tags:Load Balancing, Nginx, Congestion Control, Server Cluster, Threshold
PDF Full Text Request
Related items