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

Active Publication Date: 2017-10-24
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiments of the present invention provide a load balancing method and device to solve the problem in the prior art that under the current network or machine environment, the overall back-end processing cluster cannot be brought into full play, and it may even easily lead to The problem of high load on some machines

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for load balancing
  • Method and device for load balancing
  • Method and device for load balancing

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for load balancing. The method includes the following steps: circularly executing the following steps until that the overall processing throughput meets a preset equilibrium condition is determined; determining the current load flow distributed to each server according to the current processing weight of each server; distributing the determined current load flow to each server; collecting the current real-time processing pressure parameter of each server; determining whether the overall processing throughput meets the preset equilibrium condition according to the collected current real-time processing pressure parameter of each server; and when determining that the overall processing throughput meets the preset equilibrium condition, adjusting the processing weight of each server, and taking the processing weight of each server after adjustment as the current processing weight in next cycle. Through the technical scheme provided by the embodiments of the invention, the problem that the whole back-end processing cluster cannot function best and even some machines may be overloaded in the current network or machine environment is solved.

Description

technical field [0001] The invention relates to cloud computing technology, in particular to a load balancing method and device. Background technique [0002] Load balancing has always been a hot topic in distributed services. At present, common load balancing algorithms include random and polling algorithms. At present, Baidu Cloud's daily traffic has reached tens of billions, and it continues to grow. After the domain name resolution, the traffic of Baidu Cloud will enter Baidu Cloud's own access layer (secondary reverse proxy) through the first-level reverse proxy. cluster. [0003] There are many machines, clusters, and computer rooms involved in the request processing process. There may be various mixed distributions in the back-end services, and the services will affect each other. At the same time, there are problems such as different machine performance and different network conditions in the computer room, which lead to back-end In the case of unbalanced load of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1008H04L67/1029
Inventor 林晓刚高巍范利平
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products