A method to improve the load balancing efficiency of nginx server
A load balancing and server technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve the problems of not considering the real-time load status of the back-end server, unable to fully utilize the Web server, unable to realize the server allocation tasks, etc. Achieve the effect of improving load balancing efficiency, improving operating efficiency and reducing work pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] A method for improving Nginx server cluster load balancing efficiency, comprising steps as follows:
[0038] 1) Configure the initial weight W of the backend server in the main configuration file of the Nginx server i ;
[0039] According to the physical performance of each back-end server, the initial weight of the back-end server is set to W i, and form a one-dimensional array W=[4,3,2,1]; in the full text, i is the label of the server, i∈[1,4];
[0040] nginx.conf is the main configuration file of the Nginx server, and the load balancing strategy of the Nginx server is also configured in this file, assuming that the back-end server cluster S=[S 1 ,S 2 ,S 3 ,S 4 ].
[0041] 2) Update the dynamic load Dt of the backend server i :
[0042] Obtain the latest n response time series of each backend server and form a two-dimensional array;
[0043]
[0044] Rt i is the last n services provided by the i-th server, and the response time of each service is t ij A...
Embodiment 2
[0064] The method for improving Nginx server cluster load balancing efficiency as embodiment 1, its difference is: step 5) in Cw i When the number of the largest backend server is greater than 1, in this embodiment, Cw i The maximum number of backend servers is 2; in the above 2 Cw i Select the initial weight W from the largest backend server i Served by the largest backend server.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com