Font Size: a A A

Research And Optimization Of Server Cluster Load Balancing Strategy Based On Nginx

Posted on:2021-01-19Degree:MasterType:Thesis
Country:ChinaCandidate:B H WuFull Text:PDF
GTID:2428330602476851Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid growth of the number of Internet users,the amount of web resource access to websites and application systems has also increased dramatically.The huge amount of web resource access has brought huge performance pressure to the server,and the high concurrent access demand of users is easy to cause the performance bottleneck of the server.Single server can not bear large-scale concurrent access and data traffic,server cluster is composed of multiple servers,which can distribute tasks to multiple server devices through load balancing strategy to reduce the response time of user requests,thereby improving the user's online experience.As a high-performance web server,nginx is often used in proxy service,load balancing and Web caching.Load balancing is a key application of nginx server reverse proxy service.This paper analyzes and studies the load balancing algorithm supported by Nginx,and proposes a dynamic load balancing algorithm based on the real-time load of back-end server based on the nginx weighted round robin algorithm.The algorithm uses an improved analytic hierarchy process-entropy weight method to determine the weight coefficient of each load index,used to measure the importance of each load index on the load evaluation,periodically collect back-end server load information,and use the set threshold to judge Whether the cluster load is balanced.If the cluster load is unbalanced,modify the server weight according to the real-time load of the back-end server.This paper selects request response time and throughput as the evaluation information of server performance indicators,and uses Siege performance testing tools to test the performance of weighted round robin algorithm,ip_hash and dynamic load balancing algorithm.The feasibility and effectiveness of the dynamic load balancing algorithm proposed in this paper are verified by analyzing the performance test results.
Keywords/Search Tags:load balancing, cluster, Nginx, high concurrency
PDF Full Text Request
Related items