Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for load balancing

A load balancing and active technology, applied in the communication field, can solve load imbalance and other problems, achieve the effect of balancing load, efficient network service, and ensuring stability

Inactive Publication Date: 2015-07-29
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a load balancing method and device to solve the technical problem of unbalanced load when accessing massive links

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

[0039] The embodiment of the present invention provides a load balancing method, which is applicable to the case of balancing the number of active connections handled by the server, and the method can be executed by a load balancing device, such as figure 2 As shown, the method specifically includes the following steps:

[0040] Step S201, setting the threshold value of the number of active connections accessed by each VIP (Virtual IP Address, virtual IP address) and the threshold value of the number of active connections accessed by each realserver (real server).

[0041] In this step, a director server (multi-load scheduler) can receive multiple VIPs to receive client requests. Since the number of active connections of the director server is limited, in order to prevent the number of active connections from being too large, causing the director server to crash, The number of active connections for VIP access needs to be limited. Therefore, set the active connection thresho...

Embodiment 2

[0049] Because some active connections received by realserver are long connections, some active connections are short connections. Therefore, when some realservers receive a new active connection, the previously received active connection is a long connection and has not been disconnected, and some realservers have a heavy load; when some realservers receive a new active connection, the previously received active connection The connection is short and has been disconnected. In the case of some realservers with light load, it is necessary to balance the load among the realservers. On the basis of Embodiment 1 of the present invention, Embodiment 2 of the present invention provides another load balancing method, such as image 3 shown, including the following steps:

[0050] Step S301, setting thresholds for the number of active connections accessed by each VIP and thresholds for the number of active connections accessed by each realserver.

[0051] Step S302, monitor the numb...

Embodiment 3

[0062] An embodiment of the present invention provides a load balancing device, which can perform the above load balancing method, such as Figure 4 As shown, the load balancing device includes: a threshold setting module 41 , a VIP monitoring module 42 and a realserver monitoring module 43 .

[0063] Threshold setting module 41 is used to set the active connection threshold of each virtual IP address VIP access and the active connection threshold of each real server realserver access; VIP monitoring module 42 is used to monitor the active connections of each VIP access If the number of active connections of any VIP access exceeds the threshold of the number of active connections of VIP access, the subsequent active connections of the VIP whose number of active connections exceeds the threshold of the number of active connections of VIP access are prohibited; the realserver monitoring module 43. It is used to monitor the number of active connections accessed by each realserver...

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 provides a method and device for load balancing. The method comprises the steps: setting the active linking number threshold value of each VIP access and active linking number threshold value of each actual server access; monitoring the active linking number of each VIP access, if the active linking number of any one VIP access exceeds the active linking number threshold value of the VIP access, forbidding that the VIP of which the accessed active linking number exceeds the active linking number threshold value of the VIP access is accessed to the follow-up active linking; monitoring the active linking number of each actual server access, if the active linking number of any one actual server access exceeds the active linking number threshold value of the actual server access, forwarding the follow-up active linking to other actual server. The method and device are capable of balancing the load of the actual server and the director server, ensuring the stability of the LVS colony, and providing more stable and efficient network service for the client.

Description

technical field [0001] The present invention relates to the technical field of communications, in particular to a load balancing method and device. Background technique [0002] The LVS (Linux Virtual Server, Linux Virtual Server) system can perform load balancing on massive links, so that the Internet background can provide more stable and efficient services when accessing massive links. [0003] Such as figure 1 As shown, the LVS system includes multiple VIPs (Virtual IP Address, virtual IP address), multiple director servers (multiple load schedulers) and multiple real servers (real servers). The VIP receives the client request, and the director server distributes the client request to each realserver. realserver handles distributed client requests and provides corresponding services. [0004] However, the load of the director server is limited. If the number of VIP links to the director server exceeds the maximum load of the director server, the director server will c...

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
IPC IPC(8): H04L12/803
Inventor 唐乐蒋文杰吴杰珂
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products