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

Load balancing method and device

A technology of load balancing and processing nodes, applied in the Internet field, can solve the problem of uneven load of cluster servers

Active Publication Date: 2019-05-24
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a load balancing method and device to at least solve the technical problem of uneven load on cluster servers when a server in the cluster fails

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 and device
  • Load balancing method and device
  • Load balancing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] According to an embodiment of the present invention, a load balancing method is provided, which can be used as figure 1 In the illustrated environment, the environment may include a hardware environment and a network environment.

[0029] In this embodiment, the method can be applied as figure 1 In the hardware environment composed of multiple cluster nodes and terminals as shown. Such as figure 1 As shown, the plurality of cluster nodes 101 may include a plurality of processing nodes, and the plurality of cluster nodes are used as a whole to process access requests sent from the terminal 103 . Specifically, a plurality of cluster nodes 101 are connected to terminals 103 through a cluster server 105 (or called a load balancing server) through a network, the above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network.

[0030] It should be noted that the above-mentioned multiple cluster nodes may be ser...

Embodiment 2

[0104] According to an embodiment of the present invention, an embodiment of a load balancing device for implementing a load balancing method is also provided, such as Figure 10 As shown, the load balancing device in this embodiment can be set on the above-mentioned load balancing server.

[0105] Specifically, the apparatus may include: an obtaining unit 1001, configured to obtain indication information and a first processing node indicated by the indication information according to the access request, wherein the first processing node is one of multiple cluster nodes; a search unit 1003 , if the first processing node is in an unavailable state, it is used to sequentially search for the second processing node in the available state among multiple cluster nodes in the area pointed to by the indication information in the node file, wherein the node file contains multiple An area for recording multiple cluster nodes, different areas record multiple cluster nodes in different or...

Embodiment 3

[0123] The embodiment of the present invention also provides a terminal or a server. Optionally, in this embodiment, the above-mentioned terminal or server may execute the load balancing method, and the load balancing device in the above-mentioned embodiment may be set on the terminal or server.

[0124] Such as Figure 11 As shown, the server or terminal includes: one or more (only one is shown in the figure) processor 1101, memory 1103, and transmission device 1105 (such as the sending device in the above-mentioned embodiment), such as Figure 11 As shown, the terminal may also include an input and output device 1107 .

[0125] Wherein, the memory 1103 can be used to store software programs and modules, such as the program instructions / modules corresponding to the load balancing method and device in the embodiment of the present invention, and the processor 1101 runs the software programs and modules stored in the memory 1103 to execute various Function application and dat...

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 and device. Wherein, the method includes: according to the access request, acquiring the indication information and the first processing node indicated by the indication information, wherein the first processing node is one of a plurality of cluster nodes; if the first processing node is in an unavailable state, then In the area pointed to by the indication information in the node file, the second processing node in the available state among the multiple cluster nodes is sequentially searched, wherein the node file contains multiple areas for recording multiple cluster nodes, and different areas are in accordance with different The sequence records a plurality of cluster nodes; and sends the access request to the second processing node. The invention solves the technical problem of uneven load of the cluster servers when the servers in the cluster fail.

Description

technical field [0001] The present invention relates to the field of the Internet, in particular to a load balancing method and device. Background technique [0002] The background system of online games or other applications will encounter the situation of insufficient stand-alone service capacity when faced with massive requests. At this time, it is necessary to distribute the requests to multiple servers according to a certain strategy through the load balancing service. This strategy is Load balancing. The existing load balancing methods include random, round-robin, hash, and consistent hash strategies. These strategies have some shortcomings when encountering server expansion or failure. [0003] Specifically, if the hash strategy is adopted, the size of the data segments responsible for each machine is different. When a server is down, all data services need to be provided by the remaining machines, and the correspondence between the server and the responsible data se...

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1001
Inventor 费翔
Owner TENCENT TECH (SHENZHEN) 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