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

Load balancing method, system, electronic device and computer-readable storage medium

A load balancing and computer technology, applied in the computer field, can solve the problems of consuming large resources, overwhelming nodes, increasing the health check cycle, etc., to achieve the effect of ensuring real-time performance, reducing resource consumption, and increasing the frequency of checks

Active Publication Date: 2020-11-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the current technology, two schemes are usually used to check the validity of nodes: one is to perform high-frequency validity checks, which will consume a lot of unnecessary resources and even overwhelm some already busy nodes; Another method is to increase the cycle of health checks. Although this reduces resource consumption, it will lose the timeliness of node checks.

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, system, electronic device and computer-readable storage medium
  • Load balancing method, system, electronic device and computer-readable storage medium
  • Load balancing method, system, electronic device and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0054] figure 2 is a flowchart of a load balancing method provided by an embodiment of the present invention, such as figure 2 As shown, the methods include:

[0055] S1, cyclically check the validity of each node among the plurality of nodes, and identify the node as a valid node or a failed node. The node mentioned here may be a server (server), on which an application is installed, and whether the server node is valid is determined by checking whether the application on the server can successfully provide services. In this embodiment, if the node is detected to be valid for 3 consecutive times, the node is identified as a valid node, and if the node is detected to be invalid for 4 consecutive times, the node is ide...

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 load balancing method and system. After checking the validity of a node each time, the probability that the state of the node is unchanged is calculated when the node is checked next time, and according to the probability, the time interval between this time node checking and next-time node checking is calculated, so that the time interval of node checking can be dynamically changed, therefore, for the nodes with unchanged validity status, the adaptability reduces the checking frequency and reduces the resource consumption required for checking; and for the nodes with changed validity, the adaptability improves the checking frequency and ensures the real-time performance of checking.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a load balancing method and system, which are used to realize the load balancing of flow among multiple nodes. Background technique [0002] In large Internet companies, applications are deployed on many nodes. In order to achieve load balancing among these nodes, it is necessary to distribute traffic to these nodes. Existing technologies such as figure 1 As shown, the load balancing cluster is used for node distribution. The load balancing cluster is composed of multiple load balancers (for example, haproxy, nginx), each load balancer is connected to each node, and the load balancer can forward the user's request To the application on the node, and return the execution result of the application on the node to the user. [0003] The load balancer needs to perform regular validity checks on the backend nodes to ensure that the nodes are valid. In the current techn...

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): H04L12/26H04L29/08
CPCH04L43/0817H04L43/103H04L67/1029
Inventor 徐新坤
Owner BEIJING JINGDONG SHANGKE INFORMATION 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