Method and device for load balancing
A load balancing and balancing technology, applied in the field of cloud computing, can solve the problem of high machine load and achieve the effect of improving the overall processing capacity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] figure 1 It is a flowchart of a load balancing method provided by Embodiment 1 of the present invention. The method of this embodiment can be executed by a load balancing device, the device can be realized by means of software and / or hardware, and generally can be integrated into a load balancing controller. like figure 1 As shown, the load balancing method provided in this embodiment includes:
[0031] S110. Determine the current load flow distributed to each server according to the current processing weight of each server.
[0032] The servers of the network include front-end servers and back-end servers. The front-end server generally interacts with the client and is responsible for receiving and distributing request information. In contrast, the back-end server is responsible for processing the requested information. The back-end server relatively needs a large amount of computing memory. If it directly processes the request information, the response to the req...
Embodiment 2
[0059] Embodiment 2 of the present invention further specifically describes the load balancing method on the basis of Embodiment 1 above. Especially when it is determined that the overall processing throughput does not meet the preset balance condition, adjust the processing weight of each server, and use the adjusted processing weight of each server as the current processing weight of the next cycle The process is further optimized.
[0060] The above process specifically includes: calculating the weight increment of each server according to the real-time processing pressure parameters of each server and the real-time processing pressure parameters of all servers; The current weights are added together as the adjusted weights.
[0061] More specifically, refer to Figure 4 , Figure 4 It is a flowchart of a load balancing method provided by Embodiment 2 of the present invention, the method includes:
[0062] S410. Initialize the processing weights of the servers.
[0063...
Embodiment 3
[0084] Embodiment 3 of the present invention describes the entire load balancing method more directly and specifically in the form of examples on the basis of the foregoing embodiments.
[0085] The load balancing method can be applied to dynamic load balancing control based on Nginx (engine x) reverse proxy. Nginx is a lightweight World Wide Web server or reverse proxy server and email (Internet Mail Access Protocol (Internet Mail Access Protocol, IMAP) or Post Office Protocol Version 3 (PostOffice Protocol-Version 3, POP3)) proxy server , and released under a BSD-like (Open Source Derivative) license.
[0086] Nginx has powerful functions, super performance, few bugs (loopholes), and stable work. Nginx can be configured to proxy multiple servers. When a server goes down, it will be automatically removed to keep the system available, and it can implement multiple distribution strategies. Therefore, load balancing control based on Nginx reverse proxy is very popular among us...
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