Font Size: a A A

Research On Load Balancing Based On Nginx

Posted on:2021-01-19Degree:MasterType:Thesis
Country:ChinaCandidate:J ChenFull Text:PDF
GTID:2518306104999939Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the continuous development of computer technology,the Internet has become an integral part of people's daily life.Some large-scale websites provide uninterrupted services,and the huge daily visits bring severe challenges to the normal operation of the system.A single server can no longer meet the needs of enterprises.In order to meet the needs of high concurrency and low latency,many large-scale websites adopt the way of server cluster instead of a single server.Through the cooperation of server nodes in the cluster,stable services can be provided.But this way brings a new problem.The server cluster may have unbalanced load,resulting in a lot of waste of available resources,even in some cases,it will reduce the overall performance of the server cluster.The birth of load balancing technology solves the problem of uneven load distribution of each node in the server cluster.Combined with load balancing technology,the system forwards the request to a server node in the cluster according to a reasonable strategy,so that the load of nodes in the whole system is in a balanced state,so as to increase the throughput of the system and reduce the response time of the request.Therefore,in order to make the cluster system have higher performance,it is very important to study and explore better load balancing algorithm.Nginx is a software commonly used in the industry to achieve load balancing,which has many commonly used load balancing algorithms built in.In this paper,Nginx is studied,the excellent modular design concept of Nginx is studied,and the advantages and disadvantages of some load balancing algorithms of Nginx are analyzed and compared.On this basis,a load balancing algorithm with dynamic weight adjustment is proposed.According to the use of CPU,memory,disk IO and other resources,it dynamically adjusts the weight of server nodes in the cluster Make the whole system in the state of load balance as much as possible.On the basis of Nginx,combined with the idea of modular design,the load balancing algorithm of dynamic weight adjustment is divided into four modules.The collaborative cooperation between modules is used to complete the whole process of algorithm decision-making,which is used to meet the needs of high concurrency in web application scenarios,so as to improve the overall performance of the cluster system.Through the analysis of the experimental results,the load balancing algorithm proposed in this paper is better than the traditional load balancing algorithm,which can improve the overall performance of the system and bring better experience to users.
Keywords/Search Tags:Load balancing, Nginx, Server cluster, Dynamic weight
PDF Full Text Request
Related items