Load balancing method, system and device and storage medium

A technology of load balancing and virtual nodes, which is applied in the Internet field, can solve problems such as server crashes, and achieve the effect of reducing the possibility of occurrence

Pending Publication Date: 2021-06-11
广东好太太智能家居有限公司
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when a server crashes, its access traffic will enter the server of the next node, causing the server of the next node to crash due to excessive load, and then the traffic of the two crashed servers will enter the next node together, causing a chain reaction , causing all servers to crash

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solution and advantages of the application clearer, the technical solution of the application will be clearly and completely described through implementation with reference to the accompanying drawings in the embodiments of the application. Obviously, the described embodiment is the embodiment of the application. Some, but not all, embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0043] In the description of the present invention, several means more than one, and multiple means more than two. Greater than, less than, exceeding, etc. are understood as not including the original number, and above, below, within, etc. are understood as including the original number. If the description of the first and second is only for the purpose of distinguishing the technical fea...

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, system and device and a storage medium, and relates to the Internet technology, and the method comprises the following steps: calling a hash function according to a user identifier and a user address to calculate a hash value corresponding to an access request; searching a virtual node with the closest hash value in a pre-established hash ring in a clockwise or anticlockwise direction according to the hash value to obtain a target virtual node, wherein the hash ring comprises a plurality of virtual nodes, each virtual node corresponds to one server node, the number of the server nodes is multiple, each server node corresponds to a plurality of virtual nodes, and the plurality of virtual nodes are randomly distributed on the hash ring; and returning the access address of the server node corresponding to the target virtual node to the client. According to the scheme, load balancing can be realized, and the possibility of an avalanche effect is reduced.

Description

technical field [0001] This application relates to Internet technology, especially a load balancing method, system, device and storage medium. Background technique [0002] In the Internet field, with the development of product projects, the background system needs to increase the throughput and data processing capacity of the system through horizontal expansion. At this time, it is necessary to load balance the traffic. To put it simply, load balancing means to distribute the traffic to functional units with the same function deployed on different servers. Usually you can use hardware load, this type of load effect is better. In addition, load balancing applications can be introduced, typically nginx, which can forward the traffic accessing the same address to different servers according to a certain load algorithm. [0003] But for the above scheme, the cost is relatively high. Therefore, there are also solutions to search for server nodes through the hash ring to achie...

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): G06F9/50H04L29/08
CPCG06F9/5088H04L67/1001
Inventor 王妙玉王伦吴宁泉
Owner 广东好太太智能家居有限公司
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