Load balancing method, load balancer and system thereof

A load balancer and load balancing technology, applied in the computer field, can solve the problems of single server overload, session loss load, other servers being idle, etc., to achieve the effect of solving session loss and load imbalance, and achieving load balancing

Inactive Publication Date: 2014-02-26
BEIJING QIHOO TECH CO LTD +1
View PDF1 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of the above solution is that there may be session loss and serious load imbalance in the high-speed proxy Internet environment. figure 1 It shows the session process in the Internet environment of multiple proxy servers. The requests of a large number of client users are sent to the load balancer connection through the ISP (Internet Service Provider, Internet Service Provider) of multiple proxy servers or the intranet of the enterprise, and come from the same proxy server. The two requests of the same session of the client may go to different proxy servers to reach LVS (load balancer). LVS judges that the source IP is different, and allocates the two requests to different back-end servers, resulting in session loss; for example, LVS will The access request from Proxy1 is selected according to the IP address of proxy server 1 using the load balancing algorithm figure 1 The top server is used for processing; and the access request from Proxy2 is selected according to the IP address of proxy server 2 using the load balancing algorithm. figure 1 Bottom server for processing; resulting in lost session
figure 2 It shows the session flow in the single-proxy server Internet environment. A large number of client requests arrive at LVS through a single proxy server. LVS judges that the source IP is the same, and allocates these requests to the same back-end server, resulting in overloading of a single server. Other servers but very free
For example, access requests from three clients all arrive at LVS, and LVS judges that they are all access requests from Proxy1 (the source IP is the same), and the load balancer forwards all connections to a server according to session persistence, thus causing the server to fail. unbalanced load

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
  • Load balancing method, load balancer and system thereof
  • Load balancing method, load balancer and system thereof
  • Load balancing method, load balancer and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0040] Such as image 3 As shown, the embodiment of the present invention relates to a load balancing method for implementing load balancing between servers. The method includes: when receiving a request from a client, obtaining a session identity card SessionId from the request; Find the server corresponding to the SessionId in , and send the above request to the server; wherein, the Session table stores the server address corresp...

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 load balancing method, a load balancer and a system thereof. The method comprises: when a request form a client is received, a session Id is obtained from the request; and a server corresponding to the session Id is searched in a session list and the request is sent to the server, wherein a server address corresponding to the session Id is preserved in the session list. According to the technical scheme, the session Id is obtained in the request from the client and the corresponding server is determined by using the session Id, thereby ensuring that no interruption occurs during the session process. Moreover, load balancing is realized; and thus problems that session may be lost or the load is not balanced in the prior art can be solved and the beneficial effect of load balancing realization on the premise of session keeping is realized.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a load balancing method, a load balancer and a system. Background technique [0002] After the introduction of cluster technology, load balancing, as the core of cluster technology, has received extensive attention and research. Load balancing must not only ensure that the load between back-end servers is equal, but also correctly allocate requests for the same session in scenarios that require session retention. to the corresponding backend server to ensure that the session between the client and the backend server is not lost. [0003] LVS (Linux Virtual Server, Linux Virtual Server) is an open source load balancing technology. By inserting the call method at the detection point (HOOK) point of Netfilter (Network Screening System), the IP (Internet Protocol, the protocol for interconnection between networks) ) layer realizes the transparent forwarding of data packets. LVS m...

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): H04L12/803H04L12/24
Inventor 陈飞
Owner BEIJING QIHOO TECH 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